From 9be35c8d4583e34328cee8921426a238deb3b052 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 27 Sep 2013 17:19:06 +0200 Subject: [PATCH] don't advertise technologies we don't support in community edition --- .../com/jetbrains/python/PythonModuleTypeBase.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/PythonModuleTypeBase.java b/python/src/com/jetbrains/python/PythonModuleTypeBase.java index e7ebc4923613..5bfbcdc8bc9e 100644 --- a/python/src/com/jetbrains/python/PythonModuleTypeBase.java +++ b/python/src/com/jetbrains/python/PythonModuleTypeBase.java @@ -1,6 +1,8 @@ package com.jetbrains.python; +import com.intellij.facet.FacetType; import com.intellij.ide.util.projectWizard.ModuleBuilder; +import com.intellij.openapi.extensions.Extensions; import com.intellij.openapi.module.ModuleType; import com.intellij.openapi.module.ModuleTypeManager; import icons.PythonIcons; @@ -30,7 +32,14 @@ public abstract class PythonModuleTypeBase extends Modu @NotNull public String getDescription() { - return "Python modules are used for developing Python applications. Supported technologies include Django, Google App Engine, Mako, Jinja2 and others."; + String basicDescription = "Python modules are used for developing Python applications."; + FacetType[] facetTypes = Extensions.getExtensions(FacetType.EP_NAME); + for (FacetType type : facetTypes) { + if (type.getId().toString().equalsIgnoreCase("django")) { + return basicDescription + " Supported technologies include Django, Google App Engine, Mako, Jinja2 and others."; + } + } + return basicDescription; } public Icon getBigIcon() {