Mercurial > projects > dwt2
comparison org.eclipse.jface/src/org/eclipse/jface/internal/provisional/action/IToolBarManager2.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
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 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module org.eclipse.jface.internal.provisional.action.IToolBarManager2; | |
14 | |
15 | |
16 import org.eclipse.swt.widgets.Composite; | |
17 import org.eclipse.swt.widgets.Control; | |
18 import org.eclipse.swt.widgets.ToolBar; | |
19 import org.eclipse.jface.action.IContributionManagerOverrides; | |
20 import org.eclipse.jface.action.IToolBarManager; | |
21 import org.eclipse.jface.util.IPropertyChangeListener; | |
22 | |
23 import java.lang.all; | |
24 import java.util.Set; | |
25 | |
26 /** | |
27 * The <code>IToolBarManager2</code> extends <code>IToolBarManager</code> to | |
28 * allow clients to be isolated from the actual kind of SWT control used by the | |
29 * manager. | |
30 * <p> | |
31 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as | |
32 * part of a work in progress. There is a guarantee neither that this API will | |
33 * work nor that it will remain the same. Please do not use this API without | |
34 * consulting with the Platform/UI team. | |
35 * </p> | |
36 * | |
37 * @since 3.2 | |
38 */ | |
39 public interface IToolBarManager2 : IToolBarManager { | |
40 | |
41 /** | |
42 * The property id for changes to the control's layout | |
43 */ | |
44 public static final String PROP_LAYOUT = "PROP_LAYOUT"; //$NON-NLS-1$ | |
45 | |
46 /** | |
47 * Creates and returns this manager's toolbar control. Does not create a new | |
48 * control if one already exists. | |
49 * | |
50 * @param parent | |
51 * the parent control | |
52 * @return the toolbar control | |
53 */ | |
54 public ToolBar createControl(Composite parent); | |
55 | |
56 /** | |
57 * Creates and returns this manager's control. Does not create a new control | |
58 * if one already exists. | |
59 * | |
60 * @param parent | |
61 * the parent control | |
62 * @return the control | |
63 */ | |
64 public Control createControl2(Composite parent); | |
65 | |
66 /** | |
67 * Returns the toolbar control for this manager. | |
68 * | |
69 * @return the toolbar control, or <code>null</code> if none | |
70 */ | |
71 public ToolBar getControl(); | |
72 | |
73 /** | |
74 * Returns the control for this manager. | |
75 * | |
76 * @return the control, or <code>null</code> if none | |
77 */ | |
78 public Control getControl2(); | |
79 | |
80 /** | |
81 * Disposes the resources for this manager. | |
82 */ | |
83 public void dispose(); | |
84 | |
85 /** | |
86 * Returns the item count of the control used by this manager. | |
87 * | |
88 * @return the number of items in the control | |
89 */ | |
90 public int getItemCount(); | |
91 | |
92 /** | |
93 * Registers a property change listner with this manager. | |
94 * | |
95 * @param listener | |
96 */ | |
97 public void addPropertyChangeListener(IPropertyChangeListener listener); | |
98 | |
99 /** | |
100 * Removes a property change listner from this manager. | |
101 * | |
102 * @param listener | |
103 */ | |
104 public void removePropertyChangeListener(IPropertyChangeListener listener); | |
105 | |
106 /** | |
107 * Sets the overrides for this contribution manager | |
108 * | |
109 * @param newOverrides | |
110 * the overrides for the items of this manager | |
111 */ | |
112 public void setOverrides(IContributionManagerOverrides newOverrides); | |
113 | |
114 } |