Examples of RefactoringStarter


Examples of org.eclipse.dltk.internal.ui.refactoring.actions.RefactoringStarter

    ExtractMethodRefactoring refactoring = new ExtractMethodRefactoring(
        SelectionConverter.getInputAsCompilationUnit(editor),
        ((ITextSelection) selection).getOffset(),
        ((ITextSelection) selection).getLength());
    try {
      new RefactoringStarter().activate(refactoring,
          new ExtractMethodWizard(refactoring), getShell(),
          RefactoringMessages.ExtractMethod_name, false);
    } catch (ModelException e) {
      ExceptionHandler.handle(e, RefactoringMessages.ExtractMethod_name,
          RefactoringMessages.RenamePHPElementAction_exception);
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter

    ConvertConstantsToEnumRefactoring convertConstantsToEnumRefactoring = new ConvertConstantsToEnumRefactoring(
        fieldsToRefactor);
    ConvertConstantsToEnumWizard wizard = new ConvertConstantsToEnumWizard(
        convertConstantsToEnumRefactoring,
        Messages.ConvertConstantsToEnum_Name);
    new RefactoringStarter().activate(wizard, shell,
        RefactoringMessages.OpenRefactoringWizardAction_refactoring,
        RefactoringSaveHelper.SAVE_REFACTORING);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter

    if (!RefactoringAvailabilityTester.isRenameAvailable(resource)) {
      return;
    }
    RenameWOComponentWizard wizard = new RenameWOComponentWizard(resource);
    new RefactoringStarter().activate(wizard, _site.getShell(), wizard.getWindowTitle(), RefactoringSaveHelper.SAVE_ALL);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter

    IResource resource = getResource(selection);
    if (!RefactoringAvailabilityTester.isRenameAvailable(resource)) {
      return;
    }
    RenameWOComponentWizard wizard = new RenameWOComponentWizard(resource);
    new RefactoringStarter().activate(wizard, _site.getShell(), wizard.getWindowTitle(), RefactoringSaveHelper.SAVE_ALL);
  }
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.