Mercurial > projects > dwt2
comparison org.eclipse.jface/src/org/eclipse/jface/internal/provisional/action/ToolBarContributionItem2.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 | |
14 module org.eclipse.jface.internal.provisional.action.ToolBarContributionItem2; | |
15 | |
16 import org.eclipse.jface.internal.provisional.action.IToolBarContributionItem; | |
17 import org.eclipse.jface.action.IToolBarManager; | |
18 import org.eclipse.jface.action.IContributionManager; | |
19 | |
20 import org.eclipse.jface.action.IToolBarManager; | |
21 import org.eclipse.jface.action.ToolBarContributionItem; | |
22 | |
23 import java.lang.all; | |
24 import java.util.Set; | |
25 | |
26 /** | |
27 * Extends <code>ToolBarContributionItem</code> to implement <code>IToolBarContributionItem</code>. | |
28 * | |
29 * <p> | |
30 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as | |
31 * part of a work in progress. There is a guarantee neither that this API will | |
32 * work nor that it will remain the same. Please do not use this API without | |
33 * consulting with the Platform/UI team. | |
34 * </p> | |
35 * | |
36 * @since 3.2 | |
37 */ | |
38 public class ToolBarContributionItem2 : ToolBarContributionItem, | |
39 IToolBarContributionItem { | |
40 | |
41 // delegate to super | |
42 public override int getCurrentHeight(){ | |
43 return super.getCurrentHeight(); | |
44 } | |
45 public override int getCurrentWidth(){ | |
46 return super.getCurrentWidth(); | |
47 } | |
48 public override int getMinimumItemsToShow(){ | |
49 return super.getMinimumItemsToShow(); | |
50 } | |
51 public override bool getUseChevron(){ | |
52 return super.getUseChevron(); | |
53 } | |
54 public override void setCurrentHeight(int currentHeight){ | |
55 super.setCurrentHeight(currentHeight); | |
56 } | |
57 public override void setCurrentWidth(int currentWidth){ | |
58 super.setCurrentWidth(currentWidth); | |
59 } | |
60 public override void setMinimumItemsToShow(int minimumItemsToShow){ | |
61 super.setMinimumItemsToShow(minimumItemsToShow); | |
62 } | |
63 public override void setUseChevron(bool value){ | |
64 super.setUseChevron(value); | |
65 } | |
66 public override IToolBarManager getToolBarManager(){ | |
67 return super.getToolBarManager(); | |
68 } | |
69 public override IContributionManager getParent(){ | |
70 return super.getParent(); | |
71 } | |
72 | |
73 | |
74 /** | |
75 * | |
76 */ | |
77 public this() { | |
78 super(); | |
79 } | |
80 | |
81 /** | |
82 * @param toolBarManager | |
83 */ | |
84 public this(IToolBarManager toolBarManager) { | |
85 super(toolBarManager); | |
86 } | |
87 | |
88 /** | |
89 * @param toolBarManager | |
90 * @param id | |
91 */ | |
92 public this(IToolBarManager toolBarManager, String id) { | |
93 super(toolBarManager, id); | |
94 } | |
95 | |
96 } |