Servoy dialog plugin Q

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

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:

	public boolean isDeprecated(String methodName)
	{
		if ("showDialog".equals(methodName)) {
			return true;
		}
		return false;
	}

OK, handy to know :D