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 ResourceGlobalActionHandler

java.lang.Object
  extended by 

org.eclipse.gmf.runtime.common.ui.services.action.global.AbstractGlobalActionHandler
      extended by 
org.eclipse.gmf.runtime.common.ui.action.actions.global.ResourceGlobalActionHandler
All Implemented Interfaces:
IGlobalActionHandler
Direct Known Subclasses:
CloseResourceGlobalActionHandler, CopyResourceGlobalActionHandler, DeleteResourceGlobalActionHandler, MoveResourceGlobalActionHandler, OpenResouceGlobalActionHandler, PasteResourceGlobalActionHandler, RefreshResourceGlobalActionHandler, RenameResourceGlobalActionHandler, ResourcePropertiesGlobalActionHandler

public abstract class ResourceGlobalActionHandler
extends AbstractGlobalActionHandler

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

ResourceGlobalActionHandler

public ResourceGlobalActionHandler()
Method Detail

canHandle

public boolean canHandle(
IGlobalActionContext cntxt)
Description copied from interface: IGlobalActionHandler
Return true if the handler can handle the context

Parameters:
cntxt - The context
Returns:
boolean

getResourceSelection

protected 
IStructuredSelection getResourceSelection(
IStructuredSelection selection)
Gets a structured selection containing all of the IResources in the context selection. Selected elements may either by IResources or may adapt to IResource.

Parameters:
selection - the context selection for which IStructuredSelection will be retrieved
Returns:
the selection of file resources

getShell

protected 
Shell getShell(
IWorkbenchPart part)
Gets the shell from the global action context.

Parameters:
part - the IWorkbenchPart for which a Shell will be retrieved
Returns:
the shell

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