|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.actf.ui.util.PlatformUIUtil
public class PlatformUIUtil
Utility class to provide frequently used methods related to
PlatformUI
| Constructor Summary | |
|---|---|
PlatformUIUtil()
|
|
| Method Summary | |
|---|---|
static IEditorPart |
getActiveEditor()
Get active Editor |
static IWorkbenchPage |
getActivePage()
Get active workbench page |
static String |
getActivePerspectiveId()
Get active perspective ID |
static IWorkbenchWindow |
getActiveWindow()
Get active workbench window |
static IAction |
getGlobalActionHandler(String viewId,
String actionId)
Get global action handler |
static IWorkbenchHelpSystem |
getHelpSystem()
Get Help System |
static ImageDescriptor |
getSharedImageDescriptor(String symbolicName)
Get ImageDescriptor from Shared Images |
static ISharedImages |
getSharedImages()
Get SharedImages for the workbench |
static Shell |
getShell()
Get Active Workbench Window's shell |
static boolean |
isViewVisible(String viewId)
Check if view is visible or not |
static URL |
resolveHelpURL(String href,
boolean documentOnly)
Resolve the help resource href |
static IWorkbenchPage |
showPerspective(String perspectiveId)
Show the specified perspective |
static IViewPart |
showView(String viewId)
Show specified View |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlatformUIUtil()
| Method Detail |
|---|
public static IWorkbenchWindow getActiveWindow()
public static IWorkbenchPage getActivePage()
public static Shell getShell()
IWorkbenchWindowpublic static String getActivePerspectiveId()
public static IWorkbenchPage showPerspective(String perspectiveId)
perspectiveId - target perspective ID to show
IWorkbenchPage, or null if not availableIWorkbenchpublic static IEditorPart getActiveEditor()
public static boolean isViewVisible(String viewId)
viewId - target view ID to check the visibility
public static IViewPart showView(String viewId)
viewId - target view ID to show
public static IAction getGlobalActionHandler(String viewId,
String actionId)
viewId - target view IDactionId - target action ID
public static IWorkbenchHelpSystem getHelpSystem()
public static URL resolveHelpURL(String href,
boolean documentOnly)
href - target URLdocumentOnly - if true, the resulting URL must point at the document
referenced by href. Otherwise, it can be a URL that contains
additional elements like navigation that the help system adds
to the document.
IWorkbenchHelpSystempublic static ISharedImages getSharedImages()
public static ImageDescriptor getSharedImageDescriptor(String symbolicName)
symbolicName - the symbolic name of the image; there are constants declared
in this interface for build-in images that come with the
workbench
ISharedImages
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||