Package org.eclipse.core.resources

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


             
              fos = new FileOutputStream(file.getRawLocation().toFile());
              out = new ObjectOutputStream(fos);
              out.writeObject(root);
              out.close();
              file.refreshLocal(IResource.DEPTH_ONE, monitor);
             
            } catch(Exception e){
              System.out.println(e.getMessage());
              e.printStackTrace();
            } finally {
View Full Code Here


      monitor.worked(1);
      IFile file = project.getFile("composer.phar");
      monitor.worked(1);

      file.create(resource, true, new NullProgressMonitor());
      file.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());

      monitor.worked(1);

    } catch (Exception e) {
      Logger.logException(e);
View Full Code Here

    if (prefs.getBoolean(ComposerPreferenceConstants.USE_PROJECT_PHAR)) {
      downloader = new PharDownloader();
      InputStream resource = downloader.download();
      IFile file = getProject().getFile("composer.phar");
      file.create(resource, true, monitor);
      file.refreshLocal(IResource.DEPTH_ZERO, monitor);
    }
  }

  protected void addComposerJson(IProgressMonitor monitor) throws CoreException {
View Full Code Here

                    return null;
                }

                maven.execute( mavenProject, _execution, monitor );

                manifest.refreshLocal( IResource.DEPTH_INFINITE, monitor ); // refresh parent?

                if ( isDeclerativeServices( mavenProject.getBasedir(), instructions ) )
                {
                    IFolder outputFolder = getOutputFolder( monitor, facade, _execution );
                    outputFolder.getFolder( "OSGI-OPT" ).refreshLocal( IResource.DEPTH_INFINITE, monitor );
View Full Code Here

      IFile file = workspaceRoot.getFile(new Path(platformResourcePath));
      try
      {
        if (!file.isSynchronized(IResource.DEPTH_ONE))
        {
          file.refreshLocal(IResource.DEPTH_ONE, null);
        }
        InputStream result = file.getContents();
        if (options != null)
        {
          @SuppressWarnings("unchecked")
View Full Code Here

  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        CismodelDiagramEditorPlugin
            .getInstance()
            .logError(
                Messages.CismodelDocumentProvider_handleElementContentChanged,
View Full Code Here

  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        CismodelDiagramEditorPlugin
            .getInstance()
            .logError(
                Messages.CismodelDocumentProvider_handleElementContentChanged,
View Full Code Here

        setFrame(officeFrame);
       
        //resfresh file if possible
        if(editorInput instanceof IFileEditorInput) {
          IFile fileToRefresh = ((IFileEditorInput)editorInput).getFile();
          fileToRefresh.refreshLocal(0,null);
        }
       
        //get URL of document if possible
        URL documentURL = getURLFromEditorInput(editorInput);
       
View Full Code Here

      if (writer != null) {
        try {
          writer.flush();
          writer.close();
          IFile ifile = root.getFileForLocation(new Path(file.getPath()));
          ifile.refreshLocal(IResource.DEPTH_ZERO, null);
          if (!encoding.equals(ifile.getCharset(true)) && !"java".equals(ifile.getFileExtension())) {
            System.out.println("AbstractEngine.run: setting encoding of " + ifile + " to " + encoding + " was " + ifile.getCharset(true));
            ifile.setCharset(encoding, null);
          }
View Full Code Here

      if (!projectFolder.exists()) {
        projectFolder.create(false, true, monitor);
      }
      IFile pbxProjFile = projectFolder.getFile("project.pbxproj");
      xcodeProject.save(pbxProjFile.getLocation().toFile());
      pbxProjFile.refreshLocal(IResource.DEPTH_INFINITE, monitor);
    }
  }

  public void handleSourceDelta(IResourceDelta delta, IProgressMonitor monitor, Map buildCache) {
    //System.out.println("DotXcodeBuilder.handleSourceDelta: " + delta);
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.