public void perform() { InfoCenterManager infoCenterManager = (InfoCenterManager) Engine.instance().getManagerRegistry().getManager("infocenter"); NetworkDisplay networkDisplay = new NetworkDisplay(); infoCenterManager.getInfoCenterRegistry().removeDisplay(networkDisplay.getId(), context); }
public void actionPerformed(ActionEvent e) { InterfaceRegistry registry = (InterfaceRegistry) iobject; int selectedRow = gagingSystemTable.getSelectedRow(); if (selectedRow == -1) { return; } if (JOptionPane.showConfirmDialog( content, Engine.instance() .getResourceService() .getStringWithoutException("metix-interfacing.removegagingstation"), "Metix", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) { registry.removeGagingSystem(((InterfaceRegistry) iobject).getGagingSystem(selectedRow)); } }