|
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.services.action.global.AbstractGlobalActionHandler
org.eclipse.gmf.runtime.common.ui.action.actions.global.ResourceGlobalActionHandler
public abstract class ResourceGlobalActionHandler
Global action handler that works with the resources in the context selection.
Constructor Summary | |
---|---|
ResourceGlobalActionHandler()
|
Method Summary | |
---|---|
boolean |
canHandle(IGlobalActionContext cntxt)
Return true if the handler can handle the context |
protected IStructuredSelection |
getResourceSelection(IStructuredSelection selection)
Gets a structured selection containing all of the IResources in the context selection. |
protected Shell |
getShell(IWorkbenchPart part)
Gets the shell from the global action context. |
Methods inherited from class org.eclipse.gmf.runtime.common.ui.services.action.global.AbstractGlobalActionHandler |
---|
getLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.gmf.runtime.common.ui.services.action.global.IGlobalActionHandler |
---|
getCommand |
Constructor Detail |
---|
public ResourceGlobalActionHandler()
Method Detail |
---|
public boolean canHandle(IGlobalActionContext cntxt)
IGlobalActionHandler
cntxt
- The context
protected IStructuredSelection getResourceSelection(IStructuredSelection selection)
selection
- the context selection for which IStructuredSelection
will be retrieved
protected Shell getShell(IWorkbenchPart part)
part
- the IWorkbenchPart
for which a Shell
will be retrieved
|
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.