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();
}
}
Aggregations