/* (non-Javadoc) * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */ public void actionPerformed(ActionEvent arg0) { Object o = getSelectionManager().getSelectedObject(); if (!(o instanceof Entity)) { return; } Entity e = (Entity) o; if (!EntityTools.isVisible(e)) { return; } SimulationMainFrame mf = findService(SimulationMainFrame.class); if (mf != null) { mf.getActivePlanViewDisplay().showPosition(e.getPosition()); } }
/* (non-Javadoc) * @see com.soartech.simjr.ui.actions.AbstractSimulationAction#update() */ @Override public void update() { Object o = getSelectionManager().getSelectedObject(); setEnabled(o instanceof Entity && EntityTools.isVisible((Entity) o)); }