org.openoffice.ide.eclipse.core.utils
Class WorkbenchHelper

java.lang.Object
  extended by org.openoffice.ide.eclipse.core.utils.WorkbenchHelper

public class WorkbenchHelper
extends java.lang.Object

Provides a set of useful method to perform actions on the Eclipse workbench.

Author:
cbosdonnat

Constructor Summary
WorkbenchHelper()
           
 
Method Summary
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