Package org.eclipse.jdt.ui.refactoring

Examples of org.eclipse.jdt.ui.refactoring.RenameSupport


    try {
      IType type = JdtUtils.getJavaType(project, className);
      if (type != null) {
        IMethod method = Introspector.findMethod(type, methodName, 0, Public.DONT_CARE, Static.DONT_CARE);
        if (method != null) {
          RenameSupport renameSupport = RenameSupport.create(method, newMethodName,
              RenameSupport.UPDATE_REFERENCES);

          renameSupport.perform(shell, PlatformUI.getWorkbench().getActiveWorkbenchWindow());

          if (editor instanceof EditorPart) {
            ((EditorPart) editor).doSave(new NullProgressMonitor());
          }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.ui.refactoring.RenameSupport

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.