Search in sources :

Example 1 with RestConfigurationEditor

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;
}
Also used : RestConfigurationEditor(com.jetbrains.rest.run.RestConfigurationEditor)

Example 2 with RestConfigurationEditor

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;
}
Also used : RestConfigurationEditor(com.jetbrains.rest.run.RestConfigurationEditor) PyPackage(com.jetbrains.python.packaging.PyPackage)

Aggregations

RestConfigurationEditor (com.jetbrains.rest.run.RestConfigurationEditor)2 PyPackage (com.jetbrains.python.packaging.PyPackage)1