From 9dae46223a981ff87da81c4aa62e8e2098bf8076 Mon Sep 17 00:00:00 2001 From: David Dykstal Date: Tue, 12 Dec 2006 14:00:45 +0000 Subject: [PATCH] [150388] default implementations of initializeSubSystem and uninitializeSubSystem have been provided. --- .../eclipse/rse/core/subsystems/SubSystem.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java index da4cc435827..b6ff66a900b 100644 --- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java +++ b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java @@ -2415,9 +2415,20 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS * This gets called after the corresponding {@link IConnectorService} connect method finishes. * This method should be overridden if any initialization for the subsystem needs * to occur at this time + *

+ * The default implementation does nothing. */ - public abstract void initializeSubSystem(IProgressMonitor monitor); - + public void initializeSubSystem(IProgressMonitor monitor) { + } + + /** + * Called after the associated {@link IConnectorService} disconnects. + * Override if there is any cleanup to do in the subsystem after disconnecting. + *

+ * The default implementation does nothing. + */ + public void uninitializeSubSystem(IProgressMonitor monitor) { + } /** * Attempt to connect to the remote system when a Shell is not available.