Examples of IRosterViewerDropTarget


Examples of org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget

      }
      IConfigurationElement[] configurationElements = extensionPoint.getConfigurationElements();

      for (int i = 0; i < configurationElements.length; i++) {
        try {
          IRosterViewerDropTarget rosterDropTarget = (IRosterViewerDropTarget) configurationElements[i].createExecutableExtension(ROSTER_VIEWER_DROP_TARGET_CLASS_ATTR);
          if (dropAdapter == null) {
            dropAdapter = new RosterViewerDropAdapter(treeViewer, rosterDropTarget);
            treeViewer.addDropSupport(dndOperations, dndTransferTypes, dropAdapter);
          } else
            dropAdapter.addRosterDropTarget(rosterDropTarget);
View Full Code Here

Examples of org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget

    }

    public boolean performDrop(Object data) {
      boolean result = false;
      for (Iterator i = rosterPerformDrop.iterator(); i.hasNext();) {
        IRosterViewerDropTarget rdt = (IRosterViewerDropTarget) i.next();
        if (rdt.performDrop(data))
          result = true;
      }
      rosterPerformDrop.clear();
      return result;
    }
View Full Code Here

Examples of org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget

    public boolean validateDrop(Object target, int operation, TransferData transferType) {
      if (target instanceof IRosterItem) {
        rosterPerformDrop.clear();
        boolean result = false;
        for (Iterator i = rosterDropTargets.iterator(); i.hasNext();) {
          IRosterViewerDropTarget rdt = (IRosterViewerDropTarget) i.next();
          if (rdt.validateDrop((IRosterItem) target, operation, transferType)) {
            result = true;
            rosterPerformDrop.add(rdt);
          }
        }
        return result;
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.