|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.core.service.AbstractProvider
org.eclipse.gmf.runtime.common.ui.services.dnd.core.AbstractDragDropListenerProvider
public abstract class AbstractDragDropListenerProvider
The abstract parent of all concrete drag and drop listener providers. A
concrete provider needs to override the getDragSourceListener()
and getDropTargetListener
methods. The provides
method has a default implementation. The provides()
method is
already handled by the proxy for the provider (
DragDropListenerService.ProviderDescriptor
). The proxy
contains all the information necessary for the provides()
method.
Constructor Summary | |
---|---|
AbstractDragDropListenerProvider()
Constructor for AbstractDragDropListenerProvider. |
Method Summary | |
---|---|
IDragSourceListener[] |
getDragSourceListeners(IDragListenerContext context)
Returns an array of IDragSourceListener for the given
IDragDropListenerContext |
IDropTargetListener[] |
getDropTargetListeners(IDropListenerContext context)
Returns an array of IDropTargetListener for the given
IDragDropListenerContext |
boolean |
provides(IOperation operation)
Returns true if the provider can handle the
ListenerOperation 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 |
---|
public AbstractDragDropListenerProvider()
Method Detail |
---|
public final boolean provides(IOperation operation)
true
if the provider can handle the
ListenerOperation
operation
provides
in interface IProvider
operation
- An operation
true
if the provider can handle the
ListenerOperation
operation. Otherwise returns
false
IProvider.provides(org.eclipse.gmf.runtime.common.core.service.IOperation)
public IDragSourceListener[] getDragSourceListeners(IDragListenerContext context)
IDragDropListenerProvider
IDragSourceListener
for the given
IDragDropListenerContext
getDragSourceListeners
in interface IDragDropListenerProvider
context
- The context for the provider
IDragSourceListener
public IDropTargetListener[] getDropTargetListeners(IDropListenerContext context)
IDragDropListenerProvider
IDropTargetListener
for the given
IDragDropListenerContext
getDropTargetListeners
in interface IDragDropListenerProvider
context
- The context for the provider
IDropTargetListener
|
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.