Examples of ErrorLog


Examples of sos.scheduler.editor.app.ErrorLog

        }
      }

    } catch (Exception e) {
      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() , e);
      } catch(Exception ee) {
        //tu nichts
      }
      System.out.println("..error in JobAssistentImportJobsForm.getJobFromDescription() " + e.getMessage());
    }
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog

        retVal = newstr.split(";");
        return retVal;
      } catch (Exception e) {
        System.out.println(e.toString());
        try {
          new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() , e);
        } catch(Exception ee) {
          //tu nichts
        }
        return retVal; 
      }
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog


          }
        } catch (Exception ex) {
          try {
            new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() + " ; could not rename configuration.", ex);
          } catch(Exception ee) {
            //tu nichts
          }
          MainWindow.message("could not rename configuration: " + ex.getMessage(), SWT.ICON_ERROR);
          schedulerConfigurationShell.setFocus();
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog

      rItem.setExpanded(true);

    } catch (Exception e) {
      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName(), e);
      } catch(Exception ee) {
        //tu nichts
      }
      MainWindow.message("..error in create tree for Open Scheduler Cluster/Host " + e.getMessage(), SWT.ICON_ERROR);
      schedulerConfigurationShell.setFocus();
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog

        }

      }
    } catch (Exception e) {
      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName(), e);
      } catch(Exception ee) {
        //tu nichts
      }
      MainWindow.message(
          "..error in create tree for Open Scheduler Cluster/Host "
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog

        }
        schedulerConfigurationShell.close();
      }
    } catch (Exception e) {
      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName(), e);
      } catch(Exception ee) {
        //tu nichts
      }
      MainWindow.message(
          "..error in create tree for Open Scheduler Cluster/Host "
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog

      }

    } catch (Exception e) {

      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() + " could not change host.", e);
      } catch(Exception ee) {
        //tu nichts
      }
      MainWindow.message(
          "..could not Change Host "
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog

      tree.setSelection(new TreeItem[] {item});

      txtName.setText("");
    } catch(Exception ex) {
      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() " ; Error while creating new " + sType + " Configuration. ", ex);
      } catch(Exception ee) {
        //tu nichts
      }
      MainWindow.message("Error while creating new " + sType + " Configuration: " + ex.getMessage(), SWT.ICON_ERROR);
      schedulerConfigurationShell.setFocus();
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog

      }
    } catch (Exception r) {
      try {
        MainWindow.message("could not open File: " + file + ", cause: " + r.toString(), SWT.ICON_WARNING);
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName(), r);
      } catch(Exception ee) {
        //tu nichts
      }
    }
  }
View Full Code Here

Examples of sos.scheduler.editor.app.ErrorLog

              enableNode(false);
              //listener.applyNode(bFullNode.getSelection() || bEndNode.getSelection(), tState.getText(), cJob.getText(), tDelay.getText(), cNextState.getText(), cErrorState.getText(),bRemoveFile.getSelection(),tMoveTo.getText(), cOnError.getText());
            }
          } catch (Exception ex) {
            try {
              new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() , ex);
            } catch(Exception ee) {
              //tu nichts
           
          }
        }
      });
      butAddMissingNodes.setEnabled(false);
      butAddMissingNodes.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      butAddMissingNodes.setText("Add Missing Nodes");

      bRemoveNode = new Button(gNodes, SWT.NONE);
      bRemoveNode.setEnabled(false);
      bRemoveNode.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if (tNodes.getSelectionCount() > 0) {

            int c = MainWindow.message(getShell(), "Do you want remove the job node from this job chain?", SWT.ICON_QUESTION | SWT.YES | SWT.NO );
            if(c != SWT.YES)
              return;



            int index = tNodes.getSelectionIndex();
            listener.deleteNode(tNodes);
            tNodes.remove(index);
            if (index >= tNodes.getItemCount())
              index--;
            boolean empty = tNodes.getItemCount() == 0;

            fillNode(empty);
            enableNode(!empty);
            bRemoveNode.setEnabled(!empty);
            if (!empty) {
              tNodes.select(index);
              listener.selectNode(tNodes);
            } else {
              listener.selectNode(null);
            }
          }
        }
      });
      bRemoveNode.setLayoutData(new GridData(GridData.FILL, GridData.END, false, false));
      bRemoveNode.setText("Remove Node");
      gFileOrderSource = new Group(jobChainGroup, SWT.NONE);
      final GridData gridData_10 = new GridData(GridData.FILL, GridData.CENTER, true, false);
      gridData_10.heightHint = 169;
      gFileOrderSource.setLayoutData(gridData_10);
      gFileOrderSource.setText("File Order Source");
      final GridLayout gridLayout_1 = new GridLayout();
      gridLayout_1.marginTop = 5;
      gridLayout_1.marginBottom = 5;
      gridLayout_1.numColumns = 5;
      gFileOrderSource.setLayout(gridLayout_1);

      final Label directoryLabel = new Label(gFileOrderSource, SWT.NONE);
      directoryLabel.setFont(SWTResourceManager.getFont("", 8, SWT.NONE));
      directoryLabel.setText("Directory");

      tDirectory = new Text(gFileOrderSource, SWT.BORDER);
      tDirectory.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tDirectory.selectAll();
        }
      });
      tDirectory.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);
        }
      });
      tDirectory.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {


        }
      });
      tDirectory.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      final Label delay_after_errorLabel = new Label(gFileOrderSource, SWT.NONE);
      delay_after_errorLabel.setText("Delay after error");


      tDelayAfterError = new Text(gFileOrderSource, SWT.BORDER);
      tDelayAfterError.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tDelayAfterError.selectAll();
        }
      });
      tDelayAfterError.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);

        }
      });
      tDelayAfterError.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      bApplyFileOrderSource = new Button(gFileOrderSource, SWT.NONE);
      bApplyFileOrderSource.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          applyFileOrderSource();
        }
      });
      bApplyFileOrderSource.setEnabled(false);
      bApplyFileOrderSource.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      bApplyFileOrderSource.setText("Apply File Order Source");

      final Label regexLabel = new Label(gFileOrderSource, SWT.NONE);
      regexLabel.setFont(SWTResourceManager.getFont("", 8, SWT.NONE));
      regexLabel.setText("Regex");


      tRegex = new Text(gFileOrderSource, SWT.BORDER);
      tRegex.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tRegex.selectAll();   
        }
      });
      tRegex.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);
        }
      });
      tRegex.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      final Label repeatLabel = new Label(gFileOrderSource, SWT.NONE);
      repeatLabel.setText("Repeat");

      tRepeat = new Text(gFileOrderSource, SWT.BORDER);
      tRepeat.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tRepeat.selectAll();
        }
      });
      tRepeat.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);

        }
      });
      tRepeat.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
      new Label(gFileOrderSource, SWT.NONE);

      final Label maxLabel = new Label(gFileOrderSource, SWT.NONE);
      maxLabel.setText("Max");

      tMax = new Text(gFileOrderSource, SWT.BORDER);
      tMax.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tMax.selectAll();
        }
      });
      tMax.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);

        }
      });
      tMax.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      final Label stateLabel = new Label(gFileOrderSource, SWT.NONE);
      stateLabel.setText("Next state");

      tNextState = new Text(gFileOrderSource, SWT.BORDER);
      tNextState.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tNextState.selectAll();
        }
      });
      tNextState.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);

        }
      });
      tNextState.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      tFileOrderSource = new Table(gFileOrderSource, SWT.BORDER);
      tFileOrderSource.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if (tFileOrderSource.getSelectionCount() > 0) {
            listener.selectFileOrderSource(tFileOrderSource);
            bApplyFileOrderSource.setEnabled(false);
            fillFileOrderSource(false);
            enableFileOrderSource(true);             
          }
          bRemoveFileOrderSource.setEnabled(tFileOrderSource.getSelectionCount() > 0);
        }

      });
      tFileOrderSource.setLinesVisible(true);
      tFileOrderSource.setHeaderVisible(true);
      final GridData gridData_9 = new GridData(GridData.FILL, GridData.FILL, true, true, 4, 2);
      gridData_9.minimumHeight = 40;
      gridData_9.heightHint = 138;
      tFileOrderSource.setLayoutData(gridData_9);

      final TableColumn newColumnTableColumn = new TableColumn(tFileOrderSource, SWT.NONE);
      newColumnTableColumn.setWidth(300);
      newColumnTableColumn.setText("Directory");

      final TableColumn newColumnTableColumn_1 = new TableColumn(tFileOrderSource, SWT.NONE);
      newColumnTableColumn_1.setWidth(200);
      newColumnTableColumn_1.setText("Regex");


      final TableColumn newColumnTableColumn_2 = new TableColumn(tFileOrderSource, SWT.NONE);
      newColumnTableColumn_2.setWidth(100);
      newColumnTableColumn_2.setText("Next State");


      bNewFileOrderSource = new Button(gFileOrderSource, SWT.NONE);
      bNewFileOrderSource.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) { 
          getShell().setDefaultButton(null);
          tFileOrderSource.deselectAll();
          listener.selectFileOrderSource(null);
          bRemoveFileOrderSource.setEnabled(false);
          fillFileOrderSource(true);
          enableFileOrderSource(true);
          tDirectory.setFocus();
        }
      });
      bNewFileOrderSource.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      bNewFileOrderSource.setText("New File Order Source");

      bRemoveFileOrderSource = new Button(gFileOrderSource, SWT.NONE);
      bRemoveFileOrderSource.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if (tFileOrderSource.getSelectionCount() > 0) {
            bFileSink.setEnabled(tFileOrderSource.getItemCount() > 0);
            tMoveTo.setEnabled(tFileOrderSource.getItemCount() > 0);
            bRemoveFile.setEnabled(tFileOrderSource.getItemCount() > 0);

            int index = tFileOrderSource.getSelectionIndex();
            listener.deleteFileOrderSource(tFileOrderSource);
            tFileOrderSource.remove(index);
            if (index >= tFileOrderSource.getItemCount())
              index--;
            boolean empty = tFileOrderSource.getItemCount() == 0;

            fillFileOrderSource(empty);
            enableFileOrderSource(!empty);          
            bRemoveFileOrderSource.setEnabled(!empty);
            if (!empty) {
              tFileOrderSource.select(index);
              listener.selectFileOrderSource(tFileOrderSource);
            } else {
              listener.selectFileOrderSource(null);
            }
          }
        }
      });
      bRemoveFileOrderSource.setEnabled(false);
      bRemoveFileOrderSource.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, false, true));
      bRemoveFileOrderSource.setText("Remove Order File Source");
    } catch (Exception e) {
      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() , e);
      } catch(Exception ee) {
        //tu nichts
     
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.