mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
commit correct document
This commit is contained in:
+2
-2
@@ -678,9 +678,9 @@ public class VariableInplaceRenamer {
|
||||
protected void revertState() {
|
||||
CommandProcessor.getInstance().executeCommand(myProject, new Runnable() {
|
||||
public void run() {
|
||||
final Editor topLevelEditor = InjectedLanguageUtil.getTopLevelEditor(myEditor);
|
||||
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
||||
public void run() {
|
||||
final Editor topLevelEditor = InjectedLanguageUtil.getTopLevelEditor(myEditor);
|
||||
final TemplateState state = TemplateManagerImpl.getTemplateState(topLevelEditor);
|
||||
assert state != null;
|
||||
final int segmentsCount = state.getSegmentsCount();
|
||||
@@ -691,9 +691,9 @@ public class VariableInplaceRenamer {
|
||||
}
|
||||
}
|
||||
});
|
||||
PsiDocumentManager.getInstance(myProject).commitDocument(topLevelEditor.getDocument());
|
||||
}
|
||||
}, RENAME_TITLE, null);
|
||||
PsiDocumentManager.getInstance(myProject).commitDocument(myEditor.getDocument());
|
||||
}
|
||||
|
||||
private static VirtualFile getTopLevelVirtualFile(final FileViewProvider fileViewProvider) {
|
||||
|
||||
Reference in New Issue
Block a user