Examples of validateDrop()


Examples of org.apache.sling.ide.eclipse.ui.nav.model.JcrNode.validateDrop()

    @Override
    public IStatus validateDrop(Object target, int operation,
            TransferData transferType) {
        if (target instanceof JcrNode) {
            JcrNode jcrNode = (JcrNode)target;
            IStatus result = jcrNode.validateDrop(operation, transferType);
            if (!result.isOK()) {
                // check for details to be shown in the status bar
                final String message = result.getMessage();
                if (message!=null && message.trim().length()>0) {
                    StatusLineUtils.setErrorMessage(2000, message);
View Full Code Here

Examples of org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget.validateDrop()

      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.