Skip to content

Commit 0d51ec6

Browse files
#124: Do not use classes from .impl package
Fixes illegal API usage in: - ProtostuffPluginController.java
1 parent dda8f19 commit 0d51ec6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/io/protostuff/jetbrains/plugin/ProtostuffPluginController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import com.intellij.openapi.roots.OrderEnumerator;
3030
import com.intellij.openapi.roots.OrderRootType;
3131
import com.intellij.openapi.roots.ProjectRootManager;
32-
import com.intellij.openapi.roots.impl.libraries.ApplicationLibraryTable;
3332
import com.intellij.openapi.roots.libraries.Library;
3433
import com.intellij.openapi.roots.libraries.LibraryTable;
3534
import 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) {

0 commit comments

Comments
 (0)