Search in sources :

Example 1 with LinksToolbarItem

use of org.talend.dataprofiler.rcp.intro.linksbar.LinksToolbarItem in project tdq-studio-se by Talend.

the class ApplicationActionBarAdvisor method fillCoolBar.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.ui.application.ActionBarAdvisor#fillCoolBar(org.eclipse.jface.action.ICoolBarManager)
     */
@Override
protected void fillCoolBar(ICoolBarManager coolBar) {
    IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
    // $NON-NLS-1$
    coolBar.add(new ToolBarContributionItem(toolbar, "switch_persp"));
    toolbar.add(new ChangePerspectiveAction(true));
    toolbar.add(ActionFactory.SAVE.create(window));
    // add feature:15174
    // Workbench3xImplementation4CoolBar.createLinksToolbarItem(coolBar);
    IToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
    toolBarManager.add(new LinksToolbarItem());
    coolBar.add(new ToolBarContributionItem(toolBarManager, LinksToolbarItem.COOLITEM_LINKS_ID));
}
Also used : ToolBarContributionItem(org.eclipse.jface.action.ToolBarContributionItem) IToolBarManager(org.eclipse.jface.action.IToolBarManager) ChangePerspectiveAction(org.talend.dataprofiler.core.ui.perspective.ChangePerspectiveAction) IToolBarManager(org.eclipse.jface.action.IToolBarManager) ToolBarManager(org.eclipse.jface.action.ToolBarManager) LinksToolbarItem(org.talend.dataprofiler.rcp.intro.linksbar.LinksToolbarItem)

Aggregations

IToolBarManager (org.eclipse.jface.action.IToolBarManager)1 ToolBarContributionItem (org.eclipse.jface.action.ToolBarContributionItem)1 ToolBarManager (org.eclipse.jface.action.ToolBarManager)1 ChangePerspectiveAction (org.talend.dataprofiler.core.ui.perspective.ChangePerspectiveAction)1 LinksToolbarItem (org.talend.dataprofiler.rcp.intro.linksbar.LinksToolbarItem)1