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

  




 

 

RSE
Release 3.0

org.eclipse.rse.core.subsystems
Interface ISystemDragDropAdapter

All Superinterfaces:
IRemoteObjectIdentifier
All Known Subinterfaces:
ISystemViewElementAdapter
All Known Implementing Classes:
AbstractSystemViewAdapter, SystemViewRemoteOutputAdapter

public interface ISystemDragDropAdapter
extends IRemoteObjectIdentifier


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 canDrag ( SystemRemoteResourceSet elements)
          Return true if these objects 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.
  ISystemResourceSet doDrag ( SystemRemoteResourceSet set, IProgressMonitor monitor)
          Perform the drag on the given objects.
  ISystemResourceSet doDrop ( ISystemResourceSet fromSet, Object to, boolean sameSystemType, boolean sameSystem, int srcType, IProgressMonitor monitor)
          Perform drop from the "fromSet" of objects to the "to" 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
  ISubSystem getSubSystem ( Object element)
          Get the subsystem that corresponds to this object if one exists.
 boolean validateDrop ( ISystemResourceSet srcSet, Object target, boolean sameSystem)
          Return true if it is valid for the src objects to be dropped in the target
 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 org.eclipse.rse.core.subsystems. IRemoteObjectIdentifier
getAbsoluteName
 

Method Detail

canDrag

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


canDrag

boolean canDrag(
SystemRemoteResourceSet elements)
Return true if these objects can be copied to another location via drag and drop, or clipboard copy.


doDrag


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

doDrag


ISystemResourceSet doDrag(
SystemRemoteResourceSet set,
                          
IProgressMonitor monitor)
Perform the drag on the given objects.

Parameters:
set - the set of objects to copy
monitor - the progress monitor
Returns:
a set of temporary files of the object that was copied

canDrop

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


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


ISystemResourceSet doDrop(
ISystemResourceSet fromSet,
                          
Object to,
                          boolean sameSystemType,
                          boolean sameSystem,
                          int srcType,
                          
IProgressMonitor monitor)
Perform drop from the "fromSet" of objects to the "to" object

Parameters:
fromSet - the source objects 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 objects to be dropped
monitor - the progress monitor
Returns:
the set of new objects created from the drop

validateDrop

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

validateDrop

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

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

getSubSystem


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


RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire