Changeset 754

Show
Ignore:
Timestamp:
06/26/07 14:14:33 (2 years ago)
Author:
nozawa
Message:

The initial input is set by the ComponentsFactory?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugins/org.jalcedo.client.examples/src/org/jalcedo/client/examples/ItemComponentsFactory.java

    r710 r754  
    6363        listComposite.getListViewer().setContentProvider(contentProvider); 
    6464        listComposite.getListViewer().setLabelProvider(contentProvider); 
     65        listComposite.getListViewer().setInput(dataSource.findList().toArray()); 
    6566         
    6667        /*=<%=fetchActionName%>*/ItemFetchAction/*-*/ fetchAction = new /*=<%=fetchActionName%>*/ItemFetchAction/*-*/(); 
  • trunk/plugins/org.jalcedo.client.examples/src/org/jalcedo/client/examples/views/ItemView.java

    r749 r754  
    4545         
    4646        // TODO set initial values. 
    47       listComposite.getListViewer().setInput(null); 
     47//        listComposite.getListViewer().setInput(null); 
    4848         
    4949        Realm.runWithDefault(SWTObservables.getRealm(parent.getDisplay()), new Runnable() { 
  • trunk/plugins/org.jalcedo.generator.client.beans/src/org/jalcedo/generator/client/beans/internal/model/ComponentsFactoryGenerator.java

    r710 r754  
    5353  protected final String TEXT_16 = "();" + NL + "\t\tcontentProvider.setDataSource(dataSource);" + NL + "\t\tapplicationEventPublisher.addListener(contentProvider);" + NL + "\t\t" + NL + "\t\t"; 
    5454  protected final String TEXT_17 = " listComposite = new "; 
    55   protected final String TEXT_18 = "(parent, style);" + NL + "\t\tlistComposite.getListViewer().setContentProvider(contentProvider);" + NL + "\t\tlistComposite.getListViewer().setLabelProvider(contentProvider);" + NL + "\t\t" + NL + "\t\t"; 
     55  protected final String TEXT_18 = "(parent, style);" + NL + "\t\tlistComposite.getListViewer().setContentProvider(contentProvider);" + NL + "\t\tlistComposite.getListViewer().setLabelProvider(contentProvider);" + NL + "\t\tlistComposite.getListViewer().setInput(dataSource.findList().toArray());" + NL + "\t\t" + NL + "\t\t"; 
    5656  protected final String TEXT_19 = " fetchAction = new "; 
    5757  protected final String TEXT_20 = "();" + NL + "\t\tfetchAction.setApplicationEventPublisher(applicationEventPublisher);" + NL + "\t\tlistComposite.getFetchButton().addSelectionListener(fetchAction);" + NL + "\t\t" + NL + "\t\t"; 
  • trunk/plugins/org.jalcedo.generator.client.beans/templates/ComponentsFactoryGenerator.jet

    r710 r754  
    6363        listComposite.getListViewer().setContentProvider(contentProvider); 
    6464        listComposite.getListViewer().setLabelProvider(contentProvider); 
     65        listComposite.getListViewer().setInput(dataSource.findList().toArray()); 
    6566         
    6667        <%=fetchActionName%> fetchAction = new <%=fetchActionName%>(); 
  • trunk/plugins/org.jalcedo.generator.client.beans/templates/ViewGenerator.jet

    r749 r754  
    4545         
    4646        // TODO set initial values. 
    47       listComposite.getListViewer().setInput(null); 
     47//        listComposite.getListViewer().setInput(null); 
    4848         
    4949        Realm.runWithDefault(SWTObservables.getRealm(parent.getDisplay()), new Runnable() {