mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't close lookup on typing during in-place rename
This commit is contained in:
@@ -125,7 +125,17 @@ public class TemplateState implements Disposable {
|
||||
|
||||
public void beforeCommandFinished(CommandEvent event) {
|
||||
if (started) {
|
||||
afterChangedUpdate();
|
||||
Runnable runnable = new Runnable() {
|
||||
public void run() {
|
||||
afterChangedUpdate();
|
||||
}
|
||||
};
|
||||
final LookupImpl lookup = (LookupImpl)LookupManager.getActiveLookup(myEditor);
|
||||
if (lookup != null) {
|
||||
lookup.performGuardedChange(runnable);
|
||||
} else {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user