Examples of IDropTarget


Examples of org.eclipse.ui.internal.dnd.IDropTarget

                      && ((PartPane) sourcePart).getStack()!=null
                      && ((PartPane) sourcePart).getStack().isStandalone());
               
                // Only allow dropping onto an existing stack from different windows
                if (differentWindows && targetPart instanceof EditorStack) {
                    IDropTarget target = targetPart.getDropTarget(draggedObject, position);
                     return target;
                }
               
                // Reserve the 5 pixels around the edge of the part for the drop-on-edge cursor
                if (distance >= 5 && !standalone) {
                    // Otherwise, ask the part if it has any special meaning for this drop location
                    IDropTarget target = targetPart.getDropTarget(draggedObject, position);
                    if (target != null) {
                        return target;
                    }
                }
               
View Full Code Here

Examples of org.eclipse.ui.internal.dnd.IDropTarget

        if (sourcePart.getWorkbenchWindow() != page.getWorkbenchWindow()) {
            return null;
        }
   
        // Only handle the event if the source part is acceptable to the particular PartStack
        IDropTarget target = null;
        if (folder.allowsDrop(sourcePart)) {
          target = folder.getDropTarget(draggedObject, position);
         
          if (target == null) {
            Rectangle displayBounds = DragUtil.getDisplayBounds(folder.getControl());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.