Class WorkbenchHelper
java.lang.Object
org.libreoffice.ide.eclipse.core.utils.WorkbenchHelper
Provides a set of useful method to perform actions on the Eclipse workbench.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.ui.IWorkbenchPageConvenience method returning the active workbench page.static voidshowFile(org.eclipse.core.resources.IFile file, org.eclipse.ui.IWorkbenchPage page) Simply shows the file in the IDE.
-
Constructor Details
-
WorkbenchHelper
public WorkbenchHelper()
-
-
Method Details
-
showFile
public static void showFile(org.eclipse.core.resources.IFile file, org.eclipse.ui.IWorkbenchPage page) Simply shows the file in the IDE.- Parameters:
file- the file to showpage- the active workbench page
-
getActivePage
public static org.eclipse.ui.IWorkbenchPage getActivePage()Convenience method returning the active workbench page.- Returns:
- the active page
-