Package org.eclipse.core.resources

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


            newNatures[natures.length] = BndtoolsConstants.NATURE_ID;
            description.setNatureIds(newNatures);
            iProject.setDescription(description, null);

            /* refresh the project; files were created outside of Eclipse API */
            iProject.refreshLocal(IResource.DEPTH_INFINITE, null);

            return;
        } catch (CoreException e) {}
    }
}
View Full Code Here


        }

        ReleaseHelper.updateProject(context);

        IProject proj = ReleaseUtils.getProject(context.getProject());
        proj.refreshLocal(IResource.DEPTH_INFINITE, context.getProgressMonitor());

        return true;
    }

    private static boolean doRelease(ReleaseContext context, List<Baseline> diffs, List<IReleaseParticipant> participants) throws Exception {
View Full Code Here

    try {

      context.setProgressMonitor(monitor);

      IProject proj = ReleaseUtils.getProject(context.getProject());
      proj.refreshLocal(IResource.DEPTH_INFINITE, monitor);

      boolean ok = ReleaseHelper.release(context, context.getBaselines());

      ResourcesPlugin.getWorkspace().getRoot().getProject(context.getProject().getName()).refreshLocal(IResource.DEPTH_INFINITE, context.getProgressMonitor());
View Full Code Here

        }

        ReleaseHelper.updateProject(context);

        IProject proj = ReleaseUtils.getProject(context.getProject());
        proj.refreshLocal(IResource.DEPTH_INFINITE, context.getProgressMonitor());

        return true;
    }

    private static boolean doRelease(ReleaseContext context, List<Baseline> diffs, List<IReleaseParticipant> participants) throws Exception {
View Full Code Here

    IProject project;
    projectProvider = new TestProjectProvider(JMXTestPlugin.PLUGIN_ID,
        "projects" + Path.SEPARATOR + "JMX_EXAMPLE",
        null, true);
    project = projectProvider.getProject();
    project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());

    ILaunchConfigurationWorkingCopy wc = createLaunch();
    ILaunch launch = wc.launch("run", new NullProgressMonitor());
   
    Thread.sleep(10000);
View Full Code Here

                if (!file.mkdirs()) {
                    Object formatArgs [] = new Object[]{file.getName()};
                    MessageFormat mf = new MessageFormat(UNABLE_TO_CREATE_MSG);
                    errorMessage = mf.format(formatArgs);
                }
                project.refreshLocal(IResource.DEPTH_INFINITE, null);
            }
            if (errorMessage == null) {
                //Only set properties if no errors
                MCSProjectNature.setDeviceRepositoryName(project,
                        fileSelector.getValue());
View Full Code Here

                    newProject.create(description, new SubProgressMonitor(monitor, 1000));
                    if (monitor.isCanceled()) {
                        throw new OperationCanceledException();
                    }
                    newProject.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(monitor, 1000));
                    newProject.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor, 1000));
                } finally {
                    monitor.done();
                }
            }
        };
View Full Code Here

      String repository = null;
      String workspace = null;
      String workspacePassword = null;
      IProject project = ToolProjectSupport.createProject(name, location, forteLogger, repository, workspace, workspacePassword);
     
      project.refreshLocal(IResource.DEPTH_ZERO, null);
     
     
      CreateRepository creator = new CreateRepository(project, project.getName());
      creator.run(new NullProgressMonitor()) ;
     
View Full Code Here

        workspace = projectPropertyPage.getForteWorkspace();
        workspacePassword = projectPropertyPage.getForteWorkspacePassword();
      }
      IProject project = ToolProjectSupport.createProject(name, location, forteLogger, repository, workspace, workspacePassword);
     
      project.refreshLocal(IResource.DEPTH_ZERO, null);
      createRepos(project);
      RepositoryExport exporter = new RepositoryExport(project);
      container.run(true, true, exporter);

      return true
View Full Code Here

    IProject project = root.getProject(projectName);

    if (!project.exists()) {
      project.create(null);
    } else {
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
    }

    if (!project.isOpen()) {
      project.open(null);
    }
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.