File tree 4 files changed +82
-0
lines changed
src/com/zenuml/sequence/plugins/jetbrains/actions
4 files changed +82
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ public final static class EditorActions {
23
23
/** 16x16 */ public static final Icon Italic = load ("/icons/editor_actions/Italic.svg" );
24
24
/** 16x16 */ public static final Icon Link = load ("/icons/editor_actions/Link.svg" );
25
25
/** 16x16 */ public static final Icon Strike_through = load ("/icons/editor_actions/Strike_through.svg" );
26
+ /** 16x16 */ public static final Icon Help = load ("/icons/editor_actions/help.svg" );
26
27
27
28
}
28
29
/** 16x16 */ public static final Icon MarkdownPlugin = load ("/icons/MarkdownPlugin.svg" );
Original file line number Diff line number Diff line change @@ -115,6 +115,13 @@ Includes the following features:</p>
115
115
116
116
<actions >
117
117
<group id =" ZenUml.Toolbar.Left" class =" com.intellij.openapi.actionSystem.DefaultActionGroup" text =" Markdown editor actions" >
118
+
119
+ <action class =" com.zenuml.sequence.plugins.jetbrains.actions.DocumentationAction"
120
+ id =" com.zenuml.sequence.plugins.jetbrains.actions.DocumentationAction"
121
+ text =" Documentation"
122
+ description =" Open documentation"
123
+ icon =" MarkdownIcons.EditorActions.Help" >
124
+ </action >
118
125
</group >
119
126
120
127
Original file line number Diff line number Diff line change
1
+ package com .zenuml .sequence .plugins .jetbrains .actions ;
2
+
3
+ import com .intellij .ide .BrowserUtil ;
4
+ import com .intellij .openapi .actionSystem .AnAction ;
5
+ import com .intellij .openapi .actionSystem .AnActionEvent ;
6
+ import com .zenuml .sequence .plugins .jetbrains .license .CheckLicense ;
7
+ import org .jetbrains .annotations .NotNull ;
8
+
9
+ import javax .swing .*;
10
+
11
+ public class DocumentationAction extends AnAction {
12
+
13
+ private static final String TITLE = "Documentation" ;
14
+
15
+ public DocumentationAction () {
16
+ super (TITLE );
17
+ }
18
+
19
+ public void actionPerformed (@ NotNull AnActionEvent anActionEvent ) {
20
+ BrowserUtil .browse ("https://zenuml.atlassian.net/wiki/spaces/ZEN/pages/233373697/Documentations" );
21
+ }
22
+
23
+ public void update (@ NotNull AnActionEvent e ) {
24
+ super .update (e );
25
+ }
26
+ }
You can’t perform that action at this time.
0 commit comments