com.aptana.ide.editor.html.folding
Class HTMLFoldingContextHandler

java.lang.Object
  extended by com.aptana.ide.editor.html.folding.HTMLFoldingContextHandler
All Implemented Interfaces:
IFoldingContextHandler

public class HTMLFoldingContextHandler
extends java.lang.Object
implements IFoldingContextHandler

Author:
Kevin Sawicki (ksawicki@aptana.com)

Constructor Summary
HTMLFoldingContextHandler()
          HTMLFoldingContextHandler
 
Method Summary
 boolean nodeIsFoldable(IParseNode node)
          This method is designed to allow folding markers to be offered based on a context that can not be determined on a node by node basis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLFoldingContextHandler

public HTMLFoldingContextHandler()
HTMLFoldingContextHandler

Method Detail

nodeIsFoldable

public boolean nodeIsFoldable(IParseNode node)
Description copied from interface: IFoldingContextHandler
This method is designed to allow folding markers to be offered based on a context that can not be determined on a node by node basis. Such an example would be folding only div nodes in HTML and those nodes are a more general tag parse node. This method should return as fast as possible to it doesn't delay updating the folding annotations in the editor

Specified by:
nodeIsFoldable in interface IFoldingContextHandler
Parameters:
node - - current parse node
Returns:
- true to offer folding, false to not
See Also:
IFoldingContextHandler.nodeIsFoldable(com.aptana.ide.parsing.nodes.IParseNode)