Examples of CasEditorError


Examples of org.apache.uima.caseditor.editor.CasEditorError

          }
          else if (arrayFS instanceof StringArrayFS) {
            // no validator needed
          }
          else {
            throw new CasEditorError("Unkown array type: " + arrayFS.getClass().getName());
          }
        }

        return editor;
      }
      else {
        throw new CasEditorError("Unknown element type: " + element.getClass().getName());
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

          else {
            return booleanToInt((Boolean) value.get());
          }
      }
      else {
        throw new CasEditorError("Unkown element type!");
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

          }

          document.update(arrayValue.getFeatureStructure());

        } else {
          throw new CasEditorError("Unkown element type");
        }
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

    }
    else if (OutlineStyles.TYPE.equals(outline.currentStyle())) {
      outline.switchStyle(OutlineStyles.MODE);
    }
    else {
      throw new CasEditorError("Unkown style!");
    }
  } 
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

          editor, mTableViewer));
    } else if (OutlineStyles.TYPE.equals(style)) {
      mTableViewer.setContentProvider(new TypeGroupedContentProvider(
          editor, mTableViewer));
    } else {
      throw new CasEditorError("Unkown style!");
    }

    mTableViewer.refresh();
  }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

        AnnotationTreeNode annotationNode = (AnnotationTreeNode) element;
       
        return shownTypes.contains(annotationNode.getAnnotation().getType());
      }
      else {
        throw new CasEditorError("Unxexpected element type!");
      }
    }}});
   
    mTableViewer.setLabelProvider(new OutlineLabelProvider());
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

            } else if (type.getName().equals(CAS.TYPE_NAME_STRING_ARRAY)) {
              fs = document.getCAS().createStringArrayFS(arraySize);
            } else if (type.getName().equals(CAS.TYPE_NAME_FS_ARRAY)) {
              fs = document.getCAS().createArrayFS(arraySize);
            } else {
              throw new CasEditorError("Unkown array type: " + type.getName() + "!");
           
      }
      else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_ANNOTATION), type)) {
     
      // get begin of selection from editor, if any 
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

        else if (arrayFS instanceof CommonArrayFS ||
                arrayFS instanceof StringArrayFS) {
          return true;
        }
        else {
          throw new CasEditorError("Unkown array type");
        }
      }
      else {
        throw new CasEditorError("Unkown element type!");
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

          }
          else if (arrayFS instanceof StringArrayFS) {
            // no validator needed
          }
          else {
            throw new CasEditorError("Unkown array type: " + arrayFS.getClass().getName());
          }
        }

        return editor;
      }
      else {
        throw new CasEditorError("Unknown element type: " + element.getClass().getName());
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.CasEditorError

          else {
            return booleanToInt((Boolean) value.get());
          }
      }
      else {
        throw new CasEditorError("Unkown element type!");
      }
    }
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.