org.aspectj.ajde.ui
Class StructureViewNodeFactory

java.lang.Object
  extended by org.aspectj.ajde.ui.StructureViewNodeFactory
Direct Known Subclasses:
SwingTreeViewNodeFactory

public abstract class StructureViewNodeFactory
extends java.lang.Object


Constructor Summary
StructureViewNodeFactory(AbstractIconRegistry iconRegistry)
           
 
Method Summary
static boolean acceptNode(IProgramElement parent, IProgramElement child)
          Don't show code elements under types since they show under the corresponding initializers.
protected abstract  IStructureViewNode createDeclaration(IProgramElement node, AbstractIcon icon, java.util.List children)
          Implementors must override this method in order to create new nodes.
protected abstract  IStructureViewNode createLink(IProgramElement node, AbstractIcon icon)
          Implementors must override this method in order to create link new nodes.
 IStructureViewNode createNode(IProgramElement node)
           
 IStructureViewNode createNode(IProgramElement node, java.util.List children)
           
protected abstract  IStructureViewNode createRelationship(IRelationship relationship, AbstractIcon icon)
          Implementors must override this method in order to create new relationship nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructureViewNodeFactory

public StructureViewNodeFactory(AbstractIconRegistry iconRegistry)
Method Detail

createNode

public IStructureViewNode createNode(IProgramElement node)

createNode

public IStructureViewNode createNode(IProgramElement node,
                                     java.util.List children)

createLink

protected abstract IStructureViewNode createLink(IProgramElement node,
                                                 AbstractIcon icon)
Implementors must override this method in order to create link new nodes.


createRelationship

protected abstract IStructureViewNode createRelationship(IRelationship relationship,
                                                         AbstractIcon icon)
Implementors must override this method in order to create new relationship nodes. If returned node is null it will not be added to the tree.


createDeclaration

protected abstract IStructureViewNode createDeclaration(IProgramElement node,
                                                        AbstractIcon icon,
                                                        java.util.List children)
Implementors must override this method in order to create new nodes.


acceptNode

public static boolean acceptNode(IProgramElement parent,
                                 IProgramElement child)
Don't show code elements under types since they show under the corresponding initializers.