public class RExtensionSettings extends Object implements ExternalEnvironmentSettings
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterUIChangedEvent
Constructor and Description |
---|
RExtensionSettings() |
Modifier and Type | Method and Description |
---|---|
static void |
checkRSettings()
Checks if the R settings are valid or throws an exception
|
static void |
checkRSettings(JIPipeIssueReport report)
Checks if the R settings are valid or reports an invalid state
|
StringList |
getEasyInstallerRepositories() |
REnvironment |
getEnvironment() |
EventBus |
getEventBus()
Gets the event bus that posts events about the parameters
|
static RExtensionSettings |
getInstance() |
REnvironment.List |
getPresets() |
List<ExternalEnvironment> |
getPresetsListInterface(Class<?> environmentClass)
Returns the presets.
|
static boolean |
RSettingsAreValid()
Checks the R settings
|
void |
setEasyInstallerRepositories(StringList easyInstallerRepositories) |
void |
setEnvironment(REnvironment environment) |
void |
setPresets(REnvironment.List presets) |
void |
setPresetsListInterface(List<ExternalEnvironment> presets,
Class<?> environmentClass)
Sets the presets
This is an interface class for easy access
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addParameterChangeListener, addParameterChangeListener, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, isParameterUIVisible, isParameterUIVisible, setParameter, triggerParameterChange, triggerParameterStructureChange, triggerParameterUIChange
public static String ID
public static RExtensionSettings getInstance()
public static void checkRSettings()
public static void checkRSettings(JIPipeIssueReport report)
report
- the reportpublic static boolean RSettingsAreValid()
public EventBus getEventBus()
JIPipeParameterCollection
getEventBus
in interface JIPipeParameterCollection
JIPipeParameterCollection.ParameterChangedEvent
and JIPipeParameterCollection.ParameterStructureChangedEvent
public REnvironment getEnvironment()
public void setEnvironment(REnvironment environment)
public REnvironment.List getPresets()
public void setPresets(REnvironment.List presets)
public StringList getEasyInstallerRepositories()
public void setEasyInstallerRepositories(StringList easyInstallerRepositories)
public List<ExternalEnvironment> getPresetsListInterface(Class<?> environmentClass)
ExternalEnvironmentSettings
getPresetsListInterface
in interface ExternalEnvironmentSettings
public void setPresetsListInterface(List<ExternalEnvironment> presets, Class<?> environmentClass)
ExternalEnvironmentSettings
setPresetsListInterface
in interface ExternalEnvironmentSettings
presets
- the presetsCopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.