Package com.intellij.openapi.roots

Examples of com.intellij.openapi.roots.ModifiableRootModel.dispose()


        try {
            modifiableModel = ModuleRootManager.getInstance(module).getModifiableModel();
            return new IntellijModuleWrapper(modifiableModel);
        } catch (RuntimeException e) {
            if (modifiableModel != null) {
                modifiableModel.dispose();
            }
            throw e;
        }
    }
View Full Code Here


                                        }
                                    }
                                    if (found) {
                                        model.commit();
                                    } else {
                                        model.dispose();
                                    }
                                }
                            });
                        }
                    }, ModalityState.NON_MODAL);
View Full Code Here

          libModel.addRoot(customPack2.getUrl(), OrderRootType.CLASSES);
          libModel.commit();
          modifiableModel.commit();
        }
        catch (Exception e) {
          if (!modifiableModel.isDisposed()) modifiableModel.dispose();
        }
      }
    });

    resolver = DartUrlResolver.getInstance(getProject(), nestedPubspec);
View Full Code Here

            detector.setupFacet(osmorcFacet, model);

            assertThat(osmorcFacetConfiguration.getManifestLocation(), equalTo("src/META-INF/MANIFEST.MF"));
        }
        finally {
            model.dispose();
        }
    }

     @SuppressWarnings({"unchecked", "ConstantConditions"})
    @Test
View Full Code Here

            assertThat(osmorcFacetConfiguration.getBundlorFileLocation(), equalTo("src/META-INF/template.mf"));
            assertThat(osmorcFacetConfiguration.isUseBundlorFile(), equalTo(true));

        }
        finally {
            model.dispose();
        }
    }
    @SuppressWarnings({"unchecked"})
    @Test
    public void testDetectNoFacet() {
View Full Code Here

        markAsIncludeDirectory(contentEntry, directory);
        rootModel.commit();
        return;
      }
    }
    rootModel.dispose();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.