mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-97323 Changes list toolwindow: "Add new change list" and "Add file to VCS" have the same icon
(cherry picked from commit 7093bdd)
This commit is contained in:
@@ -102,8 +102,7 @@
|
||||
<separator/>
|
||||
<action id="ChangesView.DeleteUnversioned" class="com.intellij.openapi.vcs.changes.actions.DeleteUnversionedFilesAction"
|
||||
icon="AllIcons.Actions.Cancel"/>
|
||||
<action id="ChangesView.AddUnversioned" class="com.intellij.openapi.vcs.changes.actions.ScheduleForAdditionAction"
|
||||
icon="AllIcons.General.Add">
|
||||
<action id="ChangesView.AddUnversioned" class="com.intellij.openapi.vcs.changes.actions.ScheduleForAdditionAction">
|
||||
<keyboard-shortcut first-keystroke="control alt A" keymap="$default"/>
|
||||
</action>
|
||||
<action id="ChangesView.Ignore" class="com.intellij.openapi.vcs.changes.actions.IgnoreUnversionedAction"/>
|
||||
|
||||
-4
@@ -35,16 +35,12 @@ import com.intellij.openapi.vcs.ProjectLevelVcsManager;
|
||||
import com.intellij.openapi.vcs.changes.ChangeListManagerImpl;
|
||||
import com.intellij.openapi.vcs.changes.ui.ChangesListView;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.IconUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ScheduleForAdditionAction extends AnAction implements DumbAware {
|
||||
public ScheduleForAdditionAction() {
|
||||
super("Add to VCS", "Add to VCS", IconUtil.getAddIcon());
|
||||
}
|
||||
|
||||
public void update(AnActionEvent e) {
|
||||
final boolean enabled = e.getData(PlatformDataKeys.PROJECT) != null && thereAreUnversionedFiles(e);
|
||||
|
||||
Reference in New Issue
Block a user