コード例 #1
0
  public void perform() {
    InfoCenterManager infoCenterManager =
        (InfoCenterManager) Engine.instance().getManagerRegistry().getManager("infocenter");

    NetworkDisplay networkDisplay = new NetworkDisplay();

    infoCenterManager.getInfoCenterRegistry().removeDisplay(networkDisplay.getId(), context);
  }
コード例 #2
0
        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
ファイル: Engine.java プロジェクト: conpinion/openmetix
 /**
  * Singleton constructor.
  *
  * @param commandLine Command line options.
  */
 public static void create(String name, CommandLine commandLine) {
   engine = new Engine(name, commandLine);
   engine.init();
 }