Examples of IWorkspace


Examples of org.eclipse.core.resources.IWorkspace

    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

Examples of org.eclipse.core.resources.IWorkspace

    @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

Examples of org.eclipse.core.resources.IWorkspace

  }
 
  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

Examples of org.eclipse.core.resources.IWorkspace

import org.eclipse.core.runtime.IPath;

@SuppressWarnings("all")
public class PathResolver {
  public Collection<IPath> resolvePaths(final Collection<IPath> paths) {
    IWorkspace _workspace = ResourcesPlugin.getWorkspace();
    final IPathVariableManager pathVariableManager = _workspace.getPathVariableManager();
    int _size = paths.size();
    final List<IPath> result = Lists.<IPath>newArrayListWithCapacity(_size);
    for (final IPath path : paths) {
      {
        URI _uRI = URIUtil.toURI(path);
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.