setImage(JSmoothResources.IMG_SWITCHER_APPLICATION);
setToolTip("Java Application");
}
public void load() {
JSmoothModelBean jsmodel = getApplication().getModelBean();
String[] classpath = jsmodel.getClassPath();
if (classpath == null) classpath = new String[0];
this.classpath.setItems(classpath);
boolean usejar = jsmodel.getEmbeddedJar();
this.usejar.setSelection(usejar);
LISTENER_USEJAR.widgetSelected(null);
String mainclass = jsmodel.getMainClassName();
if (mainclass == null) mainclass = "";
this.mainclass.setText(mainclass);
String jar = jsmodel.getJarLocation();
if (jar == null) jar = "";
this.jar.setText(jar);
String args = jsmodel.getArguments();
if (args == null) args = "";
this.args.setText(args);
}