Package org.eclipse.ltk.ui.refactoring

Examples of org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run()


        final Shell shell = new Shell();
        final RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(
                wizard);

        try {
            final int ret = op.run(shell, refactoring.getName());

            if (RefactoringStatus.OK == ret) {
                refactoring.doAfterRefactoring();
            }
        } catch (final Exception e) {
View Full Code Here


        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

                if (useLtk) {
                    RenameRefactoringWizard wizard = new RenameRefactoringWizard(ref);
                    wizard.setDefaultPageTitle(Messages.getString("Refactoring.variable.name"));
                    RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(wizard);
                    try {
                        result = op.run(Display.getCurrent().getActiveShell(), "");
                        if (result != IDialogConstants.OK_ID) {
                            return;
                        }
                    } catch (InterruptedException ex) {
                        // operation was canceled
View Full Code Here

                RenameRefactoringWizard wizard = new RenameRefactoringWizard(ref);
                wizard.setDefaultPageTitle(Messages.getString("Refactoring.variable.name"));

                RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(wizard);
                try {
                    result = op.run(Display.getCurrent().getActiveShell(), "");
                    if (result != IDialogConstants.OK_ID) {
                        return;
                    }
                } catch (InterruptedException ex) {
                    // operation was canceled
View Full Code Here

      refactoring.setEjbJarXmlFile(resource.getProjectRelativePath().toString());
    }
   
    RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(new EJBMigrationWizard(refactoring, RefactoringWizard.WIZARD_BASED_USER_INTERFACE));
    try {
      op.run(Activator.getWorkbenchWindow().getShell(), Messages.getString("org.apache.openejb.helper.annotation.refactoringWizardDialogTitle")); //$NON-NLS-1$
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  private void openWizard() {
    Refactoring ref = getRefactoring();   
    RenameRefactorWizard wizard = new RenameRefactorWizard( ref, info );
    RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation( wizard );
    try {
      op.run( shell, "Rename Refactoring Wizard");
    } catch( final InterruptedException irex ) {
      // operation canceled
    }
  }
 
View Full Code Here

  private void openWizard() {
    Refactoring ref = new ReformatProductionRefactoring(info);   
    ReformatProductionWizard wizard = new ReformatProductionWizard( ref, info );
    RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation( wizard );
    try {
      op.run( shell, "Reformatting Wizard");
    } catch( final InterruptedException irex ) {
      // operation canceled
    }
  }
 
View Full Code Here

    public void run() {
        try {
            RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(this);

            op.run(getShell(), refactoring.getName());
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

            request.fillInitialNameAndOffset();
            final PyRenameRefactoringWizard wizard = new PyRenameRefactoringWizard(renameRefactoring, "Rename",
                    "inputPageDescription", request, request.initialName);
            try {
                RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(wizard);
                op.run(PyAction.getShell(), "Rename Refactor Action");
            } catch (InterruptedException e) {
                // do nothing. User action got cancelled
            }
        } catch (Exception e) {
            Log.log(e);
View Full Code Here

                refactoringWizard.setDefaultPageTitle(SearchMessages.ReplaceAction_title_all);
            } else {
                refactoringWizard.setDefaultPageTitle(SearchMessages.ReplaceAction_title_selected);
            }
            RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(refactoringWizard);
            op.run(fShell, SearchMessages.ReplaceAction_description_operation);
        } catch (InterruptedException e) {
            // refactoring got cancelled
        }
    }
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.