RSE
Release 1.0

org.eclipse.rse.ui.view
Class SystemViewDataDragAdapter

java.lang.Object
  extended byorg.eclipse.swt.dnd.DragSourceAdapter
      extended byorg.eclipse.rse.ui.view.SystemViewDataDragAdapter
All Implemented Interfaces:
DragSourceListener, EventListener, SWTEventListener

public class SystemViewDataDragAdapter
extends DragSourceAdapter

Drag adapter for dragging objects in the Systems views


Field Summary
static char CONNECTION_DELIMITER
           
static char RESOURCE_SEPARATOR
           
 
Constructor Summary
SystemViewDataDragAdapter(ISelectionProvider provider)
          Constructor for drag adapter
 
Method Summary
 void dragFinished(DragSourceEvent event)
           
 void dragSetData(DragSourceEvent event)
          Method for determining the source (drag) object(s) and encoding those objects in a byte[].
 void dragStart(DragSourceEvent event)
           
protected  IEditorDescriptor getDefaultTextEditor()
           
protected  IEditorRegistry getEditorRegistry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_DELIMITER

public static final char CONNECTION_DELIMITER
See Also:
Constant Field Values

RESOURCE_SEPARATOR

public static final char RESOURCE_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

SystemViewDataDragAdapter

public SystemViewDataDragAdapter(ISelectionProvider provider)
Constructor for drag adapter

Method Detail

dragFinished

public void dragFinished(DragSourceEvent event)

dragStart

public void dragStart(DragSourceEvent event)

dragSetData

public void dragSetData(DragSourceEvent event)
Method for determining the source (drag) object(s) and encoding those objects in a byte[]. We encode the profile, connection and subsystem, and then we use ISystemDragDropAdapter.getAbsoluteName() to determine the ID for the object within it's subsystem.


getEditorRegistry

protected IEditorRegistry getEditorRegistry()

getDefaultTextEditor

protected IEditorDescriptor getDefaultTextEditor()

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.