Examples of refreshLocal()


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

      String tfolder = "app/japidviews/" + pathName.replace('.', '/');
      IFolder folder = project.getFolder(tfolder);
      if (folder.exists()) {
        // let rename it
        try {
          folder.refreshLocal(IResource.DEPTH_INFINITE, pm);
        } catch (CoreException e1) {
          e1.printStackTrace();
        }
        RenameTemplateChangeBase ren = new RenameTemplatePackageChange(folder.getFullPath(), newName);
        return ren;
View Full Code Here

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

                try {
                    source.close();
                } catch (final IOException e) {
                }
            }
            folder.refreshLocal(IResource.DEPTH_ONE, null);

            final IFile fileToOpen = header;
            final IWorkbenchPage page = PlatformUI.getWorkbench()
                    .getActiveWorkbenchWindow().getActivePage();
            IDE.openEditor(page, fileToOpen);
View Full Code Here

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

            ErlLogger.warn("Project " + project + " is not in erlang model...");
            return null;
        }
        final IFolder r = project.getFolder(erlProject.getProperties().getOutputDir());
        try {
            r.refreshLocal(IResource.DEPTH_ONE, null);
        } catch (final CoreException e) {
            // ignore
        }
        final String beam = SystemConfiguration.withoutExtension(module) + ".beam";
        return r.getFile(beam);
View Full Code Here

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

      File resourcesSourceDir = new File(new File(m_libraryLocation), "resources");
      IFolder webFolder = WebUtils.getWebFolder(m_javaProject);
      File webDir = webFolder.getLocation().toFile();
      File resourceTargetDir = new File(webDir, "ExtGWT");
      FileUtils.copyDirectory(resourcesSourceDir, resourceTargetDir);
      webFolder.refreshLocal(IResource.DEPTH_INFINITE, null);
    }
    // add elements into module
    DefaultModuleProvider.modify(m_module, new ModuleModification() {
      public void modify(ModuleElement moduleElement) throws Exception {
        moduleElement.addInheritsElement("com.extjs.gxt.ui.GXT");
View Full Code Here

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

      } catch (IOException e) {
        throwCoreException(e.getMessage(), e);
      }  
     

      project.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor, 1));
    }
  }

  private void throwCoreException(String message) throws CoreException {
    throwCoreException(message, null);
View Full Code Here

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

  protected void refreshProject(IProgressMonitor monitor) throws CoreException {

    IProject project = CloudFoundryProjectUtil.getProject(appModule);
    if (project != null && project.isAccessible()) {
      project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
    }
  }

}
View Full Code Here

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

          // wait and try again to work-around
          // ConcurrentModificationException (bug 280488)
          try {
            Thread.sleep(500);
            project.open(null);
            project.refreshLocal(IResource.DEPTH_INFINITE, null);
          }
          catch (InterruptedException e1) {
            Thread.currentThread().interrupt();
          }
        }
View Full Code Here

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

        }

        try {
            initializeBuilder(project, notifier);
            do_build(kind, project, erlProject, notifier);
            project.refreshLocal(IResource.DEPTH_INFINITE, null);
        } catch (final OperationCanceledException e) {
            if (BuilderHelper.isDebugging()) {
                ErlLogger.debug("Build of " + project.getName() + " was canceled.");
            }
        } catch (final Exception e) {
View Full Code Here

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

            try {
                final OtpErlangObject projectInfo = BuilderUtils
                        .createProjectInfo(erlProject);
                backend.getOtpRpc().call("erlide_builder_rebar", "clean", "x",
                        projectInfo);
                project.refreshLocal(IResource.DEPTH_INFINITE, null);

            } catch (final RpcException e) {
                ErlLogger.error(e);
            }
            project.refreshLocal(IResource.DEPTH_INFINITE, null);
View Full Code Here

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

                project.refreshLocal(IResource.DEPTH_INFINITE, null);

            } catch (final RpcException e) {
                ErlLogger.error(e);
            }
            project.refreshLocal(IResource.DEPTH_INFINITE, null);

        } catch (final Exception e) {
            ErlLogger.error(e);
            final String msg = NLS.bind(BuilderMessages.build_inconsistentProject,
                    e.getLocalizedMessage(), e.getClass().getName());
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.