mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
XDebugger: action toolbar in Variables view
This commit is contained in:
@@ -702,6 +702,9 @@
|
||||
<reference ref="XDebugger.AddToWatches"/>
|
||||
</group>
|
||||
|
||||
<group id="XDebugger.Variables.Tree.Toolbar">
|
||||
</group>
|
||||
|
||||
<group id="XDebugger.Watches.Tree.Popup">
|
||||
<reference ref="XDebugger.NewWatch"/>
|
||||
<reference ref="XDebugger.RemoveWatch"/>
|
||||
|
||||
@@ -43,6 +43,7 @@ public interface XDebuggerActions {
|
||||
@NonNls String TOOL_WINDOW_LEFT_TOOLBAR_GROUP = "XDebugger.ToolWindow.LeftToolbar";
|
||||
@NonNls String EVALUATE_DIALOG_TREE_POPUP_GROUP = "XDebugger.Evaluation.Dialog.Tree.Popup";
|
||||
@NonNls String INSPECT_TREE_POPUP_GROUP = "XDebugger.Inspect.Tree.Popup";
|
||||
@NonNls String VARIABLES_TREE_TOOLBAR_GROUP = "XDebugger.Variables.Tree.Toolbar";
|
||||
@NonNls String VARIABLES_TREE_POPUP_GROUP = "XDebugger.Variables.Tree.Popup";
|
||||
@NonNls String WATCHES_TREE_POPUP_GROUP = "XDebugger.Watches.Tree.Popup";
|
||||
@NonNls String WATCHES_TREE_TOOLBAR_GROUP = "XDebugger.Watches.Tree.Toolbar";
|
||||
|
||||
@@ -86,6 +86,10 @@ public class XVariablesView extends XDebugViewBase {
|
||||
}
|
||||
}
|
||||
|
||||
public XDebuggerTree getTree() {
|
||||
return myDebuggerTreePanel.getTree();
|
||||
}
|
||||
|
||||
public JComponent getPanel() {
|
||||
return myDebuggerTreePanel.getMainPanel();
|
||||
}
|
||||
|
||||
@@ -84,6 +84,10 @@ public class XDebugSessionTab extends DebuggerSessionTabBase {
|
||||
XDebuggerBundle.message("debugger.session.tab.variables.title"),
|
||||
XDebuggerUIConstants.VARIABLES_TAB_ICON, null);
|
||||
result.setCloseable(false);
|
||||
|
||||
ActionGroup group = getActionGroup(XDebuggerActions.VARIABLES_TREE_TOOLBAR_GROUP);
|
||||
result.setActions(group, ActionPlaces.DEBUGGER_TOOLBAR, variablesView.getTree());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user