use of org.jetbrains.idea.maven.project.MavenIgnoredFilesConfigurable in project intellij-community by JetBrains.
the class ToggleIgnoredProjectsAction method actionPerformed.
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
final DataContext context = e.getDataContext();
MavenProjectsManager projectsManager = MavenActionUtil.getProjectsManager(context);
if (projectsManager == null)
return;
List<MavenProject> projects = MavenActionUtil.getMavenProjects(context);
final Project project = MavenActionUtil.getProject(context);
if (project == null)
return;
if (isIgnoredInSettings(projectsManager, projects)) {
ShowSettingsUtil.getInstance().editConfigurable(project, new MavenIgnoredFilesConfigurable(project));
} else {
projectsManager.setIgnoredState(projects, !isIgnored(projectsManager, projects));
}
}
Aggregations