Package org.apache.uima.caseditor.editor

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


      else {
        cell.setText(value.get().toString());
      }
    }
    else {
      throw new CasEditorError("Unkown element!");
    }
  }
View Full Code Here

            } 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!");
           
      }
      else if (ts.subsumes(ts.getType(CAS.TYPE_NAME_ANNOTATION), type)) {
     
      // get begin of selection from editor, if any 
View Full Code Here

      ArrayValue arrayValue = (ArrayValue) cell.getElement();

      cell.setText(Integer.toString(arrayValue.slot()));
    }
    else {
      throw new CasEditorError("Unkown element!");
    }
  }
View Full Code Here

    } else if (value instanceof StringArrayFS) {
      StringArrayFS array = (StringArrayFS) value;

      size = array.size();
    } else {
      throw new CasEditorError("Unkown array type!");
    }

    return size;
  }
View Full Code Here

      ArrayFS array = (ArrayFS) value.getFeatureStructure();

      return getElements(array.get(value.slot()));
    }
    else {
      throw new CasEditorError("Unexpected element type!");
    }
  }
View Full Code Here

        // false for primitive arrays
        return false;
      }
    }
    else {
      throw new CasEditorError("Unkown element type");
    }
  }
View Full Code Here

      else {
        cell.setText(value.get().toString());
      }
    }
    else {
      throw new CasEditorError("Unkown element!");
    }
  }
View Full Code Here

                event.detail = DND.DROP_COPY;
              }

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

        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

TOP

Related Classes of org.apache.uima.caseditor.editor.CasEditorError

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.