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));
          }
        }
Пример #3
0
 /**
  * Singleton constructor.
  *
  * @param commandLine Command line options.
  */
 public static void create(String name, CommandLine commandLine) {
   engine = new Engine(name, commandLine);
   engine.init();
 }