Package org.eclipse.ltk.core.refactoring.participants

Examples of org.eclipse.ltk.core.refactoring.participants.MoveRefactoring


    Shell shell = EclimPlugin.getShell();
    processor.setCreateTargetQueries(new CreateTargetQueries(shell));
    processor.setReorgQueries(new ReorgQueries(shell));

    Refactoring refactoring = new MoveRefactoring(processor);

    // create a more descriptive name than the default.
    String desc = refactoring.getName() +
      " (" + src.getElementName() + " -> " + pack.getElementName() + ')';

    return new Refactor(desc, refactoring);
  }
View Full Code Here


      throws CoreException {
    if (RefactoringAvailabilityTester.isMoveAvailable(resources, javaElements)) {
      IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(resources, javaElements);
      if (policy.canEnable()) {
        JavaMoveProcessor processor = new JavaMoveProcessor(policy);
        Refactoring refactoring = new MoveRefactoring(processor);
       
        RefactoringWizard wizard = null;
       
        // Hack to allow usage of this refactoring on Eclipse < 3.4 and 3.4
        if (SpringCoreUtils.isEclipseSameOrNewer(3, 4)) {
View Full Code Here

TOP

Related Classes of org.eclipse.ltk.core.refactoring.participants.MoveRefactoring

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.