Package org.eclipse.ltk.core.refactoring

Examples of org.eclipse.ltk.core.refactoring.RefactoringStatus.merge()


    value = arguments.get(FILE);
    if (value != null) {
      IContainer container = ResourcesPlugin.getWorkspace().getRoot();
      IResource resource = container.findMember(value);
      if (resource == null || !(resource instanceof IFile)) {
        status.merge(RefactoringStatus.createErrorStatus("Cannot get file"));
      }
      else {
        setFile((IFile) resource);
      }
    }
View Full Code Here


  }

  void handleInputChanged() {
    RefactoringStatus status = new RefactoringStatus();
    RenameIdRefactoring refactoring = getRenameIdRefactoring();
    status.merge(refactoring.setBeanId(nameField.getText()));

    setPageComplete(!status.hasError());
    int severity = status.getSeverity();
    String message = status.getMessageMatchingSeverity(severity);
    if (severity >= RefactoringStatus.INFO) {
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.