Search in sources :

Example 1 with ShowStandardAction

use of org.talend.repository.ui.actions.ShowStandardAction in project tdi-studio-se by Talend.

the class TalendPaletteView method createPartControl.

@Override
public void createPartControl(Composite parent) {
    super.createPartControl(parent);
    IToolBarManager toolMana = getViewSite().getActionBars().getToolBarManager();
    ShowStandardAction showStandardAction = ShowStandardAction.getInstance();
    ShowFavoriteAction showFavoriteAction = ShowFavoriteAction.getInstance();
    toolMana.add(showStandardAction);
    toolMana.add(showFavoriteAction);
    if (ShowFavoriteAction.state) {
        showStandardAction.doSetEnable();
    }
}
Also used : IToolBarManager(org.eclipse.jface.action.IToolBarManager) ShowFavoriteAction(org.talend.repository.ui.actions.ShowFavoriteAction) ShowStandardAction(org.talend.repository.ui.actions.ShowStandardAction)

Aggregations

IToolBarManager (org.eclipse.jface.action.IToolBarManager)1 ShowFavoriteAction (org.talend.repository.ui.actions.ShowFavoriteAction)1 ShowStandardAction (org.talend.repository.ui.actions.ShowStandardAction)1