コード例 #1
0
 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
ファイル: DartSdk.java プロジェクト: vsch/intellij-plugins
 @Nullable
 public static DartSdk getGlobalDartSdk() {
   return findDartSdkAmongGlobalLibs(ApplicationLibraryTable.getApplicationTable().getLibraries());
 }