1 /******************************************************************************* 2 * Copyright (c) 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 ******************************************************************************/ 11 12 package org.eclipse.ui.internal.provisional.presentations; 13 14 import org.eclipse.jface.action.IToolBarManager; 15 import org.eclipse.jface.internal.provisional.action.ICoolBarManager2; 16 import org.eclipse.jface.internal.provisional.action.IToolBarContributionItem; 17 import org.eclipse.jface.internal.provisional.action.IToolBarManager2; 18 19 /** 20 * The intention of this class is to allow for replacing the implementation of 21 * the cool bar and tool bars in the workbench. 22 * <p> 23 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as 24 * part of a work in progress. There is a guarantee neither that this API will 25 * work nor that it will remain the same. Please do not use this API without 26 * consulting with the Platform/UI team. 27 * </p> 28 * 29 * @since 3.2 30 */ 31 public interface IActionBarPresentationFactory { 32 33 /** 34 * Creates the cool bar manager for the window's tool bar area. 35 * 36 * @return the cool bar manager 37 */ 38 public ICoolBarManager2 createCoolBarManager(); 39 40 /** 41 * Creates a tool bar manager for window's tool bar area. 42 * 43 * @return the tool bar manager 44 */ 45 public IToolBarManager2 createToolBarManager(); 46 47 /** 48 * Creates a tool bar manager for a view's tool bar. 49 * 50 * @return the tool bar manager 51 */ 52 public IToolBarManager2 createViewToolBarManager(); 53 54 /** 55 * Creates a toolbar contribution item for a window toolbar manager to be 56 * added to the window's cool bar. 57 * 58 * @param toolBarManager 59 * the tool bar manager 60 * @param id 61 * the id of the contribution 62 * @return the toolbar contribution item 63 */ 64 public IToolBarContributionItem createToolBarContributionItem( 65 IToolBarManager toolBarManager, String id); 66 67 } 68