imagej.patcher
Class EssentialLegacyHooks
java.lang.Object
imagej.patcher.LegacyHooks
imagej.patcher.EssentialLegacyHooks
public class EssentialLegacyHooks
- extends LegacyHooks
The base LegacyHooks to be used in the patched ImageJ 1.x.
This is the minimal implementation of LegacyHooks and will be
installed by default after patching in the extension points into ImageJ 1.x.
On its own, it does not allow to override the extension points (such as the
editor) with different implementations; one needs to install different hooks using
the CodeHacker method.
This class is also the perfect base class for all implementations of the
LegacyHooks interface, e.g. to offer "real" extension mechanisms such
as the SciJava-common plugin framework.
- Author:
- Johannes Schindelin
| Methods inherited from class imagej.patcher.LegacyHooks |
addPluginDirectory, autoGenerateConfigFile, autoGenerateConfigFile, createInEditor, debug, dispose, getAppName, getContext, getIconURL, handleExtraPluginJars, installed, interceptRunPlugIn, isLegacyMode, log, newPluginClassLoader, openInEditor, quit, registerImage, runAfterRefreshMenus, showProgress, showProgress, showStatus, unregisterImage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EssentialLegacyHooks
public EssentialLegacyHooks()
error
public void error(Throwable t)
- Description copied from class:
LegacyHooks
- Shows an exception.
- Overrides:
error in class LegacyHooks
- Parameters:
t - the exception
handleNoSuchMethodError
public boolean handleNoSuchMethodError(NoSuchMethodError error)
- Description copied from class:
LegacyHooks
- Extension point to enhance ImageJ 1.x' error reporting upon
NoSuchMethodError.
- Overrides:
handleNoSuchMethodError in class LegacyHooks
- Parameters:
error - the exception to handle
- Returns:
- true if the error was handled by the legacy hook
initialized
public void initialized()
- Description copied from class:
LegacyHooks
- First extension point to run just after ImageJ 1.x spun up.
- Overrides:
initialized in class LegacyHooks
Copyright © 2011–2014 SciJava. All rights reserved.