course creation plugin infrastructure

This commit is contained in:
Ekaterina Tuzova
2014-08-29 12:13:54 +04:00
parent e3ebe870e8
commit 858a26d45a
7 changed files with 14 additions and 26 deletions
+2 -1
View File
@@ -4,4 +4,5 @@ remote-servers-git
github
IntelliLang
IntelliLang-python
learn-python
learn-python
course-creator
+1
View File
@@ -216,6 +216,7 @@ private layoutPlugins(layouts) {
fileset(dir: "$pythonEduHome/learn-python/resources/courses")
}
}
layouts.layoutPlugin("course-creator")
}
layouts.layoutCommunityPlugins(ch)
+5 -3
View File
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PLUGIN_MODULE" version="4">
<component name="DevKit.ModuleBuildProperties" url="file://$MODULE_DIR$/META-INF/plugin.xml" />
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/pluginResources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="python-community" />
<orderEntry type="module" module-name="lang-impl" />
<orderEntry type="library" name="gson" level="project" />
</component>
</module>
@@ -1,6 +1,6 @@
<idea-plugin version="2">
<id>org.jetbrains.plugins.coursecreator</id>
<name>Cource Creator for PyCharm Education</name>
<name>Course Creator for PyCharm Educational</name>
<version>1.0</version>
<description><![CDATA[
@@ -10,9 +10,7 @@
<change-notes><![CDATA[
]]>
</change-notes>
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description -->
<idea-version since-build="138"/>
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products
on how to target different products -->
@@ -36,6 +36,7 @@ public class CCTaskLineMarkerProvider implements LineMarkerProvider {
if (element instanceof PsiFile) {
final Project project = element.getProject();
final Course course = CCProjectService.getInstance(project).getCourse();
if (course == null) return;
final String taskFileName = ((PsiFile) element).getName();
final PsiDirectory taskDir = ((PsiFile) element).getParent();
if (taskDir == null) continue;
+1
View File
@@ -16,6 +16,7 @@
<orderEntry type="module" module-name="ShortcutPromoter" />
<orderEntry type="module" module-name="python-educational" />
<orderEntry type="module" module-name="learn-python" />
<orderEntry type="module" module-name="course-creator" />
</component>
</module>
@@ -1,28 +1,12 @@
package com.intellij.openapi.application;
import com.intellij.util.ThreeState;
import com.intellij.ide.plugins.PluginManagerCore;
// see com.intellij.openapi.application.ConfigImportHelper.getConfigImportSettings
@SuppressWarnings("UnusedDeclaration")
public class PyCharmEduConfigImportSettings extends ConfigImportSettings {
@Override
protected String getProductName(ThreeState full) {
return "WebStorm";
public PyCharmEduConfigImportSettings() {
PluginManagerCore.disablePlugin("org.jetbrains.plugins.coursecreator");
}
@Override
public String getCustomPathsSelector() {
return "WebIDE10";
}
@Override
public String getExecutableName() {
return "webstorm";
}
@Override
public String[] getMainJarNames() {
return new String[] { "webide", "webstorm"};
}
}