|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.util.ActionGroupCache
Cache for holding the ActionGroups created for part descriptors. This allows them to be properly disposed of when nolonger needed. There are not a lot of ActionGroups so try to be most efficient when none
| Constructor Summary | |
ActionGroupCache()
|
|
| Method Summary | |
void |
addActionGroup(java.lang.String actionGroupId,
ActionGroup actionGroup,
IWorkbenchPartDescriptor partDescriptor)
Add the action group just created with the id to the cache for the part supplied |
boolean |
contains(IWorkbenchPartDescriptor partDescriptor)
Identifies if there are any action groups associated with the part descriptor supplied. |
void |
dispose(IWorkbenchPartDescriptor partDescriptor)
disposes all the action groups associated with the partDescriptor supplied. |
ActionGroup |
getActionGroup(java.lang.String actionGroupId,
IWorkbenchPartDescriptor partDescriptor)
Get the cached ActionGroup for the part descriptor with the id supplied |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ActionGroupCache()
| Method Detail |
public void dispose(IWorkbenchPartDescriptor partDescriptor)
partDescriptor - -
part whose action groups are to be disposed.public boolean contains(IWorkbenchPartDescriptor partDescriptor)
partDescriptor - part to check if it has any action groups.
public ActionGroup getActionGroup(java.lang.String actionGroupId,
IWorkbenchPartDescriptor partDescriptor)
actionGroupId - id of the action group to retrievepartDescriptor - part whose action group is to be retrieved
public void addActionGroup(java.lang.String actionGroupId,
ActionGroup actionGroup,
IWorkbenchPartDescriptor partDescriptor)
actionGroupId - id of the action group to be cachedactionGroup - action group to cachepartDescriptor - part group was created for
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.