-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathNewArduinoProject.java
More file actions
28 lines (23 loc) · 880 Bytes
/
NewArduinoProject.java
File metadata and controls
28 lines (23 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package io.github.francoiscambell.clionarduinoplugin.actions;
import com.intellij.icons.*;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.wm.impl.welcomeScreen.*;
import io.github.francoiscambell.clionarduinoplugin.wizards.NewArduinoProjectWizard;
/**
* Created by francois on 15-08-14.
*/
public class NewArduinoProject extends AnAction {
public void update(AnActionEvent event) {
Presentation presentation = event.getPresentation();
if (ActionPlaces.isMainMenuOrActionSearch(event.getPlace())) {
presentation.setIcon(null);
}
if (NewWelcomeScreen.isNewWelcomeScreen(event)) {
event.getPresentation().setIcon(AllIcons.Welcome.CreateNewProject);
}
}
@Override
public void actionPerformed(AnActionEvent e) {
(new NewArduinoProjectWizard()).runWizard();
}
}