Examples of IWorkspace


Examples of org.eclipse.core.resources.IWorkspace

            {
                doRemoveProject(monitor);
            }
        };

        IWorkspace workspace = ResourcesPlugin.getWorkspace();

        try
        {
            workspace.run(op, Job.getJobManager().createProgressGroup());
        }
        catch (CoreException e)
        {
            SigilCore.error("Failed to run workspace job", e);
        }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

                            @Override
                            protected IStatus run(IProgressMonitor monitor)
                            {
                                if (update == updateCounter.get())
                                {
                                    IWorkspace workspace = ResourcesPlugin.getWorkspace();
                                    ResolveProjectsJob job = new ResolveProjectsJob(
                                        workspace);
                                    job.setSystem(true);
                                    job.schedule();
                                }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

        // get a project descriptor
        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

            return element.exists();
        }
    }

    protected boolean resourceExists() {
        final IWorkspace workspace = ResourcesPlugin.getWorkspace();
        if (workspace == null) {
            return false;
        }
        return ErlangEngine
                .getInstance()
                .getModelUtilService()
                .getTarget(workspace.getRoot(),
                        getResource().getFullPath().makeRelative(), true) != null;
    }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

        if (IS_CASE_SENSITIVE) {
            return externalPath;
        }

        // if not external path, return original path
        final IWorkspace workspace = ResourcesPlugin.getWorkspace();
        if (workspace == null) {
            return externalPath; // protection during shutdown (30487)
        }
        if (workspace.getRoot().findMember(externalPath) != null) {
            return externalPath;
        }

        IPath canonicalPath = null;
        try {
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

    ErlModelCache _erlModelCache = new ErlModelCache();
    HandleManager _handleManager = new HandleManager(_erlModelCache);
    this.handleManager = _handleManager;
    ListenerList _listenerList = new ListenerList();
    this.listenerList = _listenerList;
    IWorkspace _workspace = this.erlModel.getWorkspace();
    _workspace.addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE);
  }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

  }
 
  public void shutdown() {
    boolean _tripleNotEquals = (this.erlModel != null);
    if (_tripleNotEquals) {
      IWorkspace _workspace = this.erlModel.getWorkspace();
      _workspace.removeResourceChangeListener(this);
    }
    this.listenerList = null;
    this.handleManager = null;
    this.erlModel = null;
  }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

public class ErlModel extends ErlElement implements IErlModel {
  private final IWorkspace workspace;
 
  public ErlModel() {
    super(null, null);
    IWorkspace _workspace = ResourcesPlugin.getWorkspace();
    this.workspace = _workspace;
  }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

        this.notifier = notifier;
        this.context = context;
    }

    public IProject createProject() throws CoreException {
        final IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProject newProjectHandle = workspace.getRoot().getProject(name);

        if (newProjectHandle.exists()) {
            throw new CoreException(Status.OK_STATUS);
        }

        final IProjectDescription description = workspace.newProjectDescription(name);
        description.setLocationURI(location);

        // // update the referenced project if provided
        if (referencedProjects != null) {
            description.setReferencedProjects(referencedProjects);
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace

        elementChangedListeners = Lists.newArrayList();
        deltaManager = new ErlModelDeltaManager(this);
    }

    public final void setupWorkspaceListeners() {
        final IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IPathVariableManager pvm = workspace.getPathVariableManager();
        pvm.addChangeListener(fPathVariableChangeListener);
        final IResourceChangeListener listener = new ResourceChangeListener();
        workspace.addResourceChangeListener(listener);
    }
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.