Remote Systems
v6.4.1

com.ibm.etools.systems.core
Class SystemPerspectiveHelpers

java.lang.Object
  extended bycom.ibm.etools.systems.core.SystemPerspectiveHelpers

public class SystemPerspectiveHelpers
extends Object


Field Summary
static String Copyright
           
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 This code stolen from org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard.
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

Copyright

public static final String Copyright
See Also:
Constant Field Values

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 This code stolen from org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard.

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

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.