Package org.eclipse.ui.views.navigator

Examples of org.eclipse.ui.views.navigator.LocalSelectionTransfer


     */
    protected void validateDrop(DropTargetEvent event) {
        if (event.detail != DND.DROP_NONE)
            lastValidOperation = event.detail;

        LocalSelectionTransfer transfer = LocalSelectionTransfer.getInstance();
        Object source = SelectionUtil.getSingleElement(transfer.getSelection());
        Object target = getTarget(event);
        if ((event.currentDataType != null)
                && (transfer.isSupportedType(event.currentDataType))
                && (target instanceof AspectManagerNode)) {
            if (source instanceof AspectNode) {
                AspectNode aspect = (AspectNode) source;
                // Allow drag operations on a different aspect manager node.
                if (target != aspect.getAspectManager()) {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.views.navigator.LocalSelectionTransfer

Copyright © 2018 www.massapicom. 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.