Search in sources :

Example 6 with ReopenProjectAction

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);
}
Also used : ReopenProjectAction(com.intellij.ide.ReopenProjectAction) AnAction(com.intellij.openapi.actionSystem.AnAction) ProjectGroup(com.intellij.ide.ProjectGroup)

Aggregations

ReopenProjectAction (com.intellij.ide.ReopenProjectAction)6 AnAction (com.intellij.openapi.actionSystem.AnAction)6 ProjectGroup (com.intellij.ide.ProjectGroup)2 ProjectGroupActionGroup (com.intellij.ide.ProjectGroupActionGroup)2 RecentProjectsManager (com.intellij.ide.RecentProjectsManager)1 Presentation (com.intellij.openapi.actionSystem.Presentation)1 DialogWrapper (com.intellij.openapi.ui.DialogWrapper)1 IOException (java.io.IOException)1