[Bugfix] Display now updates with editing changes.

This commit is contained in:
Daniel_M_Williams 2015-10-19 11:26:11 -04:00
parent dac67b0f71
commit 35b46ca44f
2 changed files with 12 additions and 9 deletions

View File

@ -351,6 +351,15 @@ public class FlightConfiguration implements FlightConfigurableParameter<FlightCo
}
}
@Override
public String toString() {
if( this.overrideName){
return this.fcid.key;
}else{
return this.getName() + "["+this.fcid.getShortKey()+"]";
}
}
// DEBUG / DEVEL
public String toDebug() {
StringBuilder buf = new StringBuilder();

View File

@ -210,14 +210,12 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
document.getRocket().addComponentChangeListener(new ComponentChangeListener() {
@Override
public void componentChanged(ComponentChangeEvent e) {
// System.out.println("Configuration changed, calling updateFigure");
if (is3d) {
if (e instanceof ComponentChangeEvent) {
if (((ComponentChangeEvent) e).isTextureChange()) {
if (e.isTextureChange()) {
figure3d.flushTextureCaches();
}
}
}
updateFigures();
}
});
@ -495,7 +493,6 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
}
private void handleComponentClick(RocketComponent[] clicked, MouseEvent event) {
// If no component is clicked, do nothing
if (clicked.length == 0) {
selectionModel.setSelectionPath(null);
@ -801,8 +798,6 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
figure3d.setSelection(components);
}
//
//
// /**
// * An <code>Action</code> that shows whether the figure type is the
// type
@ -838,5 +833,4 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
// putValue(Action.SELECTED_KEY, figure.getType() == type && !is3d);
// }
// }
//
}