use of com.cubrid.common.ui.common.action.OpenTargetAction in project cubrid-manager by CUBRID.
the class CubridQueryNavigatorView method buildToolBar.
/**
* Build the view toolbar
*
* @param toolBarManager IToolBarManager
*/
protected void buildToolBar(IToolBarManager toolBarManager) {
OpenTargetAction openObjectTabAction = (OpenTargetAction) ActionManager.getInstance().getAction(OpenTargetAction.ID);
toolBarManager.add(openObjectTabAction);
SwitchGroupModeAction grpSwitchAction = (SwitchGroupModeAction) ActionManager.getInstance().getAction(SwitchGroupModeAction.ID);
grpSwitchAction.setNavigatorView(this);
grpSwitchAction.init();
toolBarManager.add(grpSwitchAction);
GroupSettingAction groupSettingAction = (GroupSettingAction) ActionManager.getInstance().getAction(GroupSettingAction.ID);
groupSettingAction.setNavigatorView(this);
toolBarManager.add(groupSettingAction);
ExpandTreeItemAction expandAction = (ExpandTreeItemAction) ActionManager.getInstance().getAction(ExpandTreeItemAction.ID);
expandAction.setTargetTreeViewer(tv);
toolBarManager.add(expandAction);
UnExpandTreeItemAction unexpandAction = (UnExpandTreeItemAction) ActionManager.getInstance().getAction(UnExpandTreeItemAction.ID);
unexpandAction.setTv(tv);
toolBarManager.add(unexpandAction);
}
Aggregations