title fixed

This commit is contained in:
Roman Chernyatchik
2009-11-13 16:41:30 +03:00
parent a09ba5c797
commit b36ae98a8c
3 changed files with 16 additions and 4 deletions
@@ -42,18 +42,25 @@ public abstract class QuickSwitchSchemeAction extends AnAction implements DumbAw
protected abstract void fillActions(Project project, DefaultActionGroup group, DataContext dataContext);
private static void showPopup(AnActionEvent e, DefaultActionGroup group) {
private void showPopup(AnActionEvent e, DefaultActionGroup group) {
if (group.getChildrenCount() == 0) return;
final ListPopup popup = JBPopupFactory.getInstance()
.createActionGroupPopup(e.getPresentation().getText(),
.createActionGroupPopup(QuickSwitchSchemeAction.this.getPopupTitle(e),
group,
e.getDataContext(),
JBPopupFactory.ActionSelectionAid.NUMBERING,
e.getDataContext(), getAidMethod(),
true);
popup.showCenteredInCurrentWindow(e.getData(PlatformDataKeys.PROJECT));
}
protected JBPopupFactory.ActionSelectionAid getAidMethod() {
return JBPopupFactory.ActionSelectionAid.NUMBERING;
}
protected String getPopupTitle(AnActionEvent e) {
return e.getPresentation().getText();
}
public void update(AnActionEvent e) {
super.update(e);
e.getPresentation().setEnabled(e.getData(PlatformDataKeys.PROJECT) != null && isEnabled());
@@ -533,4 +533,5 @@ all.vcs.init.message.text=Initializing VCS...
switch.to.changelist=Switch &to changelist (''{0}'')
move.to.changelist=&Move changes to active changelist (''{0}'')
vcs.config.track.changed.on.server=Check "changed on server" conflicts in background
vcs.quicklist.pupup.title=VCS Quick List
vcs.quicklist.pupup.section.local.history=Local History
@@ -189,6 +189,10 @@ public class VcsQuickListPopupAction extends QuickSwitchSchemeAction implements
toGroup.add(separator);
}
protected String getPopupTitle(AnActionEvent e) {
return VcsBundle.message("vcs.quicklist.pupup.title");
}
public enum SupportedVCS {
VCS,
NOT_IN_VCS