Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.view
Interface ISystemDragDropAdapter

All Superinterfaces:
IRemoteObjectIdentifier
All Known Subinterfaces:
ISystemViewElementAdapter
All Known Implementing Classes:
AbstractSystemViewAdapter, SystemTeamViewCategoryAdapter, SystemTeamViewCompileCommandAdapter, SystemTeamViewCompileTypeAdapter, SystemTeamViewProfileAdapter, SystemTeamViewSubSystemFactoryAdapter, SystemTeamViewUserActionAdapter, SystemViewConnectionAdapter, SystemViewFilterAdapter, SystemViewFilterPoolAdapter, SystemViewFilterPoolReferenceAdapter, SystemViewFilterReferenceAdapter, SystemViewFilterStringAdapter, SystemViewMessageAdapter, SystemViewPromptableAdapter, SystemViewRemoteFileAdapter, SystemViewRemoteOutputAdapter, SystemViewRootInputAdapter, SystemViewScratchpadAdapter, SystemViewSubSystemAdapter

public interface ISystemDragDropAdapter
extends IRemoteObjectIdentifier


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectIdentifier
Copyright
 
Method Summary
 boolean canDrag(Object element)
          Return true if this object can be copied to another location via drag and drop, or clipboard copy.
 boolean canDrop(Object element)
          Return true if another object can be copied into this object
 Object doDrag(Object element, boolean sameSystemType, IProgressMonitor monitor)
          Perform the drag on the given object.
 Object doDrop(Object from, Object to, boolean sameSystemType, boolean sameSystem, int srcType, IProgressMonitor monitor)
          Perform drop from the "from" object to the "to" object
 Object doDrop(Object from, Object to, boolean sameSystemType, boolean sameSystem, IProgressMonitor monitor)
          Deprecated. use doDrop(Object from, Object to, boolean sameSystemType, boolean sameSystem, int srcType, IProgressMonitor monitor) instead
 SubSystem getSubSystem(Object element)
          Get the subsystem that corresponds to this object if one exists.
 boolean validateDrop(Object src, Object target, boolean sameSystem)
          Return true if it is valid for the src object to be dropped in the target
 
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectIdentifier
getAbsoluteName
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Method Detail

canDrag

public boolean canDrag(Object element)
Return true if this object can be copied to another location via drag and drop, or clipboard copy.


doDrag

public Object doDrag(Object element,
                     boolean sameSystemType,
                     IProgressMonitor monitor)
Perform the drag on the given object.

Parameters:
element - the object to copy
sameSystemType - indication of whether the source and target reside on the same type of system
monitor - the progress monitor
Returns:
a temporary local copy of the object that was copied

canDrop

public boolean canDrop(Object element)
Return true if another object can be copied into this object

Parameters:
element - the target of a drop operation
Returns:
whether this object may be dropped on

doDrop

public Object doDrop(Object from,
                     Object to,
                     boolean sameSystemType,
                     boolean sameSystem,
                     int srcType,
                     IProgressMonitor monitor)
Perform drop from the "from" object to the "to" object

Parameters:
from - the source object for the drop
to - the target object for the drop
sameSystemType - indication of whether the source and target reside of the same type of system
sameSystem - indication of whether the source and target are on the same system
srcType - the type of object to be dropped.
monitor - the progress monitor
Returns:
the new copy of the object that was dropped

doDrop

public Object doDrop(Object from,
                     Object to,
                     boolean sameSystemType,
                     boolean sameSystem,
                     IProgressMonitor monitor)
Deprecated. use doDrop(Object from, Object to, boolean sameSystemType, boolean sameSystem, int srcType, IProgressMonitor monitor) instead

Perform drop from the "from" object to the "to" object

Parameters:
from - the source object for the drop
to - the target object for the drop
sameSystemType - indication of whether the source and target reside of the same type of system
sameSystem - indication of whether the source and target are on the same system
monitor - the progress monitor
Returns:
the new copy of the object that was dropped

validateDrop

public boolean validateDrop(Object src,
                            Object target,
                            boolean sameSystem)
Return true if it is valid for the src object to be dropped in the target

Parameters:
src - the object to drop
target - the object which src is dropped in
sameSystem - whether this is the same system
Returns:
whether this is a valid operation

getSubSystem

public SubSystem getSubSystem(Object element)
Get the subsystem that corresponds to this object if one exists.


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.