diff --git a/plugins/org.jkiss.dbeaver.debug.ui/plugin.xml b/plugins/org.jkiss.dbeaver.debug.ui/plugin.xml index e90a24c68bb6d9fb4c38adffb909dea7a2e4e782..1de482f46cf34985c84536e032f837760c0f2a18 100644 --- a/plugins/org.jkiss.dbeaver.debug.ui/plugin.xml +++ b/plugins/org.jkiss.dbeaver.debug.ui/plugin.xml @@ -19,15 +19,6 @@ --> - - - - - + + + + [] CLASSES = new Class[]{IToggleBreakpointsTarget.class}; + private static final Class[] CLASSES = new Class[] { ILaunchable.class, IToggleBreakpointsTarget.class }; + + private static final ILaunchable LAUNCHABLE = new ILaunchable() { + }; private final IToggleBreakpointsTarget toggleBreakpointTarget = new ToggleSqlBreakpointTarget(); @@ -14,6 +18,9 @@ public class DebugActionAdapterFactory implements IAdapterFactory { @SuppressWarnings("unchecked") public T getAdapter(Object adaptableObject, Class adapterType) { + if (adapterType == ILaunchable.class) { + return (T) LAUNCHABLE; + } if (adapterType == IToggleBreakpointsTarget.class) { return (T) toggleBreakpointTarget; }