File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/io/protostuff/jetbrains/plugin Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 2929import com .intellij .openapi .roots .OrderEnumerator ;
3030import com .intellij .openapi .roots .OrderRootType ;
3131import com .intellij .openapi .roots .ProjectRootManager ;
32- import com .intellij .openapi .roots .impl .libraries .ApplicationLibraryTable ;
3332import com .intellij .openapi .roots .libraries .Library ;
3433import com .intellij .openapi .roots .libraries .LibraryTable ;
3534import com .intellij .openapi .roots .libraries .LibraryTablesRegistrar ;
@@ -140,7 +139,7 @@ private void updateGlobalLibrary() {
140139 globalLibrary = findGlobalProtobufLibrary (project , sourceRoot );
141140 if (globalLibrary == null ) {
142141 ApplicationManager .getApplication ().runWriteAction (() -> {
143- LibraryTable libraryTable = ApplicationLibraryTable . getApplicationTable ();
142+ LibraryTable libraryTable = LibraryTablesRegistrar . getInstance (). getLibraryTable ();
144143 LibraryTable .ModifiableModel modifiableModel = libraryTable .getModifiableModel ();
145144 globalLibrary = libraryTable .getLibraryByName (LIB_NAME );
146145 if (globalLibrary == null ) {
You can’t perform that action at this time.
0 commit comments