mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
title fixed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user