Package org.eclipse.jdt.ui.text.folding
Class DefaultJavaFoldingStructureProvider.JavaProjectionAnnotation
- java.lang.Object
-
- org.eclipse.jface.text.source.Annotation
-
- org.eclipse.jface.text.source.projection.ProjectionAnnotation
-
- org.eclipse.jdt.ui.text.folding.DefaultJavaFoldingStructureProvider.JavaProjectionAnnotation
-
- All Implemented Interfaces:
IAnnotationPresentation
- Enclosing class:
- DefaultJavaFoldingStructureProvider
protected static final class DefaultJavaFoldingStructureProvider.JavaProjectionAnnotation extends ProjectionAnnotation
AProjectionAnnotationfor java code.
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.text.source.projection.ProjectionAnnotation
TYPE
-
Fields inherited from class org.eclipse.jface.text.source.Annotation
TYPE_UNKNOWN
-
Fields inherited from interface org.eclipse.jface.text.source.IAnnotationPresentation
DEFAULT_LAYER
-
-
Constructor Summary
Constructors Constructor Description JavaProjectionAnnotation(boolean isCollapsed, IJavaElement element, boolean isComment)Creates a new projection annotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()-
Methods inherited from class org.eclipse.jface.text.source.projection.ProjectionAnnotation
getLayer, isCollapsed, markCollapsed, markExpanded, paint, setRangeIndication
-
Methods inherited from class org.eclipse.jface.text.source.Annotation
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
-
-
-
-
Constructor Detail
-
JavaProjectionAnnotation
public JavaProjectionAnnotation(boolean isCollapsed, IJavaElement element, boolean isComment)Creates a new projection annotation.- Parameters:
isCollapsed-trueto set the initial state to collapsed,falseto set it to expandedelement- the java element this annotation refers toisComment-truefor a foldable comment,falsefor a foldable code element
-
-