Class WorkbenchHelper

java.lang.Object
org.libreoffice.ide.eclipse.core.utils.WorkbenchHelper

public class WorkbenchHelper extends Object
Provides a set of useful method to perform actions on the Eclipse workbench.
  • 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 show
      page - the active workbench page
    • getActivePage

      public static org.eclipse.ui.IWorkbenchPage getActivePage()
      Convenience method returning the active workbench page.
      Returns:
      the active page