Servoy dialog plugin Q

Questions and answers on developing, deploying and using plugins and JavaBeans

Servoy dialog plugin Q

Postby pbakker » Tue Jun 08, 2004 10:02 pm

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
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby Jan Blok » Tue Jun 15, 2004 12:01 pm

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;
   }
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby pbakker » Tue Jun 15, 2004 12:08 pm

OK, handy to know :D
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 7 guests