Examples of FeatureStructureSelection


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

  public void selectionChanged(IWorkbenchPart part, ISelection selection) {

    if (selection instanceof IStructuredSelection) {

      FeatureStructureSelection fsSelection = new FeatureStructureSelection(
              (IStructuredSelection) selection);

      if (fsSelection.size() == 1 && !pinAction.isChecked()) {

        // filter out selection which are cause by this view itself
        if (editView != part) {
          viewer.setInput(fsSelection.toList().get(0));
        }
      }
    }
  }
View Full Code Here

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

    setEnabled(true);
  }

  @Override
  protected boolean updateSelection(IStructuredSelection selection) {
    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(selection);

    return featureStructures.size() > 0;
  }
View Full Code Here

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

   * Executes the action.
   */
  @Override
  public void run() {

    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(getStructuredSelection());

    mDocument.removeFeatureStructures(featureStructures.toList());
  }
View Full Code Here

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

  public void selectionChanged(IWorkbenchPart part, ISelection selection) {

    if (getSite().getPage().getActiveEditor() == editor) {
      if (selection instanceof IStructuredSelection) {

        FeatureStructureSelection fsSelection = new FeatureStructureSelection(
                (IStructuredSelection) selection);

        if (fsSelection.size() == 1 && !pinAction.isChecked()) {

          // filter out selection which are cause by this view itself
          if (editView != part) {
            viewer.setInput(fsSelection.toList().get(0));
          }
        }
      }
    }
  }
View Full Code Here

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

    setEnabled(false);
  }

  @Override
  protected boolean updateSelection(IStructuredSelection selection) {
    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(selection);

    return featureStructures.size() > 0;
  }
View Full Code Here

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

   * Executes the action.
   */
  @Override
  public void run() {

    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(getStructuredSelection());

    editor.getDocument().removeFeatureStructures(featureStructures.toList());
  }
View Full Code Here

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

  }

  public void selectionChanged(IWorkbenchPart part, ISelection selection) {
    if (selection instanceof IStructuredSelection) {
      FeatureStructureSelection fsSelection = new FeatureStructureSelection(
              (IStructuredSelection) selection);
      if (fsSelection.isEmpty()) {
        return;
      }
      FeatureStructure featureStructure = fsSelection.toList().get(0);
      if (featureStructure instanceof AnnotationFS) {
        CAS cas = document.getCAS();
        Type t = cas.getTypeSystem().getType(CreatedByVisitor.TYPE);
        Feature featureAnnotation = t.getFeatureByBaseName(CreatedByVisitor.FEATURE_ANNOTATION);
        FSIterator<FeatureStructure> iterator = cas.getIndexRepository().getAllIndexedFS(t);
View Full Code Here

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

  public void selectionChanged(IWorkbenchPart part, ISelection selection) {

    if (selection instanceof IStructuredSelection) {

      FeatureStructureSelection fsSelection = new FeatureStructureSelection(
              (IStructuredSelection) selection);

      if (fsSelection.size() == 1 && !pinAction.isChecked()) {

        // filter out selection which are cause by this view itself
        if (editView != part) {
          viewer.setInput(fsSelection.toList().get(0));
        }
      }
    }
  }
View Full Code Here

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

    setEnabled(true);
  }

  @Override
  protected boolean updateSelection(IStructuredSelection selection) {
    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(selection);

    return featureStructures.size() > 0;
  }
View Full Code Here

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

   * Executes the action.
   */
  @Override
  public void run() {

    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(getStructuredSelection());

    mDocument.removeFeatureStructures(featureStructures.toList());
  }
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.