Class ApplicationsLabelProvider
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.viewers.BaseLabelProvider
-
- org.eclipse.jface.viewers.LabelProvider
-
- org.eclipse.ui.model.WorkbenchLabelProvider
-
- com.e1c.g5.dt.applications.ui.view.ApplicationsLabelProvider
-
- All Implemented Interfaces:
DelegatingStyledCellLabelProvider.IStyledLabelProvider
,IBaseLabelProvider
,IColorProvider
,IFontProvider
,ILabelProvider
,IToolTipProvider
,org.eclipse.ui.navigator.ICommonLabelProvider
,org.eclipse.ui.navigator.IDescriptionProvider
,org.eclipse.ui.navigator.IMementoAware
public class ApplicationsLabelProvider extends org.eclipse.ui.model.WorkbenchLabelProvider implements org.eclipse.ui.navigator.ICommonLabelProvider, IToolTipProvider
The label provider for the Applications view. It extends theWorkbenchLabelProvider
with a tooltip support.
-
-
Constructor Summary
Constructors Constructor Description ApplicationsLabelProvider(IApplicationManager applicationManager)
Constructs label providerApplicationsLabelProvider(IApplicationManager applicationManager, boolean showArtifacts)
Constructs label provider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
String
getDescription(Object anElement)
org.eclipse.swt.graphics.Font
getFont(Object element)
String
getToolTipText(Object element)
void
init(org.eclipse.ui.navigator.ICommonContentExtensionSite aConfig)
void
restoreState(org.eclipse.ui.IMemento aMemento)
void
saveState(org.eclipse.ui.IMemento aMemento)
-
Methods inherited from class org.eclipse.ui.model.WorkbenchLabelProvider
decorateImage, decorateText, getAdapter, getAdapter2, getAdapter3, getBackground, getDecoratingWorkbenchLabelProvider, getDecorationStyle, getForeground, getImage, getStyledText, getText
-
Methods inherited from class org.eclipse.jface.viewers.LabelProvider
createImageProvider, createTextImageProvider, createTextProvider
-
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
-
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.jface.viewers.IBaseLabelProvider
addListener, isLabelProperty, removeListener
-
Methods inherited from interface org.eclipse.jface.viewers.ILabelProvider
getImage, getText
-
-
-
-
Constructor Detail
-
ApplicationsLabelProvider
@Inject public ApplicationsLabelProvider(IApplicationManager applicationManager)
Constructs label provider- Parameters:
applicationManager
- the application manager, cannot beenull
-
ApplicationsLabelProvider
public ApplicationsLabelProvider(IApplicationManager applicationManager, boolean showArtifacts)
Constructs label provider- Parameters:
applicationManager
- the application manager, cannot beenull
showArtifacts
- iftrue
then tooltip will include publish state only and full state otherwise
-
-
Method Detail
-
restoreState
public void restoreState(org.eclipse.ui.IMemento aMemento)
- Specified by:
restoreState
in interfaceorg.eclipse.ui.navigator.IMementoAware
-
saveState
public void saveState(org.eclipse.ui.IMemento aMemento)
- Specified by:
saveState
in interfaceorg.eclipse.ui.navigator.IMementoAware
-
getDescription
public String getDescription(Object anElement)
- Specified by:
getDescription
in interfaceorg.eclipse.ui.navigator.IDescriptionProvider
-
init
public void init(org.eclipse.ui.navigator.ICommonContentExtensionSite aConfig)
- Specified by:
init
in interfaceorg.eclipse.ui.navigator.ICommonLabelProvider
-
getFont
public org.eclipse.swt.graphics.Font getFont(Object element)
- Specified by:
getFont
in interfaceIFontProvider
- Overrides:
getFont
in classorg.eclipse.ui.model.WorkbenchLabelProvider
-
getToolTipText
public String getToolTipText(Object element)
- Specified by:
getToolTipText
in interfaceIToolTipProvider
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceIBaseLabelProvider
- Overrides:
dispose
in classorg.eclipse.ui.model.WorkbenchLabelProvider
-
-