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.application;
11:
12: import org.eclipse.jface.action.IToolBarManager;
13: import org.eclipse.jface.internal.provisional.action.IToolBarContributionItem;
14: import org.eclipse.ui.application.IActionBarConfigurer;
15:
16: /**
17: * Extends <code>IActionBarConfigurer</code> with API to allow the advisor to
18: * be decoupled from the implementation types for tool bar managers and tool bar
19: * contribution items.
20: *
21: * @since 3.2
22: */
23: public interface IActionBarConfigurer2 extends IActionBarConfigurer {
24:
25: /**
26: * Creates a tool bar manager for the workbench window's tool bar. The
27: * action bar advisor should use this factory method rather than creating a
28: * <code>ToolBarManager</code> directly.
29: *
30: * @return the tool bar manager
31: */
32: public IToolBarManager createToolBarManager();
33:
34: /**
35: * Creates a toolbar contribution item for the window's tool bar. The action
36: * bar advisor should use this factory method rather than creating a
37: * <code>ToolBarContributionItem</code> directly.
38: *
39: * @param toolBarManager
40: * a tool bar manager for the workbench window's tool bar
41: * @param id
42: * the id of the contribution
43: * @return the tool bar contribution item
44: */
45: public IToolBarContributionItem createToolBarContributionItem(
46: IToolBarManager toolBarManager, String id);
47:
48: }
|