Package org.osmorc.facet

Examples of org.osmorc.facet.OsmorcFacet


    ApplicationManager.getApplication().runWriteAction(new Runnable() {
      public void run() {
        final Module[] modules = ModuleManager.getInstance(project).getModules();
        for (Module module : modules) {
          final ModifiableFacetModel modifiableFacetModel = FacetManager.getInstance(module).createModifiableModel();
          final OsmorcFacet facet = new OsmorcFacet(module);
          facet.getConfiguration().setUseProjectDefaultManifestFileLocation(false);
          facet.getConfiguration().setManifestLocation("META-INF/MANIFEST.MF");
          facet.getConfiguration().setManifestGenerationMode(ManifestGenerationMode.Manually);
          modifiableFacetModel.addFacet(facet);
          modifiableFacetModel.commit();
        }
      }
    });
View Full Code Here


    myWatchRequests = new ArrayList<LocalFileSystem.WatchRequest>();
    updateWatcherSetup();
  }

  public void updateWatcherSetup() {
    OsmorcFacet osmorcFacet = OsmorcFacet.getInstance(myModule);
    if (osmorcFacet != null) {
      List<VirtualFile> newAdditionalJARContents = new ArrayList<VirtualFile>();

      OsmorcFacetConfiguration osmorcFacetConfiguration = osmorcFacet.getConfiguration();
      List<Pair<String, String>> jarContents = osmorcFacetConfiguration.getAdditionalJARContents();
      for (Pair<String, String> jarContent : jarContents) {
        VirtualFile file = myFileSystem.findFileByPath(jarContent.getFirst());
        if (file != null) {
          newAdditionalJARContents.add(file);
View Full Code Here

  /**
   * Runs over the module and refreshes it's information in the bundle manager.
   */
  private void buildManifestIndex() {
    OsmorcFacet facet = OsmorcFacet.getInstance(myModule);
    if (facet != null) {
      ApplicationManager.getApplication().invokeLater(new Runnable() {
        @Override
        public void run() {
          if (myModule.isDisposed()) return;
View Full Code Here

TOP

Related Classes of org.osmorc.facet.OsmorcFacet

Copyright © 2018 www.massapicom. 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.