Hello ImageJ community
I want to capture the File>>import>>url... command, when the user wants to open an specific url.
When the user starts a different menu command or the url has not the specified format, all should be like it is normally in ImageJ.
I tried this with the Executer class, but I do not know how to forward the command to the original ImageJ methods, when the url has not the specified format.
Furthermore it would be great, when there would be a way to start my plugin, when the url has the specific format.
public class MyPlugIn_ implements PlugIn, CommandListener
{
public String commandExecuting(String arg0) {
// TODO Auto-generated method stub
//IJ.showMessage(arg0);
if(arg0.equals("URL..."))
System.out.println("okay");
System.out.println(arg0);
Executer ex = new Executer( arg0 );
//ex.run();
return null;
}
public MyPlugIn_() {
Executer.addCommandListener( this );
Executer.getCommand();
}
public void run(String str)
{
;
}
}
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher!
http://portal.gmx.net/de/go/chbrowser