Search in sources :

Example 1 with LeiningenProjectException

use of de.janthomae.leiningenplugin.project.LeiningenProjectException in project intellij-leiningen-plugin by derkork.

the class RefreshProjectsAction method actionPerformed.

@Override
public void actionPerformed(AnActionEvent e) {
    final Project theProject = e.getData(PlatformDataKeys.PROJECT);
    final LeiningenProjectsManager manager = LeiningenProjectsManager.getInstance(theProject);
    final List<LeiningenProject> projects = manager.getLeiningenProjects();
    for (LeiningenProject project : projects) {
        try {
            project.reimport(theProject);
        } catch (LeiningenProjectException e1) {
        // Just ignore it for now
        }
    }
}
Also used : LeiningenProject(de.janthomae.leiningenplugin.project.LeiningenProject) Project(com.intellij.openapi.project.Project) LeiningenProjectsManager(de.janthomae.leiningenplugin.project.LeiningenProjectsManager) LeiningenProject(de.janthomae.leiningenplugin.project.LeiningenProject) LeiningenProjectException(de.janthomae.leiningenplugin.project.LeiningenProjectException)

Aggregations

Project (com.intellij.openapi.project.Project)1 LeiningenProject (de.janthomae.leiningenplugin.project.LeiningenProject)1 LeiningenProjectException (de.janthomae.leiningenplugin.project.LeiningenProjectException)1 LeiningenProjectsManager (de.janthomae.leiningenplugin.project.LeiningenProjectsManager)1