private RenameIdentifierInfo info = new RenameIdentifierInfo();
- // interface methods of IEditorActionDelegate
- // ///////////////////////////////////////////
-
public void setActiveEditor(final IAction action, final IEditorPart targetEditor) {
this.targetEditor = targetEditor;
onPHPFile = false;
SourceMethod method = (SourceMethod) findEnclosingElement(point.x, unit, IJavaElement.METHOD);
if (word == null || word.charAt(0) != '$' || method == null || !(method instanceof SourceMethod)) {
refuseLocalVariable();
+ } else {
+ applySelection((ITextSelection) selection, word, point, method);
+ if (saveAll()) {
+ openWizard();
+ }
}
- applySelection((ITextSelection) selection, word, point, method);
-
} catch (BadLocationException e) {
}
}
}
}
- if (saveAll()) {
- openWizard();
- }
}
}
}
String message = UITexts.renameLocalVariable_refuseDlg_message;
MessageDialog.openInformation(getShell(), title, message);
}
+
private void refuse() {
String title = UITexts.renameProperty_refuseDlg_title;
String message = UITexts.renameProperty_refuseDlg_message;