Class WorkbenchHelper


  • public class WorkbenchHelper
    extends java.lang.Object
    Provides a set of useful method to perform actions on the Eclipse workbench.
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkbenchHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.eclipse.ui.IWorkbenchPage getActivePage()
      Convenience method returning the active workbench page.
      static void showFile​(org.eclipse.core.resources.IFile pFile, org.eclipse.ui.IWorkbenchPage pPage)
      Simply shows the file in the IDE.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkbenchHelper

        public WorkbenchHelper()
    • Method Detail

      • showFile

        public static void showFile​(org.eclipse.core.resources.IFile pFile,
                                    org.eclipse.ui.IWorkbenchPage pPage)
        Simply shows the file in the IDE.
        Parameters:
        pFile - the file to show
        pPage - the active workbench page
      • getActivePage

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