public abstract class JIPipeDesktopEasyInstallExternalEnvironmentInstaller<T extends JIPipeEnvironment> extends JIPipeDesktopExternalEnvironmentInstaller
JIPipeRunnable.EnqeuedEventListener, JIPipeRunnable.EnqueuedEvent, JIPipeRunnable.EnqueuedEventEmitter, JIPipeRunnable.FinishedEvent, JIPipeRunnable.FinishedEventEmitter, JIPipeRunnable.FinishedEventListener, JIPipeRunnable.InterruptedEvent, JIPipeRunnable.InterruptedEventEmitter, JIPipeRunnable.InterruptedEventListener, JIPipeRunnable.ProgressEvent, JIPipeRunnable.ProgressEventEmitter, JIPipeRunnable.ProgressEventListener, JIPipeRunnable.StartedEvent, JIPipeRunnable.StartedEventEmitter, JIPipeRunnable.StartedEventListener
Constructor and Description |
---|
JIPipeDesktopEasyInstallExternalEnvironmentInstaller(JIPipeDesktopWorkbench 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<JIPipeDesktopEasyInstallExternalEnvironmentInstallerPackage> |
getAvailablePackages() |
abstract HTMLText |
getDialogDescription()
The description of the installation dialog
|
abstract String |
getDialogHeading()
The heading of the installation dialog
|
abstract HTMLText |
getFinishedMessage()
The message shown after the operation is finished
|
JIPipeEnvironment |
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
|
JIPipeDesktopEasyInstallExternalEnvironmentInstallerPackage |
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)
|
getDesktopWorkbench
getParameterAccess, getRunUUID, getWorkbench
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWorkbench
getTaskLabel, isLogSilent, onFinished, onInterrupted
public JIPipeDesktopEasyInstallExternalEnvironmentInstaller(JIPipeDesktopWorkbench 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 JIPipeDesktopEasyInstallExternalEnvironmentInstallerPackage getTargetPackage()
public Path getRelativeInstallationPath()
public Path getAbsoluteInstallationPath()
public JIPipeEnvironment getInstalledEnvironment()
JIPipeExternalEnvironmentInstaller
getInstalledEnvironment
in class JIPipeExternalEnvironmentInstaller
public void run()
protected void executePostprocess()
protected abstract void writeEnvironmentToParameters(T environment, JIPipeParameterAccess parameterAccess)
environment
- the environmentparameterAccess
- the parameterprotected abstract T generateEnvironment()
public List<JIPipeDesktopEasyInstallExternalEnvironmentInstallerPackage> getAvailablePackages()
public abstract List<String> getRepositories()
public abstract String getDialogHeading()
public abstract HTMLText getDialogDescription()
public abstract HTMLText getFinishedMessage()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.