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.services.action.global
Class AbstractGlobalActionHandlerProvider

java.lang.Object
  extended by 

org.eclipse.gmf.runtime.common.core.service.AbstractProvider
      extended by 
org.eclipse.gmf.runtime.common.ui.services.action.global.AbstractGlobalActionHandlerProvider
All Implemented Interfaces:
IProvider, IGlobalActionHandlerProvider
Direct Known Subclasses:
DiagramGlobalActionHandlerProvider, DiagramIDEGlobalActionHandlerProvider, DiagramWithPrintGlobalActionHandlerProvider, EditorGlobalActionHandlerProvider

public abstract class AbstractGlobalActionHandlerProvider
extends AbstractProvider
implements IGlobalActionHandlerProvider

The abstract parent of all concrete global action handler providers. A concrete provider needs to override the getGlobalActionHandler() method only. The provides() method has a default implementation. The provides() method is already handled by the proxy for the provider (GlobalActionHandlerService.ProviderDescriptor). The proxy contains all the information necessary to decide handle the provides() method.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.gmf.runtime.common.ui.services.action.global. IGlobalActionHandlerProvider
IGlobalActionHandlerProvider.NullElementType
 
Constructor Summary
AbstractGlobalActionHandlerProvider ()
          Constructor for AbstractGlobalActionHandlerProvider.
 
Method Summary
  IGlobalActionHandler getGlobalActionHandler ( IGlobalActionHandlerContext context)
          Returns a IGlobalActionHandler for the given IGlobalActionHandlerContext
 boolean provides ( IOperation operation)
          Returns true if the provider can handle the GlobalActionHandlerOperation operation
 
Methods inherited from class org.eclipse.gmf.runtime.common.core.service. AbstractProvider
addProviderChangeListener, fireProviderChange, removeProviderChangeListener
 
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.core.service. IProvider
addProviderChangeListener, removeProviderChangeListener
 

Constructor Detail

AbstractGlobalActionHandlerProvider

public AbstractGlobalActionHandlerProvider()
Constructor for AbstractGlobalActionHandlerProvider.

Method Detail

getGlobalActionHandler

public 
IGlobalActionHandler getGlobalActionHandler(
IGlobalActionHandlerContext context)
Returns a IGlobalActionHandler for the given IGlobalActionHandlerContext

Specified by:
getGlobalActionHandler in interface IGlobalActionHandlerProvider
Parameters:
context - The context information
Returns:
The global action handler associated with the context

provides

public final boolean provides(
IOperation operation)
Returns true if the provider can handle the GlobalActionHandlerOperation operation

Specified by:
provides in interface IProvider
Parameters:
operation - An operation
Returns:
Returns true if the provider can handle the GlobalActionHandlerOperation operation. Otherwise returns false

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