Skip to content

Commit 86e0b5e

Browse files
committed
Updated help action to link to the plugin GitHub repository (#164)
1 parent 3ee9a8d commit 86e0b5e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/com/intellij/lang/jsgraphql/ide/project/schemastatus/GraphQLSchemasPanel.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
package com.intellij.lang.jsgraphql.ide.project.schemastatus;
99

1010
import com.intellij.icons.AllIcons;
11+
import com.intellij.ide.BrowserUtil;
1112
import com.intellij.ide.IdeEventQueue;
12-
import com.intellij.ide.actions.ContextHelpAction;
1313
import com.intellij.ide.util.treeView.IndexComparator;
1414
import com.intellij.lang.jsgraphql.ide.editor.GraphQLRerunLatestIntrospectionAction;
1515
import com.intellij.lang.jsgraphql.ide.project.graphqlconfig.GraphQLConfigManager;
@@ -264,7 +264,12 @@ public void actionPerformed(AnActionEvent e) {
264264
GraphQLConfigManager.getService(myProject).buildConfigurationModel(null, null);
265265
}
266266
});
267-
leftActionGroup.add(new ContextHelpAction(""));
267+
leftActionGroup.add(new AnAction("Help", "Open the JS GraphQL Plugin Documentation", AllIcons.Actions.Help) {
268+
@Override
269+
public void actionPerformed(AnActionEvent e) {
270+
BrowserUtil.browse("https://github.com/jimkyndemeyer/js-graphql-intellij-plugin");
271+
}
272+
});
268273

269274
final JPanel panel = new JPanel(new BorderLayout());
270275
final ActionManager actionManager = ActionManager.getInstance();

0 commit comments

Comments
 (0)