Package org.erlide.wrangler.refactoring.core.internal

Examples of org.erlide.wrangler.refactoring.core.internal.MoveFunctionRefactoring


            moduleList.remove(WranglerUtils.removeExtension(moduleName));

            pages.add(new ComboInputPage("Move function",
                    "Please select the destination module", "Destination module:",
                    moduleList));
            refactoring = new MoveFunctionRefactoring();

            // run fold expression against a local function
        } else if (actionId.equals("org.erlide.wrangler.refactoring.foldlocalexpression")) {

            refactoring = new FoldLocalExpressionRefactoring();
View Full Code Here


        }
        moduleName = file.getName();

        moduleName = moduleName.substring(0, moduleName.lastIndexOf("."));

        final MoveFunctionRefactoring refactoring = new MoveFunctionRefactoring();
        refactoring.setUserInput(moduleName);
        final RefactoringWizard wizard = new DefaultWranglerRefactoringWizard(
                refactoring, RefactoringWizard.DIALOG_BASED_USER_INTERFACE,
                new ArrayList<WranglerPage>());

        final Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();

        final RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(
                wizard);

        try {
            op.run(shell, refactoring.getName());
        } catch (final Exception e) {
            ErlLogger.error(e);
        }

        return Status.OK_STATUS;
View Full Code Here

TOP

Related Classes of org.erlide.wrangler.refactoring.core.internal.MoveFunctionRefactoring

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.