File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/io/github/francoiscambell/clionarduinoplugin/actions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 128
128
<add-to-group group-id =" NewGroup" anchor =" last" />
129
129
</action >
130
130
<action id =" SketchProject.New"
131
- class =" io.github.francoiscambell.clionarduinoplugin.actions.NewArduinoProjectAction "
131
+ class =" io.github.francoiscambell.clionarduinoplugin.actions.NewArduinoProject "
132
132
text =" New Arduino Sketch Project" description =" Creates a new Arduino sketch project"
133
133
icon =" /io/github/francoiscambell/clionarduinoplugin/resources/icons/Arduino_Logo.png" >
134
134
<add-to-group group-id =" FileMenu" anchor =" first" />
Original file line number Diff line number Diff line change 1
1
package io .github .francoiscambell .clionarduinoplugin .actions ;
2
2
3
+ import com .intellij .icons .*;
3
4
import com .intellij .openapi .actionSystem .*;
4
5
import com .intellij .openapi .wm .impl .welcomeScreen .*;
5
- import io .github .francoiscambell .clionarduinoplugin .resources .icons .*;
6
6
import io .github .francoiscambell .clionarduinoplugin .wizards .*;
7
7
8
8
/**
9
9
* Created by francois on 15-08-14.
10
10
*/
11
- public class NewArduinoProjectAction extends AnAction {
11
+ public class NewArduinoProject extends AnAction {
12
12
public void update (AnActionEvent event ) {
13
13
Presentation presentation = event .getPresentation ();
14
14
if (ActionPlaces .isMainMenuOrActionSearch (event .getPlace ())) {
15
15
presentation .setIcon (null );
16
16
}
17
17
18
18
if (NewWelcomeScreen .isNewWelcomeScreen (event )) {
19
- event .getPresentation ().setIcon (ArduinoIcon . ARDUINO_ICON );
19
+ event .getPresentation ().setIcon (AllIcons . Welcome . CreateNewProject );
20
20
}
21
21
22
22
}
You can’t perform that action at this time.
0 commit comments