public interface IWorkbenchService
Modifier and Type | Method and Description |
---|---|
IWorkbenchWindow |
getActiveOrFirstWorkbenchWindow() |
IStatusLineManager |
getActiveStatusLineManager()
Method returns the current
StatusLineManager . |
Shell |
getShell()
Returns the shell of the active workbench window.
|
IDiagramContainer |
openDiagramEditor(Diagram diagram)
Opens the given diagram in the diagram editor.
|
IDiagramContainer |
openDiagramEditor(Diagram diagram,
java.lang.String providerId)
Opens the given diagram in the diagram editor.
|
IDiagramContainer |
openDiagramEditor(Diagram diagram,
java.lang.String providerId,
java.lang.String editorId)
Opens the given diagram in the diagram editor with the given id.
|
IStatusLineManager getActiveStatusLineManager()
StatusLineManager
. If no
StatusLineManager is available, a new StatusLineManager will be created
and returned. In most cases this will not have any effect and will not be
able to display status info, but it makes null pointer checks when
calling the method obsoleteIWorkbenchWindow getActiveOrFirstWorkbenchWindow()
IDiagramContainer openDiagramEditor(Diagram diagram)
diagram
- which should be openeddomain
- IDiagramContainer openDiagramEditor(Diagram diagram, java.lang.String providerId)
diagram
- which should be openeddomain
- providerId
- the unique provider id of a diagram type provider which will
be used by the editor.IDiagramContainer openDiagramEditor(Diagram diagram, java.lang.String providerId, java.lang.String editorId)
diagram
- which should be openeddomain
- providerId
- the unique provider id of a diagram type provider which will
be used by the editor.editorId
- the unique Eclipse editor id of the diagram editor to open.
This id must belong to a subclass of IDiagramContainerUI
.Shell getShell()