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