Examples of refreshLocal()


Examples of org.eclipse.core.internal.resources.Resource.refreshLocal()

        target.deleteResource(true, status);
    } catch (CoreException e) {
      status.add(e.getStatus());
      //  delete might have been partly successful, so refresh to ensure in sync
      try {
        target.refreshLocal(IResource.DEPTH_INFINITE, null);
      } catch (CoreException e1) {
        //ignore secondary failure - we are just trying to cleanup from first failure
      }
    }
  }
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.refreshLocal()

    final IContainer root = ResourcesPlugin.getWorkspace().getRoot();
    Job job = new WorkspaceJob(IDEWorkbenchMessages.Workspace_refreshing) {
      public IStatus runInWorkspace(IProgressMonitor monitor)
          throws CoreException {
        root.refreshLocal(IResource.DEPTH_INFINITE, monitor);
        return Status.OK_STATUS;
      }
    };
    job.setRule(root);
    job.schedule();
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.refreshLocal()

  }

  public static void prepareFolder(IFolder folder) {
    IContainer parent = folder.getParent();
    try {
      parent.refreshLocal(IResource.DEPTH_INFINITE, null);
    } catch (CoreException e1) {
      e1.printStackTrace();
    }

    if (parent instanceof IFolder) {
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.refreshLocal()

          e.getMessage(), e);
    }
    IContainer container = selectedElement.getParent();
    if (container != null) {
      try {
        container.refreshLocal(IResource.DEPTH_ONE, subMonitor.newChild(5));
      } catch (CoreException e) {
        return new Status(IStatus.ERROR, TargetPlatformActivator
            .getInstance().getBundle().getSymbolicName(),
            e.getMessage(), e);
      }
View Full Code Here

Examples of org.eclipse.core.resources.IFile.refreshLocal()

            config.put(ResourceIndexer.PRETTY, "true");

            output = new FileOutputStream(indexFile);
            indexer.index(files, output, config);
            IO.close(output);
            indexPath.refreshLocal(IResource.DEPTH_ZERO, null);
            if (indexPath.exists())
                indexPath.setDerived(true, null);
        } catch (Exception e) {
            logger.logError(MessageFormat.format("Failed to generate index file for bundles in project {0}.", project.getName()), e);
            return;
View Full Code Here

Examples of org.eclipse.core.resources.IFile.refreshLocal()

            config.put(ResourceIndexer.PRETTY, "true");

            output = new FileOutputStream(indexFile);
            indexer.index(files, output, config);
            IO.close(output);
            indexPath.refreshLocal(IResource.DEPTH_ZERO, null);
            if (indexPath.exists())
                indexPath.setDerived(true);
        } catch (Exception e) {
            logger.logError(MessageFormat.format("Failed to generate index file for bundles in project {0}.", project.getName()), e);
            return;
View Full Code Here

Examples of org.eclipse.core.resources.IFile.refreshLocal()

    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    IFile file = workspace.getRoot().getFileForLocation(resultPath);

    if (file != null && !file.isSynchronized(IResource.DEPTH_ZERO)) {
      try {
        file.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());
      } catch (CoreException e) {
        RutaAddonsPlugin.error(e);
      }
    }
    try {
View Full Code Here

Examples of org.eclipse.core.resources.IFile.refreshLocal()

                public void run() {
                    model.saveChangesTo(finalDoc);

                    try {
                        writeFully(finalDoc.get(), resource, false);
                        resource.refreshLocal(IResource.DEPTH_ZERO, null);
                    } catch (CoreException e) {
                        throw new RuntimeException(e);
                    }
                }
            };
View Full Code Here

Examples of org.eclipse.core.resources.IFile.refreshLocal()

        public void run() {
          model.saveChangesTo(finalDoc);

          try {
            writeFully(finalDoc.get(), resource, false);
            resource.refreshLocal(IResource.DEPTH_ZERO, null);
          } catch (CoreException e) {
            throw new RuntimeException(e);
          }
        }
      };
View Full Code Here

Examples of org.eclipse.core.resources.IFolder.refreshLocal()

    if (_designContainer != null) {
      WGADesignStructureHelper helper = new WGADesignStructureHelper(_designContainer);
      IFolder systemContainer = helper.getFileContainer("system");
      if (systemContainer != null) {
        try {
          systemContainer.refreshLocal(depth, new NullProgressMonitor());
        } catch (CoreException e) {
        }
      }
    }
  }
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.