Search in sources :

Example 1 with EditChangelistDialog

use of com.intellij.openapi.vcs.changes.ui.EditChangelistDialog in project intellij-community by JetBrains.

the class RenameChangeListAction method actionPerformed.

public void actionPerformed(AnActionEvent e) {
    Project project = e.getData(CommonDataKeys.PROJECT);
    ChangeList[] lists = e.getData(VcsDataKeys.CHANGE_LISTS);
    assert lists != null;
    final LocalChangeList list = ChangeListManager.getInstance(project).findChangeList(lists[0].getName());
    if (list != null) {
        new EditChangelistDialog(project, list).show();
    }
}
Also used : Project(com.intellij.openapi.project.Project) LocalChangeList(com.intellij.openapi.vcs.changes.LocalChangeList) ChangeList(com.intellij.openapi.vcs.changes.ChangeList) LocalChangeList(com.intellij.openapi.vcs.changes.LocalChangeList) EditChangelistDialog(com.intellij.openapi.vcs.changes.ui.EditChangelistDialog)

Aggregations

Project (com.intellij.openapi.project.Project)1 ChangeList (com.intellij.openapi.vcs.changes.ChangeList)1 LocalChangeList (com.intellij.openapi.vcs.changes.LocalChangeList)1 EditChangelistDialog (com.intellij.openapi.vcs.changes.ui.EditChangelistDialog)1