Package org.apache.uima.caseditor.editor

Examples of org.apache.uima.caseditor.editor.FeatureStructureSelection.toList()


      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


  public void run() {

    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(getStructuredSelection());

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

        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

  public void run() {

    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(getStructuredSelection());

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

      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

      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

  public void run() {

    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(getStructuredSelection());

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

  public void run() {

    FeatureStructureSelection featureStructures =
      new FeatureStructureSelection(getStructuredSelection());

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

 
        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

      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

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.