use of com.intellij.facet.FacetType in project intellij-community by JetBrains.
the class PythonModuleTypeBase method getDescription.
@NotNull
public String getDescription() {
String basicDescription = "Python modules are used for developing <b>Python</b> applications.";
FacetType[] facetTypes = Extensions.getExtensions(FacetType.EP_NAME);
for (FacetType type : facetTypes) {
if (type.getId().toString().equalsIgnoreCase("django")) {
return basicDescription + " Supported technologies include <b>Django, Google App Engine, Mako, Jinja2</b> and others.";
}
}
return basicDescription;
}
use of com.intellij.facet.FacetType in project intellij-community by JetBrains.
the class AddFacetOfTypeAction method createAddFacetActions.
public static AnAction[] createAddFacetActions(FacetStructureConfigurable configurable) {
final List<AnAction> result = new ArrayList<>();
final StructureConfigurableContext context = configurable.myContext;
for (FacetType type : FacetTypeRegistry.getInstance().getSortedFacetTypes()) {
if (hasSuitableModules(context, type)) {
result.add(new AddFacetOfTypeAction(type, context));
}
}
return result.toArray(new AnAction[result.size()]);
}
use of com.intellij.facet.FacetType in project intellij-community by JetBrains.
the class AddFacetOfTypeAction method actionPerformed.
@Override
public void actionPerformed(AnActionEvent e) {
final FacetType type = myFacetType;
if (type == null)
return;
final FacetTypeId underlyingFacetType = type.getUnderlyingFacetType();
if (underlyingFacetType == null) {
addFacetToModule(type);
} else {
addSubFacet(type, underlyingFacetType);
}
}
Aggregations