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
FieldsModifier and TypeFieldDescriptionstatic final StringThe ID of the view as specified by the extension.Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImagecreateImage(ImageDescriptor imageDescriptor) After the view has been initialized, this method can be used to create an image for the descriptor.voidcreatePartControl(Composite parent) This is a callback that will allow us to create the viewer and initialize it.voiddispose()getAdapter(Class adapter) Provides the adapters.static ComposedAdapterFactoryThis accesses a cached version of the property sheet.voidsetFocus()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, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart
-
getAdapter
Provides the adapters. In particular this is the property sheet. The rest is handed over to super.- Specified by:
getAdapterin interfaceIAdaptable- Overrides:
getAdapterin 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:
setFocusin interfaceIWorkbenchPart- Specified by:
setFocusin 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 ofLocalResourceManagerwhich 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:
disposein interfaceIWorkbenchPart- Overrides:
disposein classWorkbenchPart
-