- Move stuff around
- Deactivate nasty packing on frame update - Go back to native UI rendering
This commit is contained in:
parent
40eee88eea
commit
023f09e044
@ -57,6 +57,7 @@ public class EvAComAdapter {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String[] getModuleNameList() {
|
public String[] getModuleNameList() {
|
||||||
|
System.out.println("SAYYYYY WHAAAAAT?");
|
||||||
String[] list = getLocalMainAdapter().getModuleNameList();
|
String[] list = getLocalMainAdapter().getModuleNameList();
|
||||||
LOGGER.info("List of modules available:");
|
LOGGER.info("List of modules available:");
|
||||||
|
|
||||||
|
@ -551,8 +551,8 @@ public class Main extends JFrame implements OptimizationStateListener {
|
|||||||
} else {
|
} else {
|
||||||
/* Set Look and Feel */
|
/* Set Look and Feel */
|
||||||
try {
|
try {
|
||||||
//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||||
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
|
//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
LOGGER.log(Level.INFO, "Could not set Look&Feel", ex);
|
LOGGER.log(Level.INFO, "Could not set Look&Feel", ex);
|
||||||
}
|
}
|
||||||
@ -560,11 +560,10 @@ public class Main extends JFrame implements OptimizationStateListener {
|
|||||||
|
|
||||||
/* Available command-line parameters */
|
/* Available command-line parameters */
|
||||||
String[] keys = new String[]{
|
String[] keys = new String[]{
|
||||||
"--help", "--autorun", "--nosplash", "--nogui",
|
"--help", "--autorun", "--nosplash", "--nogui", "--params", "--treeView"
|
||||||
"--remotehost", "--params", "--treeView"
|
|
||||||
};
|
};
|
||||||
/* Number of arguments per parameter */
|
/* Number of arguments per parameter */
|
||||||
int[] arities = new int[]{0, 0, 0, 0, 1, 1, 0};
|
int[] arities = new int[]{0, 0, 0, 0, 1, 0};
|
||||||
Object[] values = new Object[keys.length];
|
Object[] values = new Object[keys.length];
|
||||||
|
|
||||||
Integer[] unknownArgs = StringTools.parseArguments(args, keys, arities, values, true);
|
Integer[] unknownArgs = StringTools.parseArguments(args, keys, arities, values, true);
|
||||||
@ -590,8 +589,8 @@ public class Main extends JFrame implements OptimizationStateListener {
|
|||||||
boolean autorun = (values[1] != null);
|
boolean autorun = (values[1] != null);
|
||||||
boolean nosplash = (values[2] != null);
|
boolean nosplash = (values[2] != null);
|
||||||
boolean nogui = (values[3] != null);
|
boolean nogui = (values[3] != null);
|
||||||
boolean treeView = (values[6] != null);
|
boolean treeView = (values[5] != null);
|
||||||
String paramsFile = StringTools.checkSingleStringArg(keys[5], values[5], arities[5] - 1);
|
String paramsFile = StringTools.checkSingleStringArg(keys[4], values[4], arities[4] - 1);
|
||||||
|
|
||||||
new Main("", paramsFile, autorun, nosplash, nogui, treeView);
|
new Main("", paramsFile, autorun, nosplash, nogui, treeView);
|
||||||
}
|
}
|
||||||
@ -626,7 +625,6 @@ public class Main extends JFrame implements OptimizationStateListener {
|
|||||||
// GUI update due to the changes made through the API
|
// GUI update due to the changes made through the API
|
||||||
evaClient.refreshMainPanels();
|
evaClient.refreshMainPanels();
|
||||||
|
|
||||||
|
|
||||||
return evaClient;
|
return evaClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -655,7 +653,6 @@ public class Main extends JFrame implements OptimizationStateListener {
|
|||||||
sbuf.append(" --nogui: Deactivate GUI (makes most sense with autorun and params set)\n");
|
sbuf.append(" --nogui: Deactivate GUI (makes most sense with autorun and params set)\n");
|
||||||
sbuf.append(" --autorun: Start an optimization immediately and exit after execution\n");
|
sbuf.append(" --autorun: Start an optimization immediately and exit after execution\n");
|
||||||
sbuf.append(" --params PARAMFILE: Load the (serialized) parameters file on start\n");
|
sbuf.append(" --params PARAMFILE: Load the (serialized) parameters file on start\n");
|
||||||
sbuf.append(" --remotehost HOSTNAME: Try to load a module from a (remote) server\n");
|
|
||||||
|
|
||||||
return sbuf.toString();
|
return sbuf.toString();
|
||||||
}
|
}
|
||||||
@ -743,7 +740,6 @@ public class Main extends JFrame implements OptimizationStateListener {
|
|||||||
|
|
||||||
JExtMenu menuOptions = new JExtMenu("&Options");
|
JExtMenu menuOptions = new JExtMenu("&Options");
|
||||||
menuOptions.add(actPreferences);
|
menuOptions.add(actPreferences);
|
||||||
//menuOptions.add(menuSelHosts);
|
|
||||||
menuOptions.addSeparator();
|
menuOptions.addSeparator();
|
||||||
menuOptions.add(actQuit);
|
menuOptions.add(actQuit);
|
||||||
|
|
||||||
@ -753,7 +749,7 @@ public class Main extends JFrame implements OptimizationStateListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the GOParamters of a loaded module. Return null if no module is
|
* Retrieve the optimization parameters of a loaded module. Return null if no module is
|
||||||
* loaded.
|
* loaded.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
|
@ -254,7 +254,6 @@ public class OptimizationEditorPanel extends JPanel implements ItemListener {
|
|||||||
protected Object copyObject(Object source) {
|
protected Object copyObject(Object source) {
|
||||||
Object result = null;
|
Object result = null;
|
||||||
try {
|
try {
|
||||||
// System.out.println("Copying " + BeanInspector.toString(source));
|
|
||||||
SerializedObject so = new SerializedObject(source);
|
SerializedObject so = new SerializedObject(source);
|
||||||
result = so.getObject();
|
result = so.getObject();
|
||||||
so = null;
|
so = null;
|
||||||
@ -393,11 +392,6 @@ public class OptimizationEditorPanel extends JPanel implements ItemListener {
|
|||||||
public void updateChildPropertySheet() {
|
public void updateChildPropertySheet() {
|
||||||
// Set the object as the target of the propertysheet
|
// Set the object as the target of the propertysheet
|
||||||
propertySheetPanel.setTarget(genericObjectEditor.getValue());
|
propertySheetPanel.setTarget(genericObjectEditor.getValue());
|
||||||
// Adjust size of containing window if possible
|
|
||||||
if ((getTopLevelAncestor() != null)
|
|
||||||
&& (getTopLevelAncestor() instanceof Window)) {
|
|
||||||
((Window) getTopLevelAncestor()).pack();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -418,7 +412,7 @@ public class OptimizationEditorPanel extends JPanel implements ItemListener {
|
|||||||
genericObjectEditor.setValue(n);
|
genericObjectEditor.setValue(n);
|
||||||
// TODO ? setObject(n);
|
// TODO ? setObject(n);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
System.err.println("Exeption in itemStateChanged " + ex.getMessage());
|
System.err.println("Exception in itemStateChanged " + ex.getMessage());
|
||||||
System.err.println("Classpath is " + System.getProperty("java.class.path"));
|
System.err.println("Classpath is " + System.getProperty("java.class.path"));
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
objectChooser.hidePopup();
|
objectChooser.hidePopup();
|
||||||
|
@ -3,7 +3,6 @@ package eva2.optimization.modules;
|
|||||||
|
|
||||||
import eva2.optimization.OptimizationStateListener;
|
import eva2.optimization.OptimizationStateListener;
|
||||||
import eva2.optimization.go.InterfaceOptimizationParameters;
|
import eva2.optimization.go.InterfaceOptimizationParameters;
|
||||||
import eva2.optimization.go.InterfaceProcessor;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package eva2.optimization.go;
|
package eva2.optimization.modules;
|
||||||
|
|
||||||
import eva2.optimization.OptimizationStateListener;
|
import eva2.optimization.OptimizationStateListener;
|
||||||
|
|
@ -5,7 +5,6 @@ import eva2.optimization.OptimizationStateListener;
|
|||||||
import eva2.optimization.go.InterfaceNotifyOnInformers;
|
import eva2.optimization.go.InterfaceNotifyOnInformers;
|
||||||
import eva2.optimization.go.InterfaceOptimizationParameters;
|
import eva2.optimization.go.InterfaceOptimizationParameters;
|
||||||
import eva2.optimization.go.InterfacePopulationChangedEventListener;
|
import eva2.optimization.go.InterfacePopulationChangedEventListener;
|
||||||
import eva2.optimization.go.InterfaceProcessor;
|
|
||||||
import eva2.optimization.operator.paramcontrol.ConstantParameters;
|
import eva2.optimization.operator.paramcontrol.ConstantParameters;
|
||||||
import eva2.optimization.operator.paramcontrol.InterfaceParameterControl;
|
import eva2.optimization.operator.paramcontrol.InterfaceParameterControl;
|
||||||
import eva2.optimization.operator.postprocess.PostProcess;
|
import eva2.optimization.operator.postprocess.PostProcess;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user