use of org.eclipse.wst.jsdt.web.core.javascript.search.JsSearchScope in project webtools.sourceediting by eclipse.
the class JSPTypeRenameChange method createChangesFor.
public static Change[] createChangesFor(IType type, String newName) {
JsSearchSupport support = JsSearchSupport.getInstance();
// should be handled by JSPIndexManager
// https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3036
// support.indexWorkspaceAndWait();
JSPTypeRenameRequestor requestor = new JSPTypeRenameRequestor(type, newName);
support.searchRunnable(type, new JsSearchScope(), requestor);
return requestor.getChanges();
}
Aggregations