curStack.setMinimized(false);
}
public void initToolBarManager(final ToolBarManager mgr) {
// Set up the ToolBar with a restore button
IContributionItem restoreContrib = new ContributionItem() {
public void fill(ToolBar parent, int index) {
ToolItem restoreItem = new ToolItem(mgr.getControl(), SWT.PUSH, index);
Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_RESTORE_TRIMPART);
restoreItem.setImage(tbImage);
String menuTip = WorkbenchMessages.StandardSystemToolbar_Restore;
restoreItem.setToolTipText(menuTip);
restoreItem.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
restoreToPresentation();
}
public void widgetSelected(SelectionEvent e) {
restoreToPresentation();
}
});
}
};
mgr.add(restoreContrib);
// Set up the ToolBar with a button represing the Editor Area
IContributionItem eaContrib = new ContributionItem() {
public void fill(ToolBar parent, int index) {
ToolItem editorAreaItem = new ToolItem(mgr.getControl(), SWT.PUSH, index);
Image tbImage = WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_EDITOR_TRIMPART);
editorAreaItem.setImage(tbImage);
String menuTip = WorkbenchMessages.EditorArea_Tooltip;