File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/main/java/fr/adrienbrault/idea/symfony2plugin/ui Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 22
33import com .intellij .openapi .options .Configurable ;
44import com .intellij .openapi .options .ConfigurationException ;
5+ import com .intellij .openapi .project .DumbService ;
56import com .intellij .openapi .project .Project ;
7+ import com .intellij .openapi .ui .DialogWrapper ;
68import com .intellij .ui .ToolbarDecorator ;
79import com .intellij .ui .table .TableView ;
810import com .intellij .util .ui .ColumnInfo ;
@@ -50,6 +52,12 @@ private void attachItems() {
5052 return ;
5153 }
5254
55+ if (DumbService .getInstance (project ).isDumb ()) {
56+ this .tableView .getEmptyText ().setText ("Not available while indexing. Please re-open this screen when ready." );
57+
58+ return ;
59+ }
60+
5361 List <TwigPath > sortableLookupItems = new ArrayList <>(TwigUtil .getTwigNamespaces (this .project , true ));
5462 Collections .sort (sortableLookupItems );
5563
You can’t perform that action at this time.
0 commit comments