Skip to content

Commit 9b5d23e

Browse files
authored
RLangEditor: Add about and tutorials (#238)
Signed-off-by: Ce Gao <ce.gao@outlook.com>
1 parent 2cdc5aa commit 9b5d23e

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/rprocessing/mode/RLangEditor.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,17 @@ public void actionPerformed(final ActionEvent e) {
126126
@Override
127127
public JMenu buildHelpMenu() {
128128
final JMenu menu = new JMenu("Help");
129-
menu.add(new JMenuItem(new AbstractAction("Contribute to R Language Mode") {
129+
menu.add(new JMenuItem(new AbstractAction("About Processing.R") {
130+
131+
/** */
132+
private static final long serialVersionUID = 1L;
133+
134+
@Override
135+
public void actionPerformed(final ActionEvent e) {
136+
Platform.openURL("https://processing-r.github.io/");
137+
}
138+
}));
139+
menu.add(new JMenuItem(new AbstractAction("Contribute to Processing.R") {
130140
/** */
131141
private static final long serialVersionUID = 2312501910971341647L;
132142

@@ -135,6 +145,19 @@ public void actionPerformed(final ActionEvent e) {
135145
Platform.openURL("http://github.com/gaocegege/Processing.R");
136146
}
137147
}));
148+
149+
JMenuItem item = new JMenuItem("Tutorials");
150+
item.setEnabled(false);
151+
menu.add(item);
152+
153+
item = new JMenuItem("Getting Started");
154+
item.addActionListener(new ActionListener() {
155+
@Override
156+
public void actionPerformed(ActionEvent e) {
157+
Platform.openURL("https://processing-r.github.io/tutorials/gettingstarted/");
158+
}
159+
});
160+
menu.add(item);
138161
return menu;
139162
}
140163

0 commit comments

Comments
 (0)