Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IWorkspace$ProjectOrder


    public void stop(BundleContext context) throws Exception {
        super.stop(context);
        ivyCpcSerializer = null;
        ivyAttachementManager = null;
        resourceBundle = null;
        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        workspace.removeSaveParticipant(this);
        colorManager = null;
        ivyMarkerManager = null;
        ivyResolveJob = null;
        retrieveSetupManager = null;
        workspace.removeResourceChangeListener(workspaceListener);
        workspaceListener = null;
        workspace.removeResourceChangeListener(ivyFileListener);
        ivyFileListener = null;

        getPreferenceStore().removePropertyChangeListener(propertyListener);
        propertyListener = null;
View Full Code Here


        }
        plugin = null;
    }

    void prefStoreChanged() throws JavaModelException {
        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        IJavaModel javaModel = JavaCore.create(workspace.getRoot());
        IJavaProject[] projects = javaModel.getJavaProjects();
        for (int i = 0; i < projects.length; i++) {
            List/* <IvyClasspathContainer> */containers = IvyClasspathContainerHelper
                    .getContainers(projects[i]);
            Iterator/* <IvyClasspathContainer> */itContainers = containers.iterator();
View Full Code Here

        // get a project descriptor
        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

        // get a project descriptor
        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

        if (path == null) {
            return;
        }

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IFile file = workspace.getRoot().getFile(path);

        WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
            public void execute(final IProgressMonitor monitor)
                    throws CoreException {
                try {
View Full Code Here

   *
   * @return  the list of all CompilationUnits in the workspace or
   * <code>null</code> if no comp units were found.
   */
  public static List<ICompilationUnit> scanForCompilationUnits() {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    if(workspace == null) {
      log.warning("No workspace");
      return null;
    }
    IWorkspaceRoot root = workspace.getRoot();
    if(root == null) {
      log.warning("No workspace root");
      return null;
    }
     IJavaModel javaModel = JavaCore.create(root);
View Full Code Here

   * @param   includeClassfiles include compilation units availabile as .class files
   * @return  the list of all CompilationUnits in the workspace or
   * <code>null</code> if no comp units were found.
   */
  public static List<ITypeRoot> scanForCompilationUnits(boolean includeClassfiles) {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    if(workspace == null) {
      log.warning("No workspace");
      return null;
    }
    IWorkspaceRoot root = workspace.getRoot();
    if(root == null) {
      log.warning("No workspace root");
      return null;
    }
     IJavaModel javaModel = JavaCore.create(root);
View Full Code Here

   *
   * @return  the list of all CompilationUnits in the workspace or
   * <code>null</code> if no comp units were found.
   */
  public static List<ICompilationUnit> scanForCompilationUnits() {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    if(workspace == null) {
      log.warning("No workspace");
      return null;
    }
    IWorkspaceRoot root = workspace.getRoot();
    if(root == null) {
      log.warning("No workspace root");
      return null;
    }
     IJavaModel javaModel = JavaCore.create(root);
View Full Code Here

  @BeforeClass
  static public void setup() throws JavaModelException {
    IJavaProject project;

    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    Assert.assertNotNull(workspace);
    IWorkspaceRoot root = workspace.getRoot();
    Assert.assertNotNull(root);
    project = (IJavaProject) JavaCore.create(root.getProject("FusionTests"));
    Assert.assertNotNull(project);
   
    hierarchy =  new CachedTypeHierarchy(project);
View Full Code Here

                if (path == null) {
                    return;
                }

                IWorkspace workspace = ResourcesPlugin.getWorkspace();
                final IFile newFile = workspace.getRoot().getFile(path);

                WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
                    public void execute(final IProgressMonitor monitor)
                            throws CoreException {
                        try {
View Full Code Here

TOP

Related Classes of org.eclipse.core.resources.IWorkspace$ProjectOrder

Copyright © 2018 www.massapicom. 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.