RSE
Release 1.0

org.eclipse.rse.core
Class SystemPerspectiveHelpers

java.lang.Object
  extended byorg.eclipse.rse.core.SystemPerspectiveHelpers

public class SystemPerspectiveHelpers
extends Object


Field Summary
static String RSE_PERSP_ID
          The ID of the RSE perspective
 
Constructor Summary
SystemPerspectiveHelpers()
           
 
Method Summary
static SystemView findRSEView()
          Return the RSE tree view in the active perspective, or null if the active perspective is NOT the RSE perspective.
static IViewPart findView(String viewID)
          Search for, and return, a view with the given ID, in the active perspective
static IPerspectiveDescriptor getActivePerspective()
          Return the currently active perpsective in the currently active page in the currently active window.
static IWorkbenchWindow getActiveWindow()
          Return the currently active window.
static boolean isRSEPerspectiveActive()
          Tests if the RSE perspective is the active perspective
static boolean openInNewPage(String perspID)
          Opens a new page with a particular perspective, given the perspective's ID
static boolean openRSEPerspective()
          Opens the RSE perspective, if not already, in the current window
static IViewPart showView(String viewID)
          Show the view with given ID, if not already showing in current perspective, in current page, in current window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RSE_PERSP_ID

public static String RSE_PERSP_ID
The ID of the RSE perspective

Constructor Detail

SystemPerspectiveHelpers

public SystemPerspectiveHelpers()
Method Detail

openRSEPerspective

public static boolean openRSEPerspective()
Opens the RSE perspective, if not already, in the current window


isRSEPerspectiveActive

public static boolean isRSEPerspectiveActive()
Tests if the RSE perspective is the active perspective


openInNewPage

public static boolean openInNewPage(String perspID)
Opens a new page with a particular perspective, given the perspective's ID

Returns:
true if was open or successfully opened/focused. False if anything went wrong

getActivePerspective

public static IPerspectiveDescriptor getActivePerspective()
Return the currently active perpsective in the currently active page in the currently active window. May return null!


getActiveWindow

public static IWorkbenchWindow getActiveWindow()
Return the currently active window. May return null!


findView

public static IViewPart findView(String viewID)
Search for, and return, a view with the given ID, in the active perspective


findRSEView

public static SystemView findRSEView()
Return the RSE tree view in the active perspective, or null if the active perspective is NOT the RSE perspective.


showView

public static IViewPart showView(String viewID)
Show the view with given ID, if not already showing in current perspective, in current page, in current window.

Returns:
the view part instance if found or opened successfully. Null if something went wrong

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.