Changeset 59:6fb20f548c46
- Timestamp:
- 04/10/08 03:32:17
(8 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Fix compile error
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r58 |
r59 |
|
| 49 | 49 | [dwtsnippets/menu/Snippet152.d] |
|---|
| 50 | 50 | [dwtsnippets/menu/Snippet286.d] |
|---|
| | 51 | [dwtsnippets/program/Snippet32.d] |
|---|
| 51 | 52 | [dwtsnippets/sash/Snippet107.d] |
|---|
| 52 | 53 | [dwtsnippets/sashform/Snippet109.d] |
|---|
| … | … | |
| 70 | 71 | [dwtsnippets/tree/Snippet8.d] |
|---|
| 71 | 72 | [dwtsnippets/tree/Snippet15.d] |
|---|
| 72 | | [dwtsnippets/program/Snippet32.d] |
|---|
| 73 | 73 | |
|---|
| 74 | 74 | [user/dragdrop/texttolabel.d] |
|---|
| … | … | |
| 79 | 79 | version(DwtAddons){ |
|---|
| 80 | 80 | [dwtexamples/sleak/SleakExample.d] |
|---|
| | 81 | [jface/ActionAndStatusbar.d] |
|---|
| 81 | 82 | } |
|---|
| 82 | 83 | |
|---|
| … | … | |
| 121 | 122 | |
|---|
| 122 | 123 | |
|---|
| 123 | | [jface/ActionAndStatusbar.d] |
|---|
| 124 | | |
|---|
| 125 | | |
|---|
| r0 |
r59 |
|
| 26 | 26 | |
|---|
| 27 | 27 | import dwt.dwthelper.ResourceBundle; |
|---|
| 28 | | import dwt.dwthelper.Integer; |
|---|
| | 28 | import dwt.dwthelper.utils; |
|---|
| 29 | 29 | |
|---|
| 30 | 30 | /** |
|---|
| r24 |
r59 |
|
| 12 | 12 | *******************************************************************************/ |
|---|
| 13 | 13 | module dwt.snippets.tray.Snippet143; |
|---|
| 14 | | |
|---|
| | 14 | |
|---|
| 15 | 15 | /* |
|---|
| 16 | 16 | * Tray example snippet: place an icon with a popup menu on the system tray |
|---|
| … | … | |
| 18 | 18 | * For a list of all DWT example snippets see |
|---|
| 19 | 19 | * http://www.eclipse.org/swt/snippets/ |
|---|
| 20 | | * |
|---|
| | 20 | * |
|---|
| 21 | 21 | * @since 3.0 |
|---|
| 22 | 22 | */ |
|---|
| … | … | |
| 42 | 42 | Image image = new Image (display, 16, 16); |
|---|
| 43 | 43 | final Tray tray = display.getSystemTray (); |
|---|
| 44 | | if (tray == null) { |
|---|
| | 44 | if (tray is null) { |
|---|
| 45 | 45 | Stdout.formatln ("The system tray is not available"); |
|---|
| 46 | 46 | } else { |
|---|
| r58 |
r59 |
|
| 11 | 11 | Frank Benoit <benoit@tionex.de> |
|---|
| 12 | 12 | */ |
|---|
| 13 | | module jfacestatusbar; |
|---|
| | 13 | module jface.ActionAndStatusbar; |
|---|
| 14 | 14 | |
|---|
| 15 | 15 | import dwtx.jface.action.Action; |
|---|
| … | … | |
| 32 | 32 | |
|---|
| 33 | 33 | void main() { |
|---|
| 34 | | Ch4_Contributions swin = new Ch4_Contributions(); |
|---|
| | 34 | auto swin = new ActionAndStatusbar(); |
|---|
| 35 | 35 | swin.setBlockOnOpen(true); |
|---|
| 36 | 36 | swin.open(); |
|---|
| … | … | |
| 38 | 38 | } |
|---|
| 39 | 39 | |
|---|
| 40 | | public class Ch4_Contributions : ApplicationWindow { |
|---|
| | 40 | public class ActionAndStatusbar : ApplicationWindow { |
|---|
| 41 | 41 | StatusLineManager slm; |
|---|
| 42 | 42 | |
|---|
| 43 | | Ch4_StatusAction status_action; |
|---|
| | 43 | StatusAction status_action; |
|---|
| 44 | 44 | |
|---|
| 45 | 45 | ActionContributionItem aci; |
|---|
| … | … | |
| 48 | 48 | super(null); |
|---|
| 49 | 49 | slm = new StatusLineManager(); |
|---|
| 50 | | status_action = new Ch4_StatusAction(slm); |
|---|
| | 50 | status_action = new StatusAction(slm); |
|---|
| 51 | 51 | aci = new ActionContributionItem(status_action); |
|---|
| 52 | 52 | addStatusLine(); |
|---|
| … | … | |
| 81 | 81 | } |
|---|
| 82 | 82 | |
|---|
| 83 | | class Ch4_StatusAction : Action { |
|---|
| | 83 | class StatusAction : Action { |
|---|
| 84 | 84 | StatusLineManager statman; |
|---|
| 85 | 85 | |
|---|
| … | … | |
| 92 | 92 | setImageDescriptor(ImageDescriptor.createFromFile( |
|---|
| 93 | 93 | getImportData!("eclipse-icon-red-16.png"))); |
|---|
| 94 | | //getImportData!("cancel.gif"))); |
|---|
| 95 | 94 | } |
|---|
| 96 | 95 | |
|---|