Search in sources :

Example 1 with CreateCourseArchiveDialog

use of com.jetbrains.edu.coursecreator.ui.CreateCourseArchiveDialog in project intellij-community by JetBrains.

the class CCCreateCourseArchive method actionPerformed.

@Override
public void actionPerformed(@NotNull AnActionEvent e) {
    final Project project = e.getData(CommonDataKeys.PROJECT);
    final Module module = e.getData(LangDataKeys.MODULE);
    if (project == null || module == null) {
        return;
    }
    CreateCourseArchiveDialog dlg = new CreateCourseArchiveDialog(project, this);
    dlg.show();
    if (dlg.getExitCode() != DialogWrapper.OK_EXIT_CODE) {
        return;
    }
    createCourseArchive(project, module, myZipName, myLocationDir, true);
    EduUsagesCollector.createdCourseArchive();
}
Also used : Project(com.intellij.openapi.project.Project) CreateCourseArchiveDialog(com.jetbrains.edu.coursecreator.ui.CreateCourseArchiveDialog) Module(com.intellij.openapi.module.Module)

Aggregations

Module (com.intellij.openapi.module.Module)1 Project (com.intellij.openapi.project.Project)1 CreateCourseArchiveDialog (com.jetbrains.edu.coursecreator.ui.CreateCourseArchiveDialog)1