mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remote servers: 'test connection' button fixed
This commit is contained in:
+4
-2
@@ -61,7 +61,7 @@ public class RemoteServerConfigurable extends NamedConfigurable<RemoteServer<?>>
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
try {
|
||||
apply();
|
||||
myConfigurable.apply();
|
||||
}
|
||||
catch (ConfigurationException exc) {
|
||||
Messages.showErrorDialog(myMainPanel, "Cannot test connection: " + exc.getMessage(), exc.getTitle());
|
||||
@@ -100,7 +100,9 @@ public class RemoteServerConfigurable extends NamedConfigurable<RemoteServer<?>>
|
||||
}
|
||||
});
|
||||
while (!indicator.isCanceled()) {
|
||||
semaphore.waitFor(500);
|
||||
if (semaphore.waitFor(500)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Runnable showResult = showResultRef.get();
|
||||
if (showResult != null) {
|
||||
|
||||
Reference in New Issue
Block a user