Really you might change something in UI.
We've had some problems passing the variable to applet for setting folder path parametrer.
Take a look at Toolbar.java
/**
* Create html applet code
*/
public void setApplet(String token, String path) {
applet.setHTML("<applet code=\"com.openkm.applet.Scanner\" name=\"Scanner\" width=\"20\" height=\"20\" mayscript archive=\"../scanner.jar\">"+
"<param name=\"token\" value=\""+token+"\">"+
"<param name=\"path\" value=\""+path+"\">"+
//"<param name=\"separate_jvm\" value=\"true\">"+
"</applet>");
}
It must be changed param path on onclick event as the same way you could see on Util.java in some way like mediaplayer for example
public static native void removeMediaPlayer() /*-{
$wnd.swfobject.removeSWF("jsmediaplayer");
}-*/;
EveryTime a folder is selected must be changed this param ( FolderTree.java )
As I said I must investigate more it, because we've get some problem passing it variable, that's the reason why is actually fixed.
You must not make any change in DirectModule... it's not the right place.