Esempio n. 1
0
 private void changeParameNote() {
   if (detailListener == null) return;
   // Wert auf leer zur�cksetzen
   if (txtParamNote.getText() != null && txtParamNote.getText().length() == 0) return;
   if (txtName.getText() != null && txtName.getText().length() == 0) {
     //			MainWindow.message(getShell(),
     // sos.scheduler.editor.app.Messages.getString("tooltip.detail.param.missing_param_name_for_note"), SWT.ICON_WARNING
     MainWindow.message(getShell(), JOE_M_0024.label(), SWT.ICON_WARNING | SWT.OK | SWT.CANCEL);
     return;
   }
   if (tableParams.getSelectionCount() == 0
       || (tableParams.getSelectionCount() > 0
           && !txtParamNote
               .getText()
               .equalsIgnoreCase(
                   detailListener.getParamNote(
                       tableParams.getSelection()[0].getText(0), comboLanguage.getText())))) {
     detailListener.setParam(
         txtName.getText(),
         txtValue.getText(),
         txtParamNote.getText(),
         paramText.getText(),
         comboLanguage.getText());
     isEditableParam = true;
     butApplyParam.setEnabled(isEditableParam);
     isEditable = true;
     butApply.setEnabled(isEditable);
     if (gui != null) gui.updateParamNote();
   }
 }
Esempio n. 2
0
  private void save() {
    saveWindowPosAndSize();

    if (butApplyParam.isEnabled()) {
      addParam();
    }
    detailListener.save();
    if (schedulerDom != null) {
      DetailsListener.addMonitoring2Job(jobChainname, state, schedulerDom, update);
      MainWindow.getContainer()
          .getCurrentTab()
          .setData("ftp_details_parameter_file", detailListener.getConfigurationFilename());
      MainWindow.saveFTP(new java.util.HashMap());
    }
    if (type == Editor.JOB_CHAINS) {
      isEditable = false;
      butApply.setEnabled(isEditable);
      getShell().dispose();
    } else {
      isEditable = false;
      butApply.setEnabled(isEditable);
    }
  }
Esempio n. 3
0
 private boolean discardChanges() {
   if (butApply.getEnabled()) {
     //			int count = MainWindow.message(getShell(),
     // sos.scheduler.editor.app.Messages.getString("detailform.open"), SWT.ICON_WARNING | SWT.OK |
     // SWT.CANCEL);
     int count =
         MainWindow.message(
             getShell(), JOE_M_0022.label(), SWT.ICON_WARNING | SWT.OK | SWT.CANCEL);
     if (count != SWT.OK) {
       return false;
     }
   }
   setEnabled_(true);
   return true;
 }