mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
scopes: leave pattern text untouched when pattern is invalid (IDEA-72837 )
This commit is contained in:
@@ -382,12 +382,14 @@ public class ScopeEditorPanel {
|
||||
public void run() {
|
||||
myIsInUpdate = true;
|
||||
if (updateText) {
|
||||
final String text = myCurrentScope != null ? myCurrentScope.getText() : "";
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
myPatternField.setText(text);
|
||||
}
|
||||
});
|
||||
final String text = myCurrentScope != null ? myCurrentScope.getText() : null;
|
||||
if (text != null) {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
myPatternField.setText(text);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
try {
|
||||
if (!myProject.isDisposed()) {
|
||||
|
||||
Reference in New Issue
Block a user