KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > provisional > application > IActionBarConfigurer2


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.application;
13
14 import org.eclipse.jface.action.IToolBarManager;
15 import org.eclipse.jface.internal.provisional.action.IToolBarContributionItem;
16 import org.eclipse.ui.application.IActionBarConfigurer;
17
18 /**
19  * Extends <code>IActionBarConfigurer</code> with API to allow the advisor to
20  * be decoupled from the implementation types for tool bar managers and tool bar
21  * contribution items.
22  *
23  * @since 3.2
24  */

25 public interface IActionBarConfigurer2 extends IActionBarConfigurer {
26     
27     /**
28      * Creates a tool bar manager for the workbench window's tool bar. The
29      * action bar advisor should use this factory method rather than creating a
30      * <code>ToolBarManager</code> directly.
31      *
32      * @return the tool bar manager
33      */

34     public IToolBarManager createToolBarManager();
35
36     /**
37      * Creates a toolbar contribution item for the window's tool bar. The action
38      * bar advisor should use this factory method rather than creating a
39      * <code>ToolBarContributionItem</code> directly.
40      *
41      * @param toolBarManager
42      * a tool bar manager for the workbench window's tool bar
43      * @param id
44      * the id of the contribution
45      * @return the tool bar contribution item
46      */

47     public IToolBarContributionItem createToolBarContributionItem(
48             IToolBarManager toolBarManager, String JavaDoc id);
49
50 }
51
Popular Tags