mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
welcome screen: IDEA-256945 Replace Help menu with gear button
GitOrigin-RevId: 4b80e2972471e718200c61f728a6665d3feb47c3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c806e6c8ad
commit
bd83d87051
@@ -290,6 +290,7 @@ public interface IdeActions {
|
||||
@NonNls String GROUP_WELCOME_SCREEN_DOC = "WelcomeScreen.Documentation";
|
||||
@NonNls String GROUP_WELCOME_SCREEN_CONFIGURE = "WelcomeScreen.Configure";
|
||||
@NonNls String GROUP_WELCOME_SCREEN_HELP = "WelcomeScreen.Help";
|
||||
@NonNls String GROUP_WELCOME_SCREEN_OPTIONS = "WelcomeScreen.Options";
|
||||
@NonNls String GROUP_WELCOME_SCREEN_LEARN_IDE = "WelcomeScreen.LearnIdeHelp";
|
||||
@NonNls String ACTION_KEYMAP_REFERENCE="Help.KeymapReference";
|
||||
@NonNls String ACTION_MOVE = "Move";
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.openapi.wm.impl.welcomeScreen;
|
||||
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.idea.ActionsBundle;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.IdeActions;
|
||||
@@ -18,7 +19,9 @@ public class WelcomeScreenDefaultCustomization implements WelcomeScreenCustomiza
|
||||
|
||||
@Override
|
||||
public @Nullable Component createQuickAccessComponent(@NotNull Disposable parentDisposable) {
|
||||
AnAction action = createShowPopupAction(IdeActions.GROUP_WELCOME_SCREEN_HELP);
|
||||
return WelcomeScreenComponentFactory.wrapActionLink(new ActionLink(IdeBundle.message("action.help"), null, action));
|
||||
AnAction action = createShowPopupAction(IdeActions.GROUP_WELCOME_SCREEN_OPTIONS);
|
||||
ActionLink link = new ActionLink("", AllIcons.General.GearPlain, action);
|
||||
link.setToolTipText(ActionsBundle.groupText(IdeActions.GROUP_WELCOME_SCREEN_OPTIONS));
|
||||
return WelcomeScreenComponentFactory.wrapActionLink(link);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1528,6 +1528,7 @@ action.WelcomeScreen.Configure.Export.text=Export Settings
|
||||
action.WelcomeScreen.Configure.RestoreDefault.text=Restore Default Settings...
|
||||
action.WelcomeScreen.Configure.DesktopEntry.text=Create Desktop Entry
|
||||
action.WelcomeScreen.Configure.DesktopEntry.description=Create a desktop entry for integration with system application menu
|
||||
group.WelcomeScreen.Options.text=Options Menu
|
||||
|
||||
action.CommittedChanges.Revert.text=Revert Changes
|
||||
action.CommittedChanges.Revert.description=Apply the reverse of the selected changes to the working copy
|
||||
|
||||
@@ -933,6 +933,16 @@
|
||||
<reference ref="CheckForUpdate"/>
|
||||
</group>
|
||||
|
||||
<group id="WelcomeScreen.Options">
|
||||
<reference ref="About"/>
|
||||
<separator/>
|
||||
<reference ref="EditCustomProperties"/>
|
||||
<reference ref="EditCustomVmOptions"/>
|
||||
<reference ref="CollectZippedLogs"/>
|
||||
<separator/>
|
||||
<reference ref="CheckForUpdate"/>
|
||||
</group>
|
||||
|
||||
<group id="WelcomeScreen.LearnIdeHelp">
|
||||
<reference ref="HelpTopics"/>
|
||||
<reference ref="OnlineDocAction"/>
|
||||
|
||||
Reference in New Issue
Block a user