Package org.apache.uima.aae.deployment

Examples of org.apache.uima.aae.deployment.CollectionProcessCompleteErrors


                + " ; Threshold Action: " + processCasErrors.getThresholdAction() + "</li>");
       
      }
    }

    CollectionProcessCompleteErrors collProcessCompleteErrors = obj
            .getCollectionProcessCompleteErrors();
    if (collProcessCompleteErrors != null) {
      buf.append("<li><b>CollectionProcessCompleteErrors</b></li>");
      buf.append("<li bindent=\"20\">Timeout: " + collProcessCompleteErrors.getTimeout()
              + " ; Additional Error Action: "
              + collProcessCompleteErrors.getAdditionalErrorAction() + "</li>");
    }

  }
View Full Code Here


                ProcessCasErrors processCasErrors = (ProcessCasErrors) obj;
                processCasErrors.setValueById(id, selection);
                processCasErrorsViewer.refresh();

              } else if (obj instanceof CollectionProcessCompleteErrors) {
                CollectionProcessCompleteErrors completeErrors = (CollectionProcessCompleteErrors) obj;
                completeErrors.setValueById(id, selection);
                collProcessCompleteErrorsViewer.refresh();
              }
              multiPageEditor.setFileDirty();
            }
          });
          editor1.setEditor(spinner, item, 1);

        } else if (nvp.getType() == String.class) {
          final CCombo combo = new CCombo(table, SWT.BORDER | SWT.READ_ONLY);
          combo.setItems(new String[] { "terminate", "disable" }); //$NON-NLS-1$
          combo.setText(item.getText(1));
          combo.pack();
          combo.setFocus();
          combo.addFocusListener(new FocusListener() {

            public void focusGained(FocusEvent e) {
            }

            public void focusLost(FocusEvent e) {
              // Clean up any previous editor control
              Control oldEditor = editor1.getEditor();
              if (oldEditor != null)
                oldEditor.dispose();

              oldEditor = editor2.getEditor();
              if (oldEditor != null)
                oldEditor.dispose();
              combo.dispose();
            }

          });
          combo.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
              String selection = combo.getText();
              item.setText(1, selection);
              int id = nvp.getId();
              if (obj instanceof GetMetadataErrors) {
                GetMetadataErrors getMetadataErrors = (GetMetadataErrors) obj;
                getMetadataErrors.setValueById(id, selection);
                getMetaDataViewer.refresh();

              } else if (obj instanceof ProcessCasErrors) {
                ProcessCasErrors processCasErrors = (ProcessCasErrors) obj;
                processCasErrors.setValueById(id, selection);
                processCasErrorsViewer.refresh();

              } else if (obj instanceof CollectionProcessCompleteErrors) {
                CollectionProcessCompleteErrors completeErrors = (CollectionProcessCompleteErrors) obj;
                completeErrors.setValueById(id, selection);
                collProcessCompleteErrorsViewer.refresh();
              }
              multiPageEditor.setFileDirty();
            }
          });
View Full Code Here

                ProcessCasErrors processCasErrors = (ProcessCasErrors) obj;
                processCasErrors.setValueById(id, selection);
                processCasErrorsViewer.refresh();

              } else if (obj instanceof CollectionProcessCompleteErrors) {
                CollectionProcessCompleteErrors completeErrors = (CollectionProcessCompleteErrors) obj;
                completeErrors.setValueById(id, selection);
                collProcessCompleteErrorsViewer.refresh();
              }
            }
          });
          editor1.setEditor(spinner, item, 1);

        } else if (nvp.getType() == String.class) {
          final CCombo combo = new CCombo(table, SWT.BORDER | SWT.READ_ONLY);
          combo.setItems(new String[] { "terminate", "disable" }); //$NON-NLS-1$
          combo.setText(item.getText(1));
          combo.pack();
          combo.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
              String selection = combo.getText();
              item.setText(1, selection);
              int id = nvp.getId();
              if (obj instanceof GetMetadataErrors) {
                GetMetadataErrors getMetadataErrors = (GetMetadataErrors) obj;
                getMetadataErrors.setValueById(id, selection);
                getMetaDataViewer.refresh();

              } else if (obj instanceof ProcessCasErrors) {
                ProcessCasErrors processCasErrors = (ProcessCasErrors) obj;
                processCasErrors.setValueById(id, selection);
                processCasErrorsViewer.refresh();

              } else if (obj instanceof CollectionProcessCompleteErrors) {
                CollectionProcessCompleteErrors completeErrors = (CollectionProcessCompleteErrors) obj;
                completeErrors.setValueById(id, selection);
                collProcessCompleteErrorsViewer.refresh();
              }
            }
          });
          editor2.setEditor(combo, item, 1);
View Full Code Here

        this.parent = parent;
    }
   
    public CollectionProcessCompleteErrors clone(AsyncAEErrorConfiguration parent)
    {
        CollectionProcessCompleteErrors clone = new CollectionProcessCompleteErrors_Impl(parent);
        clone.setTimeout(getTimeout());
        clone.setAdditionalErrorAction(getAdditionalErrorAction());
   
        return clone;
    }
View Full Code Here

        }
      }
      return objs;

    } else if (inputElement instanceof CollectionProcessCompleteErrors) {
      CollectionProcessCompleteErrors completeErrors = (CollectionProcessCompleteErrors) inputElement;

      objs = new Object[2];
      objs[0] = new NameValuePair(completeErrors, CollectionProcessCompleteErrors.KIND_TIMEOUT,
              CollectionProcessCompleteErrors.NAME_TIMEOUT,
              completeErrors.getTimeout(), Integer.class);
      objs[1] = new NameValuePair(completeErrors,
              CollectionProcessCompleteErrors.KIND_ADDITIONA_ERROR_ACTION,
              CollectionProcessCompleteErrors.NAME_ADDITIONA_ERROR_ACTION,
              completeErrors.getAdditionalErrorAction(), String.class);
      if (completeErrors.getParent() instanceof AsyncPrimitiveErrorConfiguration) {
        ((NameValuePair) objs[1]).setStatusFlags(NameValuePair.STATUS_NON_EDITABLE);
      }
      return objs;

    }
View Full Code Here

                + " ; Threshold Action: " + processCasErrors.getThresholdAction() + "</li>");
       
      }
    }

    CollectionProcessCompleteErrors collProcessCompleteErrors = obj
            .getCollectionProcessCompleteErrors();
    if (collProcessCompleteErrors != null) {
      buf.append("<li><b>CollectionProcessCompleteErrors</b></li>");
      buf.append("<li bindent=\"20\">Timeout: " + collProcessCompleteErrors.getTimeout()
              + " ; Additional Error Action: "
              + collProcessCompleteErrors.getAdditionalErrorAction() + "</li>");
    }

  }
View Full Code Here

      objs[4] = "Threshold Window: " + processCasErrors.getThresholdWindow();
      objs[5] = "Threshold Action: " + processCasErrors.getThresholdAction();
      return objs;

    } else if (parent instanceof CollectionProcessCompleteErrors) {
      CollectionProcessCompleteErrors completeErrors = (CollectionProcessCompleteErrors) parent;
      objs = new Object[2];
      objs[0] = "Timeout: " + completeErrors.getTimeout();
      objs[1] = "Additional Error Action: " + completeErrors.getAdditionalErrorAction();
      return objs;

    } else if (parent instanceof AsyncPrimitiveErrorConfiguration) {
      AsyncPrimitiveErrorConfiguration errorConfig = (AsyncPrimitiveErrorConfiguration) parent;
View Full Code Here

        }
      }
      return objs;

    } else if (inputElement instanceof CollectionProcessCompleteErrors) {
      CollectionProcessCompleteErrors completeErrors = (CollectionProcessCompleteErrors) inputElement;

      objs = new Object[2];
      objs[0] = new NameValuePair(completeErrors, CollectionProcessCompleteErrors.KIND_TIMEOUT,
              CollectionProcessCompleteErrors.NAME_TIMEOUT,
              completeErrors.getTimeout(), Integer.class);
      objs[1] = new NameValuePair(completeErrors,
              CollectionProcessCompleteErrors.KIND_ADDITIONA_ERROR_ACTION,
              CollectionProcessCompleteErrors.NAME_ADDITIONA_ERROR_ACTION,
              completeErrors.getAdditionalErrorAction(), String.class);
      if (completeErrors.getParent() instanceof AsyncPrimitiveErrorConfiguration) {
        ((NameValuePair) objs[1]).setStatusFlags(NameValuePair.STATUS_NON_EDITABLE);
      }
      return objs;

    }
View Full Code Here

TOP

Related Classes of org.apache.uima.aae.deployment.CollectionProcessCompleteErrors

Copyright © 2018 www.massapicom. 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.