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.
  • Field Details

    • browser

      protected final org.apache.commons.lang3.mutable.Mutable<org.eclipse.swt.browser.Browser> browser
  • Constructor Details

    • BrowserCloseTask

      protected BrowserCloseTask(SwtHtmlContext obj)
      Creates new clean-up for closing the browser of the designated SwtUrlContext.
      Parameters:
      obj - The SwtUrlContext of which to close the browser.
  • Method Details

    • cleanup

      public void cleanup(boolean explicit)
      Description copied from interface: CleanupTask
      Performs the actual clean-up. This method is only called by Cleanup and must NOT be called directly!
      Parameters:
      explicit - Whether the clean-up was triggered explicitly via Cleanup.clean(). Otherwise it was triggered implicitly as a post-mortem action by the object becoming phantom reachable.