Package org.eclipse.jface.text.source.projection

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.expand()


      FuzzyXMLNode selectedNode = _idToNodeMap.get(target);
      ProjectionAnnotationModel model = ((ProjectionViewer) _editor.getViewer()).getProjectionAnnotationModel();
      ProjectionAnnotation lastAnnotation = getAnnotationForNode(selectedNode, model);
      if (lastAnnotation != null) {
        model.expand(lastAnnotation);
      }
    }
  }

  /**
 
View Full Code Here


                while (iter.hasNext()) {
                    PyProjectionAnnotation element = (PyProjectionAnnotation) iter.next();

                    //special case, we have none in our context
                    if (elements.size() == 0) {
                        model.expand(element);
                        elements.add(element);

                    } else {
                        if (isInsideLast(element, elements, model)) {
                            //ignore
View Full Code Here

                        if (isInsideLast(element, elements, model)) {
                            //ignore

                        } else {
                            //ok, the one in the top has to be collapsed ( and this one added )
                            model.expand(element);
                            elements.add(element);
                        }
                    }
                }
            }
View Full Code Here

               
                // The annotation is completely inside the selection
                if (pos.offset >= selectionOffset
                        && pos.offset <= selectionOffset + length) {
                    boolean collapsed = annotation.isCollapsed();
                    pModel.expand(annotation);
                    Position newPos = new Position(pos.offset-selectionOffset,pos.length);
                    annotationList.add(new AnnotationPosition(annotation,newPos,collapsed));
                   
                    // Remove the annotation for now.
                    pModel.removeAnnotation(annotation);
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.