private static void deleteDartSdkGlobalLibConfiguredInOldIde() {
   final LibraryEx library =
       (LibraryEx) ApplicationLibraryTable.getApplicationTable().getLibraryByName("Dart SDK");
   final PersistentLibraryKind<?> kind = library == null ? null : library.getKind();
   if (library != null && kind != null && "javaScript".equals(kind.getKindId())) {
     ApplicationManager.getApplication()
         .runWriteAction(
             new Runnable() {
               public void run() {
                 ApplicationLibraryTable.getApplicationTable().removeLibrary(library);
               }
             });
   }
 }
Пример #2
0
 @Nullable
 public static DartSdk getGlobalDartSdk() {
   return findDartSdkAmongGlobalLibs(ApplicationLibraryTable.getApplicationTable().getLibraries());
 }