File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/org/netbeans/modules/php/phpcsfixer/options Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1515 */
1616package org .netbeans .modules .php .phpcsfixer .options ;
1717
18+ import java .awt .EventQueue ;
1819import java .awt .event .ActionEvent ;
1920import java .awt .event .ActionListener ;
2021import java .io .File ;
@@ -446,12 +447,17 @@ private void selfUpdate(String filePath) {
446447 });
447448 }
448449
450+ @ NbBundle .Messages ("PhpCsFixerPanel.loading.version=Loading..." )
449451 private void reloadVersion (String path ) {
452+ if (!EventQueue .isDispatchThread ()) {
453+ SwingUtilities .invokeLater (() -> setVersion (Bundle .PhpCsFixerPanel_loading_version ()));
454+ }
450455 RP .post (() -> {
451456 try {
452457 String ver = PhpCsFixer .newInstance (path ).getVersion ();
453458 SwingUtilities .invokeLater (() -> setVersion (ver ));
454459 } catch (InvalidPhpExecutableException ex ) {
460+ SwingUtilities .invokeLater (() -> setVersion ("" )); // NOI18N
455461 LOGGER .log (WARNING , ex .getMessage ());
456462 }
457463 });
You can’t perform that action at this time.
0 commit comments