Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IWorkspace$ProjectOrder


        }
    }

    @After
    public void teardown() throws CoreException {
        final IWorkspace w = ResourcesPlugin.getWorkspace();
        final IProject p = w.getRoot().getProject(name);
        if (p.exists()) {
            p.delete(true, null);
        }
    }
View Full Code Here


 
  /**
   * Shortcut to <code>workspace.root</code>
   */
  protected IWorkspaceRoot getWorkspaceRoot() {
    IWorkspace _workspace = this.getWorkspace();
    return _workspace.getRoot();
  }
View Full Code Here

      public void run(final IProgressMonitor monitor) throws CoreException {
        project.create(null);
        project.open(null);
      }
    };
    IWorkspace _workspace = this.getWorkspace();
    _workspace.run(runnable, null);
    return project;
  }
View Full Code Here

   * @param value
   *            boolean
   * @throws CoreException
   */
  protected void setAutoBuilding(final boolean value) throws CoreException {
    IWorkspace _workspace = this.getWorkspace();
    final IWorkspaceDescription description = _workspace.getDescription();
    boolean _isAutoBuilding = description.isAutoBuilding();
    boolean _notEquals = (value != _isAutoBuilding);
    if (_notEquals) {
      description.setAutoBuilding(value);
      IWorkspace _workspace_1 = this.getWorkspace();
      _workspace_1.setDescription(description);
    }
  }
View Full Code Here

   * Builds the workspace, waiting for build completion.
   *
   * @throws CoreException
   */
  protected void buildWorkspace() throws CoreException {
    IWorkspace _workspace = this.getWorkspace();
    _workspace.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, null);
    this.waitForBuildCompletion();
  }
View Full Code Here

    {
      final List<IErlFolder> result = CollectionLiterals.<IErlFolder>newArrayList();
      Collection<IPath> _sourceDirs = this.properties.getSourceDirs();
      for (final IPath path : _sourceDirs) {
        {
          IWorkspace _workspace = ResourcesPlugin.getWorkspace();
          IWorkspaceRoot _root = _workspace.getRoot();
          IPath _baseDir = this.properties.getBaseDir();
          IPath _append = _baseDir.append(path);
          IResource _findMember = _root.findMember(_append);
          final IErlElement element = ErlModelCore.create(_findMember);
          if ((element instanceof IErlFolder)) {
View Full Code Here

        } catch (final CoreException e) {
            ErlLogger.warn(e);
            pathsMap = Maps.newHashMap();
        }

        final IWorkspace workspace = ResourcesPlugin.getWorkspace();
        workspace.addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE);
    }
View Full Code Here

    public void stop(final BundleContext context) throws Exception {
        stopping = true;
        try {
            ErlideEventTracer.getInstance().dispose();

            final IWorkspace workspace = ResourcesPlugin.getWorkspace();
            workspace.removeSaveParticipant(getBundle().getSymbolicName());

            if (core != null) {
                core.stop();
            }
        } finally {
View Full Code Here

    @Override
    public void start(final BundleContext context) throws Exception {
        super.start(context);
        ErlLogger.debug("Core starting");

        final IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IWorkspaceRoot workspaceRoot = workspace.getRoot();
        ErlideEventTracer.getInstance().traceSession(
                workspaceRoot.getLocation().toPortableString());

        final IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
        final String logDir = workspaceRoot.getLocation().toPortableString();
View Full Code Here

  }
 
  public void create(final URI location, final IProgressMonitor monitor) {
    try {
      IHandle _parent = this.getParent();
      final IWorkspace workspace = ((ErlModel) _parent).getWorkspace();
      workspace.run(
        new IWorkspaceRunnable() {
          public void run(final IProgressMonitor monitor0) {
            try {
              IProgressMonitor _elvis = null;
              if (monitor0 != null) {
                _elvis = monitor0;
              } else {
                NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
                _elvis = _nullProgressMonitor;
              }
              final IProgressMonitor monitor = _elvis;
              try {
                monitor.beginTask("", 4);
                final IProjectDescription description = workspace.newProjectDescription(ErlProject.this.name);
                description.setLocationURI(location);
                SubProgressMonitor _subProgressMonitor = new SubProgressMonitor(monitor, 1);
                ErlProject.this.workspaceProject.create(description, _subProgressMonitor);
                SubProgressMonitor _subProgressMonitor_1 = new SubProgressMonitor(monitor, 1);
                ErlProject.this.workspaceProject.open(_subProgressMonitor_1);
View Full Code Here

TOP

Related Classes of org.eclipse.core.resources.IWorkspace$ProjectOrder

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.