Package org.eclipse.net4j.util.ui.views
Class ContainerView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.net4j.util.ui.views.ContainerView
- All Implemented Interfaces:
IAdaptable
,IExecutableExtension
,ISelectionProvider
,IPersistable
,IViewPart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,ISetSelectionTarget
,IWorkbenchPartOrientation
- Direct Known Subclasses:
ContainerView.Default
public abstract class ContainerView
extends ViewPart
implements ISelectionProvider, ISetSelectionTarget
- Since:
- 3.9
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
static class
ContainerView.Default<CONTAINER extends IContainer<?>>
protected static enum
-
Field Summary
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCollapseAllAction
(IContributionManager manager) protected void
addMenuGroup
(IContributionManager manager, String groupName) protected void
protected void
addRefreshAction
(IContributionManager manager) void
protected void
addSeparator
(IContributionManager manager) Deprecated.protected void
protected void
protected void
protected ContainerItemProvider<IContainer<Object>>
protected IContentProvider
protected void
protected ILabelDecorator
protected IBaseLabelProvider
final void
createPartControl
(Composite parent) protected Control
protected ViewerComparator
protected ViewerSorter
protected void
doubleClicked
(Object object) void
expandElement
(Object element, int level) protected void
fillContextMenu
(IMenuManager manager, ITreeSelection selection) protected void
fillLocalPullDown
(IMenuManager manager) protected void
fillLocalToolBar
(IToolBarManager manager) <T> T
getAdapter
(Class<T> adapter) static ImageDescriptor
static ImageDescriptor
protected abstract IContainer<?>
static ImageDescriptor
protected Display
protected Color
getElementBackground
(Object element) protected Font
getElementFont
(Object element) protected Color
getElementForeground
(Object element) protected Image
getElementImage
(Object element) protected String
getElementText
(Object element) protected Action
static ImageDescriptor
protected IElementFilter
getShell()
protected void
handleElementEvent
(IEvent event) protected void
protected void
protected void
void
refreshElement
(Object element, boolean updateLabels) protected void
void
void
refreshViewer
(boolean updateLabels) void
void
void
revealElement
(Object element) protected void
selectionChanged
(IActionBars bars, ITreeSelection selection) void
selectReveal
(ISelection selection) void
setFocus()
void
setSelection
(ISelection selection) protected void
showMessage
(String message) protected boolean
showMessage
(ContainerView.MessageType type, String message) void
updateLabels
(Object element) Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Constructor Details
-
ContainerView
public ContainerView()
-
-
Method Details
-
getShell
-
getItemProvider
- Since:
- 3.9
-
getViewer
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
-
resetInput
public void resetInput() -
getSelection
- Specified by:
getSelection
in interfaceISelectionProvider
- Since:
- 3.0
-
setSelection
- Specified by:
setSelection
in interfaceISelectionProvider
- Since:
- 3.0
-
addSelectionChangedListener
- Specified by:
addSelectionChangedListener
in interfaceISelectionProvider
- Since:
- 3.0
-
removeSelectionChangedListener
- Specified by:
removeSelectionChangedListener
in interfaceISelectionProvider
- Since:
- 3.0
-
selectReveal
- Specified by:
selectReveal
in interfaceISetSelectionTarget
-
createPartControl
- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
-
createUI
-
createdUI
protected void createdUI()- Since:
- 3.1
-
initViewer
protected void initViewer()- Since:
- 3.1
-
createViewerComparator
- Since:
- 3.9
-
createViewerSorter
- Since:
- 3.3
-
createContentProvider
- Since:
- 3.0
-
createLabelProvider
- Since:
- 3.0
-
createLabelDecorator
- Since:
- 3.0
-
createContainerItemProvider
- Since:
- 3.9
-
handleElementEvent
- Since:
- 3.9
-
getElementText
-
getElementImage
-
getElementForeground
- Since:
- 3.0
-
getElementBackground
- Since:
- 3.0
-
getElementFont
- Since:
- 3.0
-
getRootElementFilter
-
getContainer
-
hookDoubleClick
protected void hookDoubleClick() -
hookContextMenu
protected void hookContextMenu() -
contributeToActionBars
protected void contributeToActionBars() -
fillLocalPullDown
-
fillLocalToolBar
-
fillContextMenu
-
addSeparator
Deprecated.As of 3.9 useaddMenuGroupAdditions(IContributionManager)
.- Since:
- 3.5
-
addMenuGroupAdditions
- Since:
- 3.9
-
addMenuGroup
- Since:
- 3.9
-
addRefreshAction
- Since:
- 3.5
-
addCollapseAllAction
- Since:
- 3.5
-
selectionChanged
-
doubleClicked
-
refreshPressed
protected void refreshPressed()- Since:
- 3.1
-
collapseAllPressed
protected void collapseAllPressed()- Since:
- 3.3
-
closeView
protected void closeView() -
showMessage
-
showMessage
-
getRefreshAction
- Since:
- 3.1
-
getCollapseAllAction
- Since:
- 3.3
-
getDisplay
-
getAdapter
- Specified by:
getAdapter
in interfaceIAdaptable
- Overrides:
getAdapter
in classWorkbenchPart
-
refreshPropertySheetPage
public void refreshPropertySheetPage()- Since:
- 3.5
-
refreshViewer
public void refreshViewer(boolean updateLabels) -
refreshElement
-
updateLabels
-
revealElement
-
expandElement
- Since:
- 3.3
-
getAddImageDescriptor
-
getDeleteImageDescriptor
-
getRefreshImageDescriptor
-
getCollapseAllImageDescriptor
- Since:
- 3.3
-
addMenuGroupAdditions(IContributionManager)
.