Beispiel #1
0
    @Override
    public RegexAutoTagScanner showAddDialogue() {
      if (addDialog == null) {
        addDialog = new DialogAddAutoTagScanner(View.getSingleton().getOptionsDialog(null));
        addDialog.pack();
      }
      addDialog.setScanners(model.getElements());
      addDialog.setVisible(true);

      RegexAutoTagScanner app = addDialog.getScanner();
      addDialog.clear();

      return app;
    }
Beispiel #2
0
    @Override
    public RegexAutoTagScanner showModifyDialogue(RegexAutoTagScanner e) {
      if (modifyDialog == null) {
        modifyDialog = new DialogModifyAutoTagScanner(View.getSingleton().getOptionsDialog(null));
        modifyDialog.pack();
      }
      modifyDialog.setScanners(model.getElements());
      modifyDialog.setApp(e);
      modifyDialog.setVisible(true);

      RegexAutoTagScanner app = modifyDialog.getScanner();
      modifyDialog.clear();

      if (!app.equals(e)) {
        return app;
      }

      return null;
    }