Examples of CasEditorError


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

                event.detail = DND.DROP_COPY;
              }

            } else {
              throw new CasEditorError("Unkown item type!");
            }
          }
        }
      }
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 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 (value instanceof StringArrayFS) {
      StringArrayFS array = (StringArrayFS) value;

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

    return size;
  }
View Full Code Here

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

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

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

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

        // false for primitive arrays
        return false;
      }
    }
    else {
      throw new CasEditorError("Unkown element type");
    }
  }
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
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.