public class EEFTabbedPropertyViewer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
EEFTabbedPropertyViewer.IEEFTabDescriptorChangedListener
Interface used to listen to changes to the currently selected tab.
|
| Constructor and Description |
|---|
EEFTabbedPropertyViewer(EEFTabbedPropertyList tabbedPropertyList,
EEFTabbedPropertyRegistry registry)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionListener(EEFTabbedPropertyViewer.IEEFTabDescriptorChangedListener listener)
Adds a selection listener.
|
java.util.List<IEEFTabDescriptor> |
getElements()
Return the elements.
|
org.eclipse.jface.viewers.ISelection |
getInput()
Return the input.
|
int |
getSelectionIndex()
Returns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is
selected.
|
IEEFTabDescriptor |
getTabDescriptionAtIndex(int index)
Returns the element at the given index.
|
org.eclipse.ui.IWorkbenchPart |
getWorkbenchPart()
Get the current workbench part.
|
void |
setInput(org.eclipse.ui.IWorkbenchPart workbenchPart,
org.eclipse.jface.viewers.ISelection selection)
Set the input for viewer.
|
void |
setSelectedTabDescriptor(IEEFTabDescriptor descriptor)
Sets the tab descriptor to select.
|
public EEFTabbedPropertyViewer(EEFTabbedPropertyList tabbedPropertyList, EEFTabbedPropertyRegistry registry)
tabbedPropertyList - The tabbed property listregistry - The tabbed property registrypublic void addSelectionListener(EEFTabbedPropertyViewer.IEEFTabDescriptorChangedListener listener)
listener - The listenerpublic void setInput(org.eclipse.ui.IWorkbenchPart workbenchPart,
org.eclipse.jface.viewers.ISelection selection)
workbenchPart - the workbench part.selection - the selection in the workbench part.public org.eclipse.jface.viewers.ISelection getInput()
public org.eclipse.ui.IWorkbenchPart getWorkbenchPart()
public java.util.List<IEEFTabDescriptor> getElements()
public int getSelectionIndex()
public IEEFTabDescriptor getTabDescriptionAtIndex(int index)
index - The indexpublic void setSelectedTabDescriptor(IEEFTabDescriptor descriptor)
descriptor - The descriptor