Changeset 82:9c2803aea121
- Timestamp:
- 05/12/08 10:29:26
(7 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Fix Addressbook example and HG ignores
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r76 |
r82 |
|
| 19 | 19 | ^jface/dsss_imports |
|---|
| 20 | 20 | |
|---|
| 21 | | ^dwtexamples/dsss_objs |
|---|
| 22 | | ^dwtexamples/dsss.last |
|---|
| 23 | | ^dwtexamples/dsss_imports |
|---|
| | 21 | ^examples/dsss_objs |
|---|
| | 22 | ^examples/dsss.last |
|---|
| | 23 | ^examples/dsss_imports |
|---|
| 24 | 24 | |
|---|
| 25 | | ^dwtsnippets/dsss_objs |
|---|
| 26 | | ^dwtsnippets/dsss.last |
|---|
| 27 | | ^dwtsnippets/dsss_imports |
|---|
| | 25 | ^snippets/dsss_objs |
|---|
| | 26 | ^snippets/dsss.last |
|---|
| | 27 | ^snippets/dsss_imports |
|---|
| 28 | 28 | |
|---|
| 29 | | ^dwtexamples/simple$ |
|---|
| 30 | | ^dwtexamples/helloworld/HelloWorld[0-9]$ |
|---|
| 31 | | ^dwtexamples/addressbook/AddressBook$ |
|---|
| 32 | | ^dwtexamples/controlexample/ControlExample$ |
|---|
| 33 | | ^dwtexamples/controlexample/CustomControlExample$ |
|---|
| 34 | | ^dwtexamples/texteditor/TextEditor$ |
|---|
| 35 | | ^dwtsnippets/.*/Snippet[0-9]*$ |
|---|
| | 29 | ^examples/simple$ |
|---|
| | 30 | ^examples/helloworld/HelloWorld[0-9]$ |
|---|
| | 31 | ^examples/addressbook/AddressBook$ |
|---|
| | 32 | ^examples/clipboard/ClipboardExample$ |
|---|
| | 33 | ^examples/controlexample/ControlExample$ |
|---|
| | 34 | ^examples/controlexample/CustomControlExample$ |
|---|
| | 35 | ^examples/texteditor/TextEditor$ |
|---|
| | 36 | ^snippets/.*/Snippet[0-9]*$ |
|---|
| 36 | 37 | ^user/torhu_synctest$ |
|---|
| 37 | 38 | ^user/drawingboard/DrawingBoard$ |
|---|
| r80 |
r82 |
|
| 46 | 46 | import examples.addressbook.FindListener; |
|---|
| 47 | 47 | |
|---|
| | 48 | version(JIVE){ |
|---|
| | 49 | import jive.stacktrace; |
|---|
| | 50 | } |
|---|
| 48 | 51 | void main() { |
|---|
| 49 | 52 | Display display = new Display(); |
|---|
| … | … | |
| 109 | 112 | createMenuBar(); |
|---|
| 110 | 113 | |
|---|
| 111 | | searchDialog = new SearchDialog(shell); |
|---|
| | 114 | searchDialog = new SearchDialog(shell, resAddressBook ); |
|---|
| 112 | 115 | searchDialog.setSearchAreaNames(columnNames); |
|---|
| 113 | 116 | searchDialog.setSearchAreaLabel(resAddressBook.getString("Column")); |
|---|
| … | … | |
| 205 | 208 | } |
|---|
| 206 | 209 | private void editEntry(TableItem item) { |
|---|
| 207 | | DataEntryDialog dialog = new DataEntryDialog(shell); |
|---|
| | 210 | DataEntryDialog dialog = new DataEntryDialog(shell, resAddressBook ); |
|---|
| 208 | 211 | dialog.setLabels(columnNames); |
|---|
| 209 | 212 | char[][] values = new char[][table.getColumnCount()]; |
|---|
| … | … | |
| 284 | 287 | } |
|---|
| 285 | 288 | private void newEntry() { |
|---|
| 286 | | DataEntryDialog dialog = new DataEntryDialog(shell); |
|---|
| | 289 | DataEntryDialog dialog = new DataEntryDialog(shell, resAddressBook); |
|---|
| 287 | 290 | dialog.setLabels(columnNames); |
|---|
| 288 | 291 | char[][] data = dialog.open(); |
|---|
| r78 |
r82 |
|
| 42 | 42 | char[][] labels; |
|---|
| 43 | 43 | |
|---|
| 44 | | public this(Shell parent) { |
|---|
| | 44 | public this(Shell parent, ResourceBundle bdl ) { |
|---|
| 45 | 45 | if( resAddressBook is null ){ |
|---|
| 46 | | resAddressBook = ResourceBundle.getBundle("examples_addressbook"); |
|---|
| | 46 | resAddressBook = bdl;//ResourceBundle.getBundle("examples_addressbook"); |
|---|
| 47 | 47 | } |
|---|
| 48 | 48 | shell = new Shell(parent, DWT.DIALOG_TRIM | DWT.PRIMARY_MODAL); |
|---|
| r78 |
r82 |
|
| 60 | 60 | * The shell that is the parent of the dialog. |
|---|
| 61 | 61 | */ |
|---|
| 62 | | public this(Shell parent) { |
|---|
| | 62 | public this(Shell parent, ResourceBundle bdl ) { |
|---|
| 63 | 63 | if( resAddressBook is null ){ |
|---|
| 64 | | resAddressBook = ResourceBundle.getBundle("examples_addressbook"); |
|---|
| | 64 | resAddressBook = bdl;//ResourceBundle.getBundle("examples_addressbook"); |
|---|
| 65 | 65 | } |
|---|
| 66 | 66 | shell = new Shell(parent, DWT.CLOSE | DWT.BORDER | DWT.TITLE); |
|---|