Package de.aristaflow.adept2.ui.swtgui
Class SwtHtmlContext.BrowserCloseTask
java.lang.Object
de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask<RuntimeException>
de.aristaflow.adept2.ui.swtgui.SwtHtmlContext.BrowserCloseTask
- All Implemented Interfaces:
CleanupTask<RuntimeException>
- Enclosing class:
- SwtHtmlContext
protected static final class SwtHtmlContext.BrowserCloseTask
extends CleanupTask.AbstractCleanupTask<RuntimeException>
The clean-up task for closing the browser.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.aristaflow.adept2.util.CleanupTask
CleanupTask.AbstractCleanupTask<EX extends Exception>, CleanupTask.AtomicCloseTask, CleanupTask.CloseAndResetTask, CleanupTask.MutableCloseTask -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.lang3.mutable.Mutable<org.eclipse.swt.browser.Browser>Fields inherited from class de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask
descriptor, logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates new clean-up for closing the browser of the designatedSwtUrlContext. -
Method Summary
Methods inherited from class de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask
getDescriptor
-
Field Details
-
browser
protected final org.apache.commons.lang3.mutable.Mutable<org.eclipse.swt.browser.Browser> browser
-
-
Constructor Details
-
BrowserCloseTask
Creates new clean-up for closing the browser of the designatedSwtUrlContext.- Parameters:
obj- TheSwtUrlContextof which to close the browser.
-
-
Method Details
-
cleanup
public void cleanup(boolean explicit) Description copied from interface:CleanupTaskPerforms the actual clean-up. This method is only called byCleanupand must NOT be called directly!- Parameters:
explicit- Whether the clean-up was triggered explicitly viaCleanup.clean(). Otherwise it was triggered implicitly as a post-mortem action by the object becoming phantom reachable.
-