5af7f8b164e89eabdbe3c8714eea6c7115dc69aa
[idea/community.git] / python / educational-python / course-creator-python / src / com / jetbrains / edu / coursecreator / PyCCRunTests.java
1 package com.jetbrains.edu.coursecreator;
2
3 import com.intellij.openapi.actionSystem.AnAction;
4 import com.intellij.openapi.project.Project;
5 import com.jetbrains.edu.coursecreator.actions.PyCCRunTestsAction;
6 import com.jetbrains.python.edu.PyExecuteFileExtensionPoint;
7 import org.jetbrains.annotations.NotNull;
8
9 public class PyCCRunTests implements PyExecuteFileExtensionPoint {
10
11   @NotNull
12   public AnAction getRunAction() {
13     return new PyCCRunTestsAction();
14   }
15
16   @Override
17   public boolean accept(Project project) {
18     return CCProjectService.getInstance(project).getCourse() != null;
19   }
20 }