Page 1 of 1

Servoy dialog plugin Q

PostPosted: Tue Jun 08, 2004 10:02 pm
by pbakker
Imported the Dialog plugin into Eclipse to see the techniques at hand and I see something I do not understand.

In the methodeditor I see 6 functions for this plugin, but in the classfile I imported into Eclipe, I see 7 public js_xxxxxxx functions....

This I do not understand. It's trival, but I would just like to understand how this is done....

This is the code in the plugin:

public String js_showDialog(Object[] array)//old one
{
return js_showWarningDialog(array);
}

Eventhough is says //old one, I would think that this comment would not make any difference...

Just puzzled,

Paul

PostPosted: Tue Jun 15, 2004 12:01 pm
by Jan Blok
It is possible to depricate methods on plugins, so they do not show in the editor but are still working (they are hidden) incase you find later the naming or use is bad, but developers may already using this. (you dont want to break there solutions becouse you renamed a method)
The code which do this is:
Code: Select all
   public boolean isDeprecated(String methodName)
   {
      if ("showDialog".equals(methodName)) {
         return true;
      }
      return false;
   }

PostPosted: Tue Jun 15, 2004 12:08 pm
by pbakker
OK, handy to know :D