Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.ui.text.folding
Class DefaultJavaFoldingStructureProvider.FoldingStructureComputationContext

java.lang.Object
  extended by 
org.eclipse.jdt.ui.text.folding.DefaultJavaFoldingStructureProvider.FoldingStructureComputationContext
Enclosing class:
DefaultJavaFoldingStructureProvider

protected final class DefaultJavaFoldingStructureProvider.FoldingStructureComputationContext
extends Object

A context that contains the information needed to compute the folding structure of an ICompilationUnit or an IClassFile. Computed folding regions are collected via addProjectionRange.


Method Summary
 void addProjectionRange ( DefaultJavaFoldingStructureProvider.JavaProjectionAnnotation annotation, Position position)
          Adds a projection (folding) region to this context.
 boolean allowCollapsing ()
          Returns true if newly created folding regions may be collapsed, false if not.
 boolean collapseHeaderComments ()
          Returns true if header comments should be collapsed.
 boolean collapseImportContainer ()
          Returns true if import containers should be collapsed.
 boolean collapseInnerTypes ()
          Returns true if inner types should be collapsed.
 boolean collapseJavadoc ()
          Returns true if javadoc comments should be collapsed.
 boolean collapseMembers ()
          Returns true if methods should be collapsed.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allowCollapsing

public boolean allowCollapsing()
Returns true if newly created folding regions may be collapsed, false if not. This is usually false when updating the folding structure while typing; it may be true when computing or restoring the initial folding structure.

Returns:
true if newly created folding regions may be collapsed, false if not

addProjectionRange

public void addProjectionRange(
DefaultJavaFoldingStructureProvider.JavaProjectionAnnotation annotation,
                               
Position position)
Adds a projection (folding) region to this context. The created annotation / position pair will be added to the ProjectionAnnotationModel of the ProjectionViewer of the editor.

Parameters:
annotation - the annotation to add
position - the corresponding position

collapseHeaderComments

public boolean collapseHeaderComments()
Returns true if header comments should be collapsed.

Returns:
true if header comments should be collapsed

collapseImportContainer

public boolean collapseImportContainer()
Returns true if import containers should be collapsed.

Returns:
true if import containers should be collapsed

collapseInnerTypes

public boolean collapseInnerTypes()
Returns true if inner types should be collapsed.

Returns:
true if inner types should be collapsed

collapseJavadoc

public boolean collapseJavadoc()
Returns true if javadoc comments should be collapsed.

Returns:
true if javadoc comments should be collapsed

collapseMembers

public boolean collapseMembers()
Returns true if methods should be collapsed.

Returns:
true if methods should be collapsed

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire