Package com.dubture.composer.core.buildpath

Examples of com.dubture.composer.core.buildpath.BuildPathManager


        // store preferences - is this needed here?
        projectPreferences.flush();
       
        // update buildpath
        ComposerProject composerProject = new ComposerProject(scriptProject.getProject());
        BuildPathManager bpm = new BuildPathManager(composerProject);
        bpm.update();
      } catch (CoreException e) {
        e.printStackTrace();
      } catch (BackingStoreException e) {
        e.printStackTrace();
      }
View Full Code Here


      if (item instanceof IAdaptable) {
        IAdaptable adaptable = (IAdaptable)item;
        IProject project = ((IResource)adaptable.getAdapter(IResource.class)).getProject();
        IComposerProject composerProject = ComposerPlugin.getDefault().getComposerProject(project);
       
        BuildPathManager manager = new BuildPathManager(composerProject);
        try {
          manager.update();
        } catch (CoreException e) {
          e.printStackTrace();
        }
      }
    }
View Full Code Here

    if (input instanceof IFileEditorInput) {
      jsonFile = ((IFileEditorInput)input).getFile();
      if (jsonFile != null) {
        project = jsonFile.getProject();
        composerProject = new ComposerProject(project);
        buildPathManager = new BuildPathManager(composerProject);
       
        setPartName(project.getName());
        ResourcesPlugin.getWorkspace().addResourceChangeListener(new IResourceChangeListener() {
          @Override
          public void resourceChanged(IResourceChangeEvent event) {
View Full Code Here

        return null;
      }

      boolean changed = false;
      IResourceDelta delta = getDelta(project);
      BuildPathManager buildPathManager = new BuildPathManager(composerProject);

      if (delta == null) {
        if (project.hasNature(ComposerNature.NATURE_ID)) {
          buildPathManager.update(monitor);
        }
       
        return null;
      }

      String vendor = composerProject.getVendorDir();

      for (IResourceDelta affected : delta.getAffectedChildren()) {
        String path = affected.getProjectRelativePath().toOSString();
       
        if (path.equals("composer.lock") || path.equals(vendor)) {
          changed = true;
        }
      }

      // nothing to do
      if (!changed) {
        return null;
      }
     
      buildPathManager.update(monitor);
    } catch (Exception e) {
      Logger.logException(e);
    }

    return null;
View Full Code Here

TOP

Related Classes of com.dubture.composer.core.buildpath.BuildPathManager

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.