GEN-LAST:event_tfJavaFieldNameKeyTyped
9433
private void tfJavaFieldNameFocusLost(java.awt.event.FocusEvent evt)//GEN-FIRST:event_tfJavaFieldNameFocusLost
    {//GEN-HEADEREND:event_tfJavaFieldNameFocusLost
        // Commit value if focus is lost
        aRelation.setFieldName(tfJavaFieldName.getText());
    }
151515
private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
        // TODO add your handling code here:
        OkapiUI.compositeInputField.setText(compositeText.getText());
        dispose();
    }
755373
private void buttonFontForEditorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonFontForEditorActionPerformed
    final FontSelector fontSelector = new FontSelector(this.fontTextEditor);
    if (DialogProviderManager.getInstance().getDialogProvider().msgOkCancel(this, "Select Text editor font", fontSelector)) {
      this.fontTextEditor = fontSelector.getValue();
      updateFontButton(this.buttonFontForEditor, fontSelector.getValue());
      if (this.changeNotificationAllowed) {
        this.changed = true;
      }
    }
  }
98881
private void loadBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_loadBtnActionPerformed
	//issue request to URL in GUI
        MatchRulesLoader loader = new MatchRulesLoader(urlTextField.getText());
        loader.start();
    }
1288797
private void cmdAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmdAddActionPerformed
    	// Open a save dialog if it is a new query
		JDialog saveDialog = new JDialog();
		saveDialog.setTitle("New Query");
		saveDialog.setModalityType(ModalityType.MODELESS);
		
		SaveQueryPanel savePanel = new SaveQueryPanel("", saveDialog, queryController);
		saveDialog.getContentPane().add(savePanel, java.awt.BorderLayout.CENTER);
		saveDialog.pack();
		
		DialogUtils.centerDialogWRTParent(this, saveDialog);
		DialogUtils.installEscapeCloseOperation(saveDialog);
		
		saveDialog.setVisible(true);
    }
687146
private void _updateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event__updateActionPerformed
        jTextPane1.setText("");
        String text = new String(buffer, 0, pos);
        String[] lines = text.split("\n");

        Style style = jTextPane1.getStyle("INFO");
        for (String line : lines) {
            if (line.startsWith("o ")) {
                line = line.substring(2);
                style = jTextPane1.getStyle("OUTPUT");
            } else if (line.startsWith("i ")) {
                line = line.substring(2);
                style = jTextPane1.getStyle("INFO");
            } else if (line.startsWith("w ")) {
                line = line.substring(2);
                style = jTextPane1.getStyle("WARN");
            } else if (line.startsWith("e ")) {
                line = line.substring(2);
                style = jTextPane1.getStyle("ERROR");
            }

            try {
                jTextPane1.getDocument().insertString(jTextPane1.getDocument().getLength(), line + "\n", style);
                jTextPane1.setCaretPosition(jTextPane1.getDocument().getLength());
            } catch (Exception e) {
                 Log.Err.println(e.getMessage());
            }
        }
    }
224830
private void menuEditCopyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuEditCopyActionPerformed
    final TabTitle title = this.getFocusedTab();
    if (title != null && title.getProvider().doesSupportCutCopyPaste()) {
      title.getProvider().doCopy();
    }
    updateMenuItemsForProvider(title == null ? null : title.getProvider());
  }
675303
private void addBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addBtnActionPerformed
        DefaultTableModel model = (DefaultTableModel)rules.getModel();
        model.addRow(new Object[]{"", 1, "", "Low", "Certain"});
    }
965477
private void tfPackageNameFocusLost(java.awt.event.FocusEvent evt)//GEN-FIRST:event_tfPackageNameFocusLost
    {//GEN-HEADEREND:event_tfPackageNameFocusLost
        // Commit on lost focus
        aTable.setPackageName(tfPackageName.getText());
    }
563639
private void addPkcs12ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addPkcs12ButtonActionPerformed
		if (fileTextField.getText().equals("")) {
			return;
		}
		String kspass = new String(pkcs12PasswordField.getPassword());
		if (kspass.equals("")){
			//pcks#12 file with empty password is not supported by java
			showCertError("options.cert.error.pkcs12nopass", Constant.messages.getString("options.cert.error.usepassfile"));
			return;
		}

		int ksIndex;
		try {
			ksIndex = contextManager.loadPKCS12Certificate(fileTextField.getText(), kspass);
			keyStoreListModel.insertElementAt(contextManager.getKeyStoreDescription(ksIndex), ksIndex);
		} catch (Exception e) {
			showKeyStoreCertError(Constant.messages.getString("options.cert.error.password"));
			logger.error(e.getMessage(), e);
			return;
		}


		certificatejTabbedPane.setSelectedIndex(0);
		activateFirstOnlyAliasOfKeyStore(ksIndex);

		fileTextField.setText("");
		pkcs12PasswordField.setText("");

	}
739107
private void buttonExportSettingsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonExportSettingsActionPerformed
        StringBuffer sb = new StringBuffer();
        sb.append(clusteringAlgoPanel0.getStreamValueAsCLIString()+"\n");
        sb.append(clusteringAlgoPanel0.getAlgorithm0ValueAsCLIString()+"\n");
        sb.append(clusteringAlgoPanel0.getAlgorithm1ValueAsCLIString()+"\n");
        
        System.out.println(sb);
        logPanel.addText(sb.toString());
        
    }
596640
private synchronized void chkShowAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkShowAllActionPerformed
    	Runnable runner = new Runnable(){
    		public void run(){
    			if (chkShowAll.isSelected()) {
    				fetchSizeCache = getFetchSize();
    				txtFetchSize.setText(0+"");
    				txtFetchSize.setEditable(false);
    			} else {
    				txtFetchSize.setText(fetchSizeCache+"");
    				txtFetchSize.setEditable(true);
    			}
    		}
    	};
    	SwingUtilities.invokeLater(runner);
    }
939870
private void tfJavaFieldNameFocusLost(java.awt.event.FocusEvent evt)//GEN-FIRST:event_tfJavaFieldNameFocusLost
    {//GEN-HEADEREND:event_tfJavaFieldNameFocusLost
        // Commit the new value to the column if the focus is lost
        aColumn.setJavaFieldName(tfJavaFieldName.getText());        
    }
317145
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        JavaProcessBuilder pb = SAMPLE_QUEUE.newProcessBuilder(Locale.getDefault());
        pb.setProcessName("Test 3");
        pb.setProcessDescription("Test 3");
        pb.setProcessDetails(new TestRunner(), "run", new Class[] {}, new Object[] {});
        pb.setProcessPersistence(true);
        pb.newProcess();
    }
852411
private void textFieldMaskKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textFieldMaskKeyPressed
    int selectedIndex = this.listFoundFiles.getSelectedIndex();
    boolean processed = false;
    if (!evt.isConsumed() && evt.getModifiers() == 0) {
      switch (evt.getKeyCode()) {
        case KeyEvent.VK_UP: {
          processed = true;
          evt.consume();
          if (selectedIndex >= 0) {
            selectedIndex--;
          }
        }
        break;
        case KeyEvent.VK_DOWN: {
          processed = true;
          evt.consume();
          if (selectedIndex >= 0) {
            selectedIndex++;
          }
        }
        break;
      }

      if (processed && !this.foundNodeList.isEmpty()) {
        if (selectedIndex < 0) {
          selectedIndex = this.foundNodeList.size() - 1;
        } else if (selectedIndex >= this.foundNodeList.size()) {
          selectedIndex = 0;
        }
        this.listFoundFiles.setSelectedIndex(selectedIndex);
        this.listFoundFiles.ensureIndexIsVisible(selectedIndex);
      }

    }
  }
721848
private void tfConversionStrategyClassActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_tfConversionStrategyClassActionPerformed
    {//GEN-HEADEREND:event_tfConversionStrategyClassActionPerformed
        // Commit on ENTER
        aTable.setConversionStrategyClass(this.tfConversionStrategyClass.getText());
    }
25621
private void buttonExtensionsOpenInSystemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonExtensionsOpenInSystemActionPerformed
    final SysFileExtensionEditorPanel dataPanel = new SysFileExtensionEditorPanel(SystemFileExtensionManager.getInstance().getExtensionsAsCommaSeparatedString());
    if (DialogProviderManager.getInstance().getDialogProvider().msgOkCancel(this, "System file extensions", dataPanel)) {
      SystemFileExtensionManager.getInstance().setExtensionsAsCommaSeparatedString(dataPanel.getValuerNullIfDefault());
    }
  }