public void addEntry(AirspaceEntry entry) { entry.getEditor().addEditListener(this); this.getModel().addEntry(entry); this.updateShapeIntersection(); this.getApp().getAirspaceLayer().addRenderable(entry.getAirspace()); this.getApp().getWwd().redraw(); }
public void removeEntry(AirspaceEntry entry) { entry.getEditor().removeEditListener(this); if (this.getSelectedEntry() == entry) { this.selectEntry(null, true); } this.getModel().removeEntry(entry); this.updateShapeIntersection(); this.getApp().getAirspaceLayer().removeRenderable(entry.getAirspace()); this.getApp().getWwd().redraw(); }