|
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.dnd.drag.DragSourceContext
public class DragSourceContext
Concrete implementation of IDragSourceContext
| Constructor Summary | |
|---|---|
DragSourceContext(IWorkbenchPart anActivePart)
Constructor for DragSourceContext. |
|
| Method Summary | |
|---|---|
protected void |
dragFinished(DragSourceEvent event)
Drag operation finished. |
protected void |
dragSetData(DragSourceEvent event)
Sets the data of the given DragSourceEvent |
protected void |
dragStart(DragSourceEvent event)
Drag operation started. |
IWorkbenchPart |
getActivePart()
Returns the active IWorkbenchPart associated with the drag
source viewer. |
ISelection |
getSelection()
Returns the selection of the drag source viewer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DragSourceContext(IWorkbenchPart anActivePart)
anActivePart - active IWorkbenchPart| Method Detail |
|---|
public ISelection getSelection()
IDragSourceContext
getSelection in interface IDragSourceContextpublic final IWorkbenchPart getActivePart()
IDragSourceContextIWorkbenchPart associated with the drag
source viewer.
getActivePart in interface IDragSourceContextIWorkbenchPartprotected void dragSetData(DragSourceEvent event)
event - the DragSourceEvent to have its data setDragSourceListener.dragSetData(org.eclipse.swt.dnd.DragSourceEvent)protected void dragStart(DragSourceEvent event)
event - the DragSouceEvent to be updatedDragSourceListener.dragStart(org.eclipse.swt.dnd.DragSourceEvent)protected void dragFinished(DragSourceEvent event)
event - the DragSouceEvent to be updatedDragSourceListener.dragFinished(org.eclipse.swt.dnd.DragSourceEvent)
|
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.