mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: Removed unnecessary "ShowChangesViewAction" action - "VcsShowLocalChangesAction" action could be used instead
This commit is contained in:
@@ -243,8 +243,6 @@ group.VcsGroups.text=VC_S
|
||||
group.VcsGlobalGroup.text=VCS Group
|
||||
action.Vcs.FileView.text=Show Fi_le View
|
||||
action.Vcs.FileView.description=Show version control related information for all local files
|
||||
action.Vcs.ChangesView.text=Show Cha_nges View
|
||||
action.Vcs.ChangesView.description=Show window for managing changes and changelists
|
||||
action.Vcs.UpdateProject.text=_Update Project
|
||||
action.Vcs.ProjectStatus.text=C_heck Project Status
|
||||
group.VcsGroup.text=Version Control
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
<action id="Vcs.QuickListPopupAction"
|
||||
class = "com.intellij.openapi.vcs.actions.VcsQuickListPopupAction"
|
||||
text = "VCS Operations Popup..." description="Context aware popup with list of commonly used VCS actions"/>
|
||||
<action id="Vcs.ChangesView" class="com.intellij.openapi.vcs.changes.ShowChangesViewAction"/>
|
||||
<reference ref="CheckinProject"/>
|
||||
<action id="Vcs.UpdateProject" class="com.intellij.openapi.vcs.update.CommonUpdateProjectAction" icon="AllIcons.Actions.CheckOut">
|
||||
<keyboard-shortcut first-keystroke="control T" keymap="$default"/>
|
||||
@@ -323,7 +322,6 @@
|
||||
<separator/>
|
||||
<reference ref="Start.Use.Vcs"/>
|
||||
<reference ref="Vcs.QuickListPopupAction"/>
|
||||
<reference ref="Vcs.ChangesView"/>
|
||||
<reference ref="Vcs.UpdateProject"/>
|
||||
<reference ref="Vcs.IntegrateProject"/>
|
||||
<reference ref="Vcs.RefreshStatuses"/>
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: yole
|
||||
* Date: 18.08.2006
|
||||
* Time: 16:35:20
|
||||
*/
|
||||
package com.intellij.openapi.vcs.changes;
|
||||
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.Presentation;
|
||||
import com.intellij.openapi.vcs.actions.AbstractVcsAction;
|
||||
import com.intellij.openapi.vcs.actions.VcsContext;
|
||||
import com.intellij.openapi.vcs.changes.ui.ChangesViewContentManager;
|
||||
import com.intellij.openapi.wm.ToolWindow;
|
||||
import com.intellij.openapi.wm.ToolWindowManager;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ShowChangesViewAction extends AbstractVcsAction {
|
||||
@Override
|
||||
protected void actionPerformed(@NotNull VcsContext e) {
|
||||
if (e.getProject() == null) return;
|
||||
final ToolWindowManager manager = ToolWindowManager.getInstance(e.getProject());
|
||||
if (manager != null) {
|
||||
final ToolWindow window = manager.getToolWindow(ChangesViewContentManager.TOOLWINDOW_ID);
|
||||
if (window != null) {
|
||||
window.show(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void update(VcsContext vcsContext, Presentation presentation) {
|
||||
presentation.setVisible(getActiveVcses(vcsContext).size() > 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean forceSyncUpdate(final AnActionEvent e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user