Class EMFProfileApplicationsView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.modelversioning.emfprofile.application.registry.ui.views.EMFProfileApplicationsView
- All Implemented Interfaces:
IAdaptable
,IExecutableExtension
,IPersistable
,IViewPart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The ID of the view as specified by the extension.Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Image
createImage
(ImageDescriptor imageDescriptor) After the view has been initialized, this method can be used to create an image for the descriptor.void
createPartControl
(Composite parent) This is a callback that will allow us to create the viewer and initialize it.void
dispose()
getAdapter
(Class adapter) Provides the adapters.static ComposedAdapterFactory
This accesses a cached version of the property sheet.void
setFocus()
Passing the focus request to the viewer's control.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, 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, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
ID
The ID of the view as specified by the extension.- See Also:
-
-
Constructor Details
-
EMFProfileApplicationsView
public EMFProfileApplicationsView()The constructor.
-
-
Method Details
-
createPartControl
This is a callback that will allow us to create the viewer and initialize it.- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
-
getAdapter
Provides the adapters. In particular this is the property sheet. The rest is handed over to super.- Specified by:
getAdapter
in interfaceIAdaptable
- Overrides:
getAdapter
in classWorkbenchPart
- Parameters:
adapter
- to get.- Returns:
- the adapter.
-
getAdapterFactory
-
getPropertySheetPage
This accesses a cached version of the property sheet. -
setFocus
public void setFocus()Passing the focus request to the viewer's control.- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
-
createImage
After the view has been initialized, this method can be used to create an image for the descriptor. Images created in this way do not need to be extra disposed in the code. Images are created with usage ofLocalResourceManager
which takes care of disposal when the UI part is disposed.- Parameters:
imageDescriptor
-- Returns:
- image or null if the image could not be located.
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in classWorkbenchPart
-