Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.ReadOnlyStateChecker


                problems,
                validateTarget(getCurrentTarget(dropAdapter), dropAdapter.getCurrentTransfer(),
                        dropAdapter.getCurrentOperation()));

        IContainer target = getActualTarget((IResource) getCurrentTarget(dropAdapter));
        ReadOnlyStateChecker checker = new ReadOnlyStateChecker(getShell(),
                WorkbenchNavigatorMessages.MoveResourceAction_title,
                WorkbenchNavigatorMessages.MoveResourceAction_checkMoveMessage);
        sources = checker.checkReadOnlyResources(sources);
        MoveFilesAndFoldersOperation operation = new MoveFilesAndFoldersOperation(getShell());
        operation.copyResources(sources, target);

        return problems;
    }
View Full Code Here


    mergeStatus(problems,
        validateTarget(getCurrentTarget(), getCurrentTransfer()));

    IContainer target = getActualTarget((IResource) getCurrentTarget());
    ReadOnlyStateChecker checker = new ReadOnlyStateChecker(getShell(),
        ResourceNavigatorMessages.MoveResourceAction_title,
        ResourceNavigatorMessages.MoveResourceAction_checkMoveMessage);
    sources = checker.checkReadOnlyResources(sources);

    fReorgMoveAction.setSources(sources);
    fReorgMoveAction.setTarget(target);

    ISelection selection = LocalSelectionTransfer.getInstance()
View Full Code Here

TOP

Related Classes of org.eclipse.ui.actions.ReadOnlyStateChecker

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.