use of com.jetbrains.rest.run.RestConfigurationEditor in project intellij-community by JetBrains.
the class DocutilsRunConfiguration method createConfigurationEditor.
@Override
protected SettingsEditor<? extends RunConfiguration> createConfigurationEditor() {
RestConfigurationEditor editor = new RestConfigurationEditor(getProject(), this, new DocutilsTasksModel());
editor.setConfigurationName("Docutils task");
editor.setInputDescriptor(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor());
editor.setOutputDescriptor(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor());
return editor;
}
use of com.jetbrains.rest.run.RestConfigurationEditor in project intellij-community by JetBrains.
the class SphinxRunConfiguration method createConfigurationEditor.
@Override
protected SettingsEditor<? extends RunConfiguration> createConfigurationEditor() {
final SphinxTasksModel model = new SphinxTasksModel();
if (!model.contains("pdf") && getSdk() != null) {
final List<PyPackage> packages = PyPackageManager.getInstance(getSdk()).getPackages();
if (packages != null) {
final PyPackage rst2pdf = PyPackageUtil.findPackage(packages, "rst2pdf");
if (rst2pdf != null) {
model.add(13, "pdf");
}
}
}
RestConfigurationEditor editor = new RestConfigurationEditor(getProject(), this, model);
editor.setConfigurationName("Sphinx task");
editor.setOpenInBrowserVisible(false);
editor.setInputDescriptor(FileChooserDescriptorFactory.createSingleFolderDescriptor());
editor.setOutputDescriptor(FileChooserDescriptorFactory.createSingleFolderDescriptor());
return editor;
}
Aggregations