Examples of ISpringProject


Examples of org.springframework.ide.eclipse.core.model.ISpringProject

      IProject project = (IProject) element.getAdapter(IProject.class);
      if (project == null && element instanceof IFile) {
        project = ((IFile) element).getProject();
      }
      if (project != null) {
        ISpringProject springProject = SpringCore.getModel()
            .getProject(project);
        if (springProject != null) {
          projects.add(springProject);
        }
      }
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

    try {
      w.lock();
      // Load all projects
      projects.clear();
      for (IProject project : SpringCoreUtils.getSpringProjects()) {
        ISpringProject proj = new SpringProject(this, project);
        projects.put(project, proj);
      }
    }
    finally {
      w.unlock();
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

      }
    }

    public void springNatureAdded(IProject project, int eventType) {
      if (eventType == IResourceChangeEvent.POST_BUILD) {
        ISpringProject proj = new SpringProject(SpringModel.this, project);
        try {
          w.lock();
          projects.put(project, proj);
        }
        finally {
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

      }
    }

    public void springNatureRemoved(IProject project, int eventType) {
      if (eventType == IResourceChangeEvent.POST_BUILD) {
        ISpringProject proj = null;
        try {
          w.lock();
          proj = projects.remove(project);
        }
        finally {
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

      }
    }

    public void projectAdded(IProject project, int eventType) {
      if (eventType == IResourceChangeEvent.POST_BUILD) {
        ISpringProject proj = new SpringProject(SpringModel.this, project);
        try {
          w.lock();
          projects.put(project, proj);
        }
        finally {
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

      }
    }

    public void projectOpened(IProject project, int eventType) {
      if (eventType == IResourceChangeEvent.POST_BUILD) {
        ISpringProject proj = new SpringProject(SpringModel.this, project);
        try {
          w.lock();
          projects.put(project, proj);
        }
        finally {
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

        notifyListeners(proj, Type.ADDED);
      }
    }

    public void projectClosed(IProject project, int eventType) {
      ISpringProject proj = null;
      try {
        w.lock();
        proj = projects.remove(project);
      }
      finally {
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

        notifyListeners(proj, Type.REMOVED);
      }
    }

    public void projectDeleted(IProject project, int eventType) {
      ISpringProject proj = null;
      try {
        w.lock();
        proj = projects.remove(project);
      }
      finally {
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

    // Show virtual folder "Spring Elements" only in project explorer
    if (SpringUIPlugin.PROJECT_EXPLORER_CONTENT_PROVIDER_ID
        .equals(providerID)) {
      if (parentElement instanceof IProject) {
        ISpringProject springProject = SpringCore.getModel()
            .getProject((IProject) parentElement);
        if (springProject != null) {
          return new Object[] { springProject };
        }
      }
View Full Code Here

Examples of org.springframework.ide.eclipse.core.model.ISpringProject

  @Override
  public String getParentHandle(String handle) {
    Object obj = getObjectForHandle(handle);
    if (obj instanceof IWebflowProject) {
      ISpringProject project = SpringCore.getModel().getProject(
          ((IWebflowProject) obj).getProject());
      if (project != null) {
        return project.getElementID();
      }
    }
    else if (obj instanceof ISpringProject) {
      AbstractContextStructureBridge parentBridge = ContextCore
          .getStructureBridge(parentContentType);
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.