use of org.eclipse.jface.action.IToolBarManager in project cubrid-manager by CUBRID.
the class BrokerStatusHistoryViewPart method makeActions.
/**
* This method is to create actions at tool bar
*
*/
private void makeActions() {
Action settingAction = new Action() {
public void run() {
chartPart.fireChartSetting();
}
};
settingAction.setText(Messages.chartSettingTxt);
settingAction.setToolTipText(Messages.chartSettingTxt);
settingAction.setImageDescriptor(CubridManagerUIPlugin.getImageDescriptor("icons/action/setting-small.png"));
IActionBars bars = getViewSite().getActionBars();
IToolBarManager manager = bars.getToolBarManager();
manager.add(settingAction);
}
use of org.eclipse.jface.action.IToolBarManager in project cubrid-manager by CUBRID.
the class BrokerStatusMonitorViewPart method makeActions.
/**
* This method is to create actions at tool bar
*
*/
private void makeActions() {
Action settingAction = new Action() {
public void run() {
chartPart.fireChartSetting();
}
};
settingAction.setText(Messages.chartSettingTxt);
settingAction.setToolTipText(Messages.chartSettingTxt);
settingAction.setImageDescriptor(CubridManagerUIPlugin.getImageDescriptor("icons/action/setting-small.png"));
final IActionBars bars = getViewSite().getActionBars();
IToolBarManager manager = bars.getToolBarManager();
manager.add(settingAction);
RecordAction recordAction = new RecordAction();
recordAction.setRecorder(this);
recordAction.setPrepareTooltip(Messages.brokerMonitorStartRecordTooltip);
recordAction.setRecordTooltip(Messages.brokerMonitorRecordingTooltip);
recordAction.setImageDescriptor(CubridManagerUIPlugin.getImageDescriptor("icons/monitor/prepare_record.png"));
recordAction.setToolTipText(Messages.brokerMonitorStartRecordTooltip);
manager.add(recordAction);
}
use of org.eclipse.jface.action.IToolBarManager in project tdi-studio-se by Talend.
the class TalendPaletteHelper method updatePaletteActions.
private static void updatePaletteActions(IActionBars actionBars, IAction action, boolean isTalendEditor) {
IToolBarManager toolBarManager = actionBars.getToolBarManager();
IContributionItem cItem = toolBarManager.find(action.getClass().getCanonicalName());
if (cItem == null) {
if (isTalendEditor) {
toolBarManager.add(action);
}
} else {
if (!isTalendEditor) {
toolBarManager.remove(new ActionContributionItem(action));
}
}
}
use of org.eclipse.jface.action.IToolBarManager in project tdi-studio-se by Talend.
the class HeapHistogramPage method updateLocalToolBar.
/**
* Updates the local tool bar.
*
* @param activated <tt>true</tt> if this tab item is activated
*/
void updateLocalToolBar(boolean activated) {
IToolBarManager manager = section.getActionBars().getToolBarManager();
if (activated) {
addToolBarActions(manager);
} else {
removeToolBarActions(manager);
}
manager.update(false);
section.getActionBars().updateActionBars();
}
use of org.eclipse.jface.action.IToolBarManager in project tdi-studio-se by Talend.
the class AbstractJvmPropertySection method addToolBarActions.
/**
* Adds the tool bar actions.
*/
private void addToolBarActions() {
IToolBarManager toolBarManager = getToolBarManager();
if (toolBarManager != null) {
addToolBarActions(toolBarManager);
toolBarManager.update(false);
updateActionBars();
}
}
Aggregations