提交 3efeea88 编写于 作者: A Alexander Fedorov

#2556 editor vertical ruler should show breakpoints

Former-commit-id: 58a91ae2
上级 b0967e8c
......@@ -252,6 +252,12 @@ public class TabbedFolderPageEditor extends TabbedFolderPage implements IDatabas
public TabbedFolderPageEditorSite(MultiPageEditorPart multiPageEditor, IEditorPart editor) {
super(multiPageEditor, editor);
}
@Override
public String getId() {
String id = editorDescriptor.getId();
return id;
}
@NotNull
@Override
......
......@@ -14,4 +14,6 @@ Require-Bundle: org.eclipse.core.runtime,
org.jkiss.dbeaver.core,
org.jkiss.dbeaver.ui,
org.jkiss.dbeaver.debug.core
Export-Package: org.jkiss.dbeaver.debug.ui
Export-Package: org.jkiss.dbeaver.debug.ui,
org.jkiss.dbeaver.debug.ui.actions,
org.jkiss.dbeaver.debug.ui.details
......@@ -23,21 +23,21 @@
point="org.eclipse.core.runtime.adapters">
<factory
adaptableType="org.jkiss.dbeaver.ui.editors.entity.EntityEditor"
class="org.jkiss.dbeaver.debug.internal.ui.actions.DebugActionAdapterFactory">
class="org.jkiss.dbeaver.debug.ui.actions.DebugActionAdapterFactory">
<adapter
type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget">
</adapter>
</factory>
<factory
adaptableType="org.jkiss.dbeaver.ui.editors.entity.EntityEditorInput"
class="org.jkiss.dbeaver.debug.internal.ui.actions.DebugActionAdapterFactory">
class="org.jkiss.dbeaver.debug.ui.actions.DebugActionAdapterFactory">
<adapter
type="org.eclipse.debug.ui.actions.ILaunchable">
</adapter>
</factory>
<factory
adaptableType="org.jkiss.dbeaver.model.navigator.DBNDatabaseObject"
class="org.jkiss.dbeaver.debug.internal.ui.actions.DebugActionAdapterFactory">
class="org.jkiss.dbeaver.debug.ui.actions.DebugActionAdapterFactory">
<adapter
type="org.eclipse.debug.ui.actions.ILaunchable">
</adapter>
......
package org.jkiss.dbeaver.debug.internal.ui.actions;
package org.jkiss.dbeaver.debug.ui.actions;
import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.debug.ui.actions.ILaunchable;
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget;
import org.jkiss.dbeaver.debug.ui.actions.ToggleProcedureBreakpointTarget;
public class DebugActionAdapterFactory implements IAdapterFactory {
......
......@@ -77,4 +77,31 @@
</shortcut>
</extension>
<extension
point="org.eclipse.core.runtime.adapters">
<factory
adaptableType="org.jkiss.dbeaver.ext.postgresql.ui.editors.PostgreSourceViewEditor"
class="org.jkiss.dbeaver.debug.ui.actions.DebugActionAdapterFactory">
<adapter
type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget">
</adapter>
</factory>
</extension>
<extension
point="org.eclipse.ui.editorActions">
<editorContribution
id="org.jkiss.dbeaver.debug.ui.editorContribution"
targetID="postgresql.source.view">
<action
actionID="RulerDoubleClick"
class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
icon="platform:/plugin/org.eclipse.debug.ui/$nl$/icons/full/obj16/brkp_obj.png"
id="org.jkiss.dbeaver.debug.ui.actions.ManageBreakpointRulerAction"
label="Toggle &amp;Breakpoint"
style="push">
</action>
</editorContribution>
</extension>
</plugin>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册