Package org.eclipse.ltk.core.refactoring.resource

Examples of org.eclipse.ltk.core.refactoring.resource.RenameResourceDescriptor


      // TODO Replace Core messages.
      final String header= Messages.format("Renaming WO Component {0} to {1}", new String[] { _resource.getFullPath().toString(), getNewResourceName()});
      final String description= Messages.format("Renaming WO Component {0}", _resource.getName());
      final String comment= new JDTRefactoringDescriptorComment(project, this, header).asString();
      final int flags= RefactoringDescriptor.STRUCTURAL_CHANGE | RefactoringDescriptor.MULTI_CHANGE | RefactoringDescriptor.BREAKING_CHANGE;
      final RenameResourceDescriptor descriptor= new RenameResourceDescriptor();
      descriptor.setProject(project);
      descriptor.setDescription(description);
      descriptor.setComment(comment);
      descriptor.setFlags(flags);
      descriptor.setResourcePath(_resource.getLocation());
      descriptor.setNewName(getNewResourceName() + ".wo");
      return new DynamicValidationStateChange(new RenameWOComponentChange(descriptor, _resource, getNewResourceName() + ".wo", comment));
    } finally {
      pm.done();
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ltk.core.refactoring.resource.RenameResourceDescriptor

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.