Esempio n. 1
0
  @Override
  public void close() {
    super.close();

    final String in1 = input1.getText();
    final String in2 = string(input2.getText());
    switch (kind) {
      case Data.ATTR:
      case Data.PI:
        result.add(in1);
        result.add(in2);
        break;
      case Data.ELEM:
        result.add(in1);
        break;
      case Data.TEXT:
      case Data.COMM:
        result.add(in2);
        break;
    }
  }
Esempio n. 2
0
 /**
  * Activates the dialog window.
  *
  * @param main reference to the main window
  */
 public static void show(final GUI main) {
   if (dialog == null) dialog = new DialogColors(main);
   dialog.setVisible(true);
 }