Interface IWorkbenchService
- All Known Implementing Classes:
WorkbenchService
public interface IWorkbenchService
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.ui.IWorkbenchWindow
org.eclipse.jface.action.IStatusLineManager
Method returns the currentStatusLineManager
.org.eclipse.swt.widgets.Shell
getShell()
Returns the shell of the active workbench window.openDiagramEditor
(Diagram diagram) Opens the given diagram in the diagram editor.openDiagramEditor
(Diagram diagram, String providerId) Opens the given diagram in the diagram editor.openDiagramEditor
(Diagram diagram, String providerId, String editorId) Opens the given diagram in the diagram editor with the given id.
-
Method Details
-
getActiveStatusLineManager
org.eclipse.jface.action.IStatusLineManager getActiveStatusLineManager()Method returns the currentStatusLineManager
. 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 obsolete- Returns:
- the status line manager of the active part or a new one if there is no such part
-
getActiveOrFirstWorkbenchWindow
org.eclipse.ui.IWorkbenchWindow getActiveOrFirstWorkbenchWindow()- Returns:
- the active workbench window, or the first one if there is no active window
-
openDiagramEditor
Opens the given diagram in the diagram editor.- Parameters:
diagram
- which should be openeddomain
-- Returns:
- the editor instance
-
openDiagramEditor
Opens the given diagram in the diagram editor.- Parameters:
diagram
- which should be openeddomain
-providerId
- the unique provider id of a diagram type provider which will be used by the editor.- Returns:
- the editor instance
-
openDiagramEditor
Opens the given diagram in the diagram editor with the given id.- Parameters:
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 ofIDiagramContainerUI
.- Returns:
- the editor instance
- Since:
- 0.8.0
-
getShell
org.eclipse.swt.widgets.Shell getShell()Returns the shell of the active workbench window.- Returns:
- the shell
-