Examples of ITextUpdating


Examples of org.eclipse.dltk.internal.corext.refactoring.tagging.ITextUpdating

    IReferenceUpdating reference = (IReferenceUpdating) refactoring.getAdapter(IReferenceUpdating.class);
    if (reference != null) {
      reference.setUpdateReferences((flags & UPDATE_REFERENCES) != 0);
    }

    ITextUpdating text = (ITextUpdating) refactoring.getAdapter(ITextUpdating.class);
    if (text != null) {
      text.setUpdateTextualMatches((flags & UPDATE_TEXTUAL_MATCHES) != 0);
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.corext.refactoring.tagging.ITextUpdating

      IReferenceUpdating reference = (IReferenceUpdating)processor;
      reference.setUpdateReferences((flags & RenameSupport.UPDATE_REFERENCES) != 0);
    }

    if (processor instanceof ITextUpdating) {
      ITextUpdating text = (ITextUpdating)processor;
      @SuppressWarnings("deprecation")
      int TEXT_UPDATES =
        RenameSupport.UPDATE_TEXTUAL_MATCHES |
        RenameSupport.UPDATE_REGULAR_COMMENTS |
        RenameSupport.UPDATE_STRING_LITERALS;
      text.setUpdateTextualMatches((flags & TEXT_UPDATES) != 0);
    }

    return processor;
  }
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.