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

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


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

  /**
 
View Full Code Here


                    int start = ps.getStartLineIndex();
                    int end = ps.getEndLineIndex();

                    for (int i = start; i <= end; i++) {
                        if (i == line) {
                            model.collapse(element);
                            break;
                        }
                    }
                }
View Full Code Here

                            elements.add(element);

                        } else {
                            //ok, the one in the top has to be collapsed ( and this one added )
                            PyProjectionAnnotation top = (PyProjectionAnnotation) elements.remove(elements.size() - 1);
                            model.collapse(top);
                            elements.add(element);
                        }
                    }
                }
                if (elements.size() > 0) {
View Full Code Here

                        }
                    }
                }
                if (elements.size() > 0) {
                    PyProjectionAnnotation top = (PyProjectionAnnotation) elements.remove(elements.size() - 1);
                    model.collapse(top);
                }
            }
        }
    }
}
View Full Code Here

      }
     
      // Now collapse the annotations that were collapsed before
      Object[] annotations = collapsedAnnotations.toArray();
      for (int x =0;x<annotations.length;x++) {
          pModel.collapse((ProjectionAnnotation)annotations[x]);
      }
      }
      catch (Exception e) {
          e.printStackTrace();
      }
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.