Changeset 82:9c2803aea121

Show
Ignore:
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
  • .hgignore

    r76 r82  
    1919^jface/dsss_imports 
    2020 
    21 ^dwtexamples/dsss_objs 
    22 ^dwtexamples/dsss.last 
    23 ^dwtexamples/dsss_imports 
     21^examples/dsss_objs 
     22^examples/dsss.last 
     23^examples/dsss_imports 
    2424 
    25 ^dwtsnippets/dsss_objs 
    26 ^dwtsnippets/dsss.last 
    27 ^dwtsnippets/dsss_imports 
     25^snippets/dsss_objs 
     26^snippets/dsss.last 
     27^snippets/dsss_imports 
    2828 
    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]*$ 
    3637^user/torhu_synctest$ 
    3738^user/drawingboard/DrawingBoard$ 
  • examples/addressbook/AddressBook.d

    r80 r82  
    4646import examples.addressbook.FindListener; 
    4747 
     48version(JIVE){ 
     49    import jive.stacktrace; 
     50} 
    4851void main() { 
    4952    Display display = new Display(); 
     
    109112    createMenuBar(); 
    110113 
    111     searchDialog = new SearchDialog(shell); 
     114    searchDialog = new SearchDialog(shell, resAddressBook ); 
    112115    searchDialog.setSearchAreaNames(columnNames); 
    113116    searchDialog.setSearchAreaLabel(resAddressBook.getString("Column")); 
     
    205208} 
    206209private void editEntry(TableItem item) { 
    207     DataEntryDialog dialog = new DataEntryDialog(shell); 
     210    DataEntryDialog dialog = new DataEntryDialog(shell, resAddressBook ); 
    208211    dialog.setLabels(columnNames); 
    209212    char[][] values = new char[][table.getColumnCount()]; 
     
    284287} 
    285288private void newEntry() { 
    286     DataEntryDialog dialog = new DataEntryDialog(shell); 
     289    DataEntryDialog dialog = new DataEntryDialog(shell, resAddressBook); 
    287290    dialog.setLabels(columnNames); 
    288291    char[][] data = dialog.open(); 
  • examples/addressbook/DataEntryDialog.d

    r78 r82  
    4242    char[][] labels; 
    4343 
    44 public this(Shell parent) { 
     44public this(Shell parent, ResourceBundle bdl ) { 
    4545    if( resAddressBook is null ){ 
    46         resAddressBook = ResourceBundle.getBundle("examples_addressbook"); 
     46        resAddressBook = bdl;//ResourceBundle.getBundle("examples_addressbook"); 
    4747    } 
    4848    shell = new Shell(parent, DWT.DIALOG_TRIM | DWT.PRIMARY_MODAL); 
  • examples/addressbook/SearchDialog.d

    r78 r82  
    6060 *          The shell that is the parent of the dialog. 
    6161 */ 
    62 public this(Shell parent) { 
     62public this(Shell parent, ResourceBundle bdl ) { 
    6363    if( resAddressBook is null ){ 
    64         resAddressBook = ResourceBundle.getBundle("examples_addressbook"); 
     64        resAddressBook = bdl;//ResourceBundle.getBundle("examples_addressbook"); 
    6565    } 
    6666    shell = new Shell(parent, DWT.CLOSE | DWT.BORDER | DWT.TITLE);