use of com.intellij.ide.ReopenProjectAction in project intellij-community by JetBrains.
the class RemoveSelectedProjectsFromGroupsAction method actionPerformed.
@Override
public void actionPerformed(AnActionEvent e) {
final List<AnAction> elements = getSelectedElements(e);
for (AnAction element : elements) {
if (element instanceof ReopenProjectAction) {
for (ProjectGroup group : RecentProjectsManager.getInstance().getGroups()) {
group.removeProject(((ReopenProjectAction) element).getProjectPath());
}
}
}
rebuildRecentProjectsList(e);
}
Aggregations