Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Runtime

org.eclipse.gmf.runtime.common.ui.action.actions.global
Class GlobalActionManager

java.lang.Object
  extended by 
org.eclipse.gmf.runtime.common.ui.action.actions.global.GlobalActionManager
Direct Known Subclasses:
IDEGlobalActionManager

public class GlobalActionManager
extends java.lang.Object

This class manages all the global actions. It has methods to create global actions, add these actions to a menu and set these actions as the workbench global actions handlers.


Constructor Summary
protected GlobalActionManager ()
          Constructor for GlobalActionManager.
 
Method Summary
protected  void addActionId (java.lang.String actionId)
          Adds an ActionId to the list of action ids.
  GlobalAction createActionHandler ( IWorkbenchPage page, java.lang.String id)
          Creates an GlobalAction.
  GlobalAction createActionHandler ( IWorkbenchPart part, java.lang.String id)
          Creates an GlobalAction.
  GlobalAction[] createGlobalActions ( IWorkbenchPart part)
          Creates default list of all global actions
  GlobalAction[] createGlobalActions ( IWorkbenchPart part, java.lang.String[] actionIds)
          Creates specified list of global actions
  GlobalAction getGlobalAction ( IWorkbenchPart part, java.lang.String actionId)
          Get Global Action This method obtains the specific global action for the given part.
  GlobalAction getGlobalActionHandler ( IWorkbenchPart part, java.lang.String globalActionId)
          Returns the GlobalAction for the given part and action id
static  GlobalActionManager getInstance ()
          Return the singleton.
 void refreshGlobalActions ( IWorkbenchPart part)
          Refreshes the global actions for the given part
 void setGlobalActionHandlers ( IActionBars bar, IWorkbenchPart part)
          Set the global actions as the workbench global action handlers
 void unSetGlobalActionHandlers ( IActionBars bar, IWorkbenchPart part)
          Unset the global actions as the workbench global action handlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalActionManager

protected GlobalActionManager()
Constructor for GlobalActionManager.

Method Detail

getInstance

public static 
GlobalActionManager getInstance()
Return the singleton.

Returns:
a singleton instance of GlobalActionManager

getGlobalActionHandler

public 
GlobalAction getGlobalActionHandler(
IWorkbenchPart part,
                                           java.lang.String globalActionId)
Returns the GlobalAction for the given part and action id

Parameters:
globalActionId - An action id
part - The IWorkbenchPart
Returns:
GlobalAction

createActionHandler

public 
GlobalAction createActionHandler(
IWorkbenchPage page,
                                        java.lang.String id)
Creates an GlobalAction.

Parameters:
page - The workbench page
id - The action id
Returns:
GlobalAction

createActionHandler

public 
GlobalAction createActionHandler(
IWorkbenchPart part,
                                        java.lang.String id)
Creates an GlobalAction.

Parameters:
part - The workbench part
id - The action id
Returns:
GlobalAction

createGlobalActions

public 
GlobalAction[] createGlobalActions(
IWorkbenchPart part)
Creates default list of all global actions

Parameters:
part - The workbench part
Returns:
GlobalAction[] An array of GlobalAction

createGlobalActions

public 
GlobalAction[] createGlobalActions(
IWorkbenchPart part,
                                          java.lang.String[] actionIds)
Creates specified list of global actions

Parameters:
part - The workbench part
actionIds - List of actions ids
Returns:
GlobalAction[] An array of GlobalAction

getGlobalAction

public 
GlobalAction getGlobalAction(
IWorkbenchPart part,
                                    java.lang.String actionId)
Get Global Action This method obtains the specific global action for the given part. If the action does not exist, null is returned.

Parameters:
part - the workbench part associated with the global action
actionId - the ID of the global action to locate
Returns:
GlobalAction the global action, or null if none is defined for the part

setGlobalActionHandlers

public void setGlobalActionHandlers(
IActionBars bar,
                                    
IWorkbenchPart part)
Set the global actions as the workbench global action handlers

Parameters:
bar - The action bars
part - The workbench part

unSetGlobalActionHandlers

public void unSetGlobalActionHandlers(
IActionBars bar,
                                      
IWorkbenchPart part)
Unset the global actions as the workbench global action handlers

Parameters:
bar - The action bars
part - The workbench part

refreshGlobalActions

public void refreshGlobalActions(
IWorkbenchPart part)
Refreshes the global actions for the given part

Parameters:
part - The workbench part

addActionId

protected void addActionId(java.lang.String actionId)
Adds an ActionId to the list of action ids.

Parameters:
actionId - String action id to add.

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire