Correctly update chooser when panel already exists (and object is changed)
fixes #42
This commit is contained in:
parent
77bee04ac3
commit
4709b0b5b0
@ -376,6 +376,8 @@ 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());
|
||||||
|
// Update the chooser
|
||||||
|
this.updateChooser();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -73,19 +73,11 @@ public final class PropertySheetPanel extends JPanel implements PropertyChangeLi
|
|||||||
* A count of the number of properties we have an editor for.
|
* A count of the number of properties we have an editor for.
|
||||||
*/
|
*/
|
||||||
private int numEditableProperties = 0;
|
private int numEditableProperties = 0;
|
||||||
/**
|
|
||||||
* How long should a tip text line be (translated to HTML).
|
|
||||||
*/
|
|
||||||
private int tipTextLineLen = 50;
|
|
||||||
/**
|
/**
|
||||||
* A support object for handling property change listeners.
|
* A support object for handling property change listeners.
|
||||||
*/
|
*/
|
||||||
private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);
|
private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);
|
||||||
/**
|
|
||||||
* set true to use the GOE by default if no other editor is registered.
|
|
||||||
*/
|
|
||||||
// If true, tool tips are used up to the first point only.
|
|
||||||
boolean stripToolTipToFirstPoint = false;
|
|
||||||
private ToolTipTable propertyTable;
|
private ToolTipTable propertyTable;
|
||||||
private DefaultTableModel propertyTableModel;
|
private DefaultTableModel propertyTableModel;
|
||||||
|
|
||||||
|
@ -16,9 +16,6 @@ import eva2.util.annotation.Description;
|
|||||||
*/
|
*/
|
||||||
@Description("The Hill Climber uses the default EA mutation and initializing operators. If the population size is bigger than one a multi-start Hill Climber is performed.")
|
@Description("The Hill Climber uses the default EA mutation and initializing operators. If the population size is bigger than one a multi-start Hill Climber is performed.")
|
||||||
public class HillClimbing extends AbstractOptimizer implements java.io.Serializable {
|
public class HillClimbing extends AbstractOptimizer implements java.io.Serializable {
|
||||||
// These variables are necessary for the simple testcase
|
|
||||||
|
|
||||||
private InterfaceOptimizationProblem optimizationProblem = new B1Problem();
|
|
||||||
private InterfaceMutation mutator = null;
|
private InterfaceMutation mutator = null;
|
||||||
|
|
||||||
public HillClimbing() {
|
public HillClimbing() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user