org.eclipse.cdt.managedbuilder.ui.properties
Class ToolListElement

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.ui.properties.ToolListElement

public class ToolListElement
extends java.lang.Object

This class represent the elements in the TreeViewer that displays the tools and categories in the tool options property pages. The reason for these elements is illustrated by bugzilla #123461. We used to use the ToolChain, Tool and OptionCategory objects themselves as the elements in the TreeViewer, but the same OptionCategory can appear more than once in the list of Tree Viewer items, and this caused problems.


Constructor Summary
ToolListElement(ITool tool)
           
ToolListElement(ToolListElement parent, IHoldsOptions optionHolder, IOptionCategory optionCategory)
           
 
Method Summary
 void addChildElement(ToolListElement element)
           
 ToolListElement[] getChildElements()
           
 IHoldsOptions getHoldOptions()
           
 IOptionCategory getOptionCategory()
           
 ToolListElement getParent()
           
 ITool getTool()
           
 boolean isEquivalentTo(ToolListElement e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolListElement

public ToolListElement(ToolListElement parent,
                       IHoldsOptions optionHolder,
                       IOptionCategory optionCategory)

ToolListElement

public ToolListElement(ITool tool)
Method Detail

isEquivalentTo

public boolean isEquivalentTo(ToolListElement e)

getParent

public ToolListElement getParent()

getHoldOptions

public IHoldsOptions getHoldOptions()

getOptionCategory

public IOptionCategory getOptionCategory()

getTool

public ITool getTool()

getChildElements

public ToolListElement[] getChildElements()

addChildElement

public void addChildElement(ToolListElement element)