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
public class EMFProfileApplicationsView extends ViewPart
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDThe ID of the view as specified by the extension.-
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
-
Constructor Summary
Constructors Constructor Description EMFProfileApplicationsView()The constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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()ObjectgetAdapter(Class adapter)Provides the adapters.static ComposedAdapterFactorygetAdapterFactory()IPropertySheetPagegetPropertySheetPage()This 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, 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 Detail
-
ID
public static final String ID
The ID of the view as specified by the extension.- See Also:
- Constant Field Values
-
-
Method Detail
-
createPartControl
public void createPartControl(Composite parent)
This is a callback that will allow us to create the viewer and initialize it.- Specified by:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart
-
getAdapter
public Object getAdapter(Class adapter)
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
public static ComposedAdapterFactory getAdapterFactory()
-
getPropertySheetPage
public IPropertySheetPage 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
public static Image createImage(ImageDescriptor imageDescriptor)
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
-
-