|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.trace.ui.provisional.control.provider.AbstractControlProvider
An abstract class that provides minimum functionality for control providers.
Contributors can extends this class or provide a direct implementation of
IControlProvider.
| Nested Class Summary | |
|---|---|
static class |
AbstractControlProvider.ControlItemAdapter
An adapter from an IAction to a IControlItem |
| Field Summary | |
|---|---|
protected java.util.List |
controlItems
Stores the control items |
protected org.eclipse.jface.viewers.StructuredSelection |
input
Stores the current input |
protected boolean |
isContextDifferent
A flag that indicates if the context has changed (this can happen if for example the profiling monitor is closed and re-opend) |
protected boolean |
isInputDifferent
A flag which indicates that the input has changed |
| Constructor Summary | |
|---|---|
AbstractControlProvider()
Default constructor |
|
| Method Summary | |
|---|---|
protected void |
addControlItem(IControlItem item)
Add 'item' to the list of control items maintained by this class. |
IControlItem[] |
createControlItems()
Creates and returns the control items of this provider. |
void |
initialize(java.lang.String entity)
This method is invoked once to give the control provider a chance to initialize. |
protected abstract void |
initializeControlItems()
Populates the control items managed by this control provider. |
void |
setInput(org.eclipse.jface.viewers.StructuredSelection input)
Invoked to set the current input that should be used as the context of this provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean isInputDifferent
protected boolean isContextDifferent
protected java.util.List controlItems
protected org.eclipse.jface.viewers.StructuredSelection input
| Constructor Detail |
public AbstractControlProvider()
| Method Detail |
public void initialize(java.lang.String entity)
IControlProvider
initialize in interface IControlProviderentity - The entity that this control provider is affiliated withIControlProvider.initialize(String)public void setInput(org.eclipse.jface.viewers.StructuredSelection input)
IControlProvider
setInput in interface IControlProviderinput - The inputIControlProvider.setInput(StructuredSelection)public IControlItem[] createControlItems()
IControlProvider
createControlItems in interface IControlProviderIControlProvider.createControlItems()protected abstract void initializeControlItems()
addControlItem(IControlItem)
protected void addControlItem(IControlItem item)
item - The item to add
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||