Correctly update chooser when panel already exists (and object is changed)

fixes #42
This commit is contained in:
Fabian Becker 2015-12-05 19:14:32 +01:00
parent 77bee04ac3
commit 4709b0b5b0
3 changed files with 3 additions and 12 deletions

View File

@ -376,6 +376,8 @@ public class OptimizationEditorPanel extends JPanel implements ItemListener {
public void updateChildPropertySheet() {
// Set the object as the target of the PropertySheet
propertySheetPanel.setTarget(genericObjectEditor.getValue());
// Update the chooser
this.updateChooser();
}
/**

View File

@ -73,19 +73,11 @@ public final class PropertySheetPanel extends JPanel implements PropertyChangeLi
* A count of the number of properties we have an editor for.
*/
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.
*/
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 DefaultTableModel propertyTableModel;

View File

@ -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.")
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;
public HillClimbing() {