ControlContainerStructureViewDriver Class

com.bea.ide.lang.control.driver
ControlContainerStructureViewDriver Class

public class ControlContainerStructureViewDriver

    extends JavaStructureViewDriver

This is a driver for structure view that shows slightly different information than the java driver. Specifically, this shows controls methods on the structure view.


Hierarchy
Object
  DefaultDocumentDriver
    JavaStructureViewDriver
      ControlContainerStructureViewDriver
All Implemented Interfaces

IStructureViewDriver

Field Summary

   
Fields from  com.bea.ide.lang.java.driver.JavaStructureViewDriver
ICON_CLASS, ICON_MEMBER, ICON_METHOD
 

Constructor Summary

ControlContainerStructureViewDriver(ISourceDocument file)

Construct the driver.
 

Method Summary

public Icon
getIcon(IElement jb)
Determines the icon that should be displayed for this element by asking the visitor created by JavaStructureViewDriver.createIconVisitor().
public IElement
getSelectionElement(IElement node)
Returns the element that should be set as the selected element when the given element is selected in the structure view
public boolean
isLeaf(IElement jb)
Determines whether a JavaElement is a leaf by asking the visitor created by JavaStructureViewDriver.createLeafVisitor().
 
Methods from  com.bea.ide.lang.java.driver.JavaStructureViewDriver
compareName, compareType, createDisplayedVisitor, createFollowedVisitor, createIconVisitor, createLeafVisitor, createPopupVisitor, getDocumentElement, getPopupMenu, getTooltip, isDisplayed, isFollowed, not, performDoubleClickAction, toBoolean
 
Methods from  com.bea.ide.sourceeditor.driver.DefaultDocumentDriver
getDocument, setDocument
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.ide.ui.structureview.IStructureViewDriver
compareName, compareType, getDocumentElement, getIcon, getPopupMenu, getSelectionElement, getTooltip, isDisplayed, isFollowed, isLeaf, performDoubleClickAction
 

Constructor Detail

ControlContainerStructureViewDriver

public ControlContainerStructureViewDriver(ISourceDocument file)
Construct the driver.
 

Method Detail

getIcon(IElement) Method

public Icon getIcon(IElement jb)
Description copied from JavaStructureViewDriver.getIcon(IElement)
Determines the icon that should be displayed for this element by asking the visitor created by JavaStructureViewDriver.createIconVisitor().

Overrides
JavaStructureViewDriver.getIcon(IElement)

Parameters

jb
a JavaElement

Returns

Icon this element's Icon, possibly null.

getSelectionElement(IElement) Method

public IElement getSelectionElement(IElement node)
Description copied from IStructureViewDriver.getSelectionElement(IElement)
Returns the element that should be set as the selected element when the given element is selected in the structure view

Overrides
JavaStructureViewDriver.getSelectionElement(IElement)

isLeaf(IElement) Method

public boolean isLeaf(IElement jb)
Description copied from JavaStructureViewDriver.isLeaf(IElement)
Determines whether a JavaElement is a leaf by asking the visitor created by JavaStructureViewDriver.createLeafVisitor().

Overrides
JavaStructureViewDriver.isLeaf(IElement)

Parameters

jb
a JavaElement

Returns

boolean indicating whether this element is a leaf.