use of de.janthomae.leiningenplugin.project.LeiningenProject in project intellij-leiningen-plugin by derkork.
the class RunBuildAction method actionPerformed.
@Override
public void actionPerformed(AnActionEvent anActionEvent) {
Project project = anActionEvent.getData(PlatformDataKeys.PROJECT);
List<String> goals = anActionEvent.getData(LeiningenDataKeys.LEININGEN_GOALS);
if (goals == null || goals.isEmpty()) {
return;
}
LeiningenProject leiningenProject = anActionEvent.getData(LeiningenDataKeys.LEININGEN_PROJECT);
if (leiningenProject == null) {
return;
}
LeiningenRunnerParameters params = new LeiningenRunnerParameters(goals, leiningenProject.getWorkingDir());
LeiningenRunConfigurationType.runConfiguration(project, params, anActionEvent.getDataContext());
}
use of de.janthomae.leiningenplugin.project.LeiningenProject in project intellij-leiningen-plugin by derkork.
the class LeiningenProjectStructure method update.
public void update() {
myRoot.clear();
final List<LeiningenProject> projects = myProjectsManager.getLeiningenProjects();
for (LeiningenProject project : projects) {
LeiningenProjectNode lpn = new LeiningenProjectNode(myRoot, project);
myRoot.addProjectNode(lpn);
}
myTreeBuilder.updateFromRoot();
myTreeBuilder.expand(myRoot, null);
}
use of de.janthomae.leiningenplugin.project.LeiningenProject 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
}
}
}
Aggregations