public abstract class EasyInstallExternalEnvironmentInstaller<T extends ExternalEnvironment> extends ExternalEnvironmentInstaller
Constructor and Description |
---|
EasyInstallExternalEnvironmentInstaller(JIPipeWorkbench workbench,
JIPipeParameterAccess parameterAccess) |
Modifier and Type | Method and Description |
---|---|
protected void |
executePostprocess()
Postprocessing steps (optional) that are executed after the extraction of the archive
|
protected abstract T |
generateEnvironment()
Generates the final environment.
|
Path |
getAbsoluteInstallationPath() |
List<EasyInstallExternalEnvironmentInstallerPackage> |
getAvailablePackages() |
abstract HTMLText |
getDialogDescription()
The description of the installation dialog
|
abstract String |
getDialogHeading()
The heading of the installation dialog
|
ExternalEnvironment |
getInstalledEnvironment()
Returns the final environment after installation
|
JIPipeProgressInfo |
getProgressInfo()
The info object that allows communication with the run
|
Path |
getRelativeInstallationPath()
Installation path relative to the ImageJ root
|
abstract List<String> |
getRepositories()
This method should return all repositories that are available
|
EasyInstallExternalEnvironmentInstallerPackage |
getTargetPackage() |
void |
run() |
void |
setProgressInfo(JIPipeProgressInfo progressInfo)
Sets the progress info of this runnable
|
protected abstract void |
writeEnvironmentToParameters(T environment,
JIPipeParameterAccess parameterAccess)
This method should write the environment to the parameter access
Will be executed on the Swing thread (via invokeLater)
|
getParameterAccess, getWorkbench
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTaskLabel, onFinished, onInterrupted, onProgress, onStarted
public EasyInstallExternalEnvironmentInstaller(JIPipeWorkbench workbench, JIPipeParameterAccess parameterAccess)
workbench
- the workbenchparameterAccess
- the parameter access that will receive the generated environmentpublic JIPipeProgressInfo getProgressInfo()
JIPipeRunnable
public void setProgressInfo(JIPipeProgressInfo progressInfo)
JIPipeRunnable
progressInfo
- the info objectpublic EasyInstallExternalEnvironmentInstallerPackage getTargetPackage()
public Path getRelativeInstallationPath()
public Path getAbsoluteInstallationPath()
public ExternalEnvironment getInstalledEnvironment()
ExternalEnvironmentInstaller
getInstalledEnvironment
in class ExternalEnvironmentInstaller
public void run()
protected void executePostprocess()
protected abstract void writeEnvironmentToParameters(T environment, JIPipeParameterAccess parameterAccess)
environment
- the environmentparameterAccess
- the parameterprotected abstract T generateEnvironment()
public List<EasyInstallExternalEnvironmentInstallerPackage> getAvailablePackages()
public abstract List<String> getRepositories()
public abstract String getDialogHeading()
public abstract HTMLText getDialogDescription()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.