Project

General

Profile

« Previous | Next » 

Revision 602b224c

Added by Patrick Plitzner over 10 years ago

  • added debug text field to result wizard page

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/specimenSearch/SpecimenSearchWizard.java
38 38
        addPage(new SpecimenSearchResultWizardPage("Search Results"));
39 39
    }
40 40

  
41

  
41 42
    /* (non-Javadoc)
42 43
     * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
43 44
     */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/specimenSearch/SpecimenSearchWizardPage.java
36 36
        setControl(new SpecimenSearchController(parent).getComposite());
37 37
    }
38 38

  
39

  
40

  
39 41
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/campanula/specimenSearch/SpecimenSearchController.java
31 31
    public Composite getComposite() {
32 32
        return specimenSearchComposite;
33 33
    }
34

  
35
    private void runQuery(){
36

  
37
    }
34 38
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/campanula/specimenSearch/SpecimenSearchResultsComposite.java
9 9
*/
10 10
package eu.etaxonomy.taxeditor.ui.campanula.specimenSearch;
11 11

  
12
import org.eclipse.jface.viewers.ListViewer;
13 12
import org.eclipse.swt.SWT;
14 13
import org.eclipse.swt.widgets.Composite;
15
import org.eclipse.swt.widgets.List;
16
import org.eclipse.ui.forms.widgets.TableWrapData;
17
import org.eclipse.ui.forms.widgets.TableWrapLayout;
18
import org.eclipse.swt.widgets.Label;
19
import org.eclipse.ui.forms.widgets.FormToolkit;
20 14
import org.eclipse.swt.widgets.Display;
21 15
import org.eclipse.swt.widgets.Text;
16
import org.eclipse.ui.forms.widgets.FormToolkit;
17
import org.eclipse.ui.forms.widgets.TableWrapData;
18
import org.eclipse.ui.forms.widgets.TableWrapLayout;
22 19

  
23 20
/**
24 21
 * @author pplitzner
......
40 37
            TableWrapLayout tableWrapLayout = new TableWrapLayout();
41 38
            setLayout(tableWrapLayout);
42 39
        }
43
        
40

  
44 41
        txtNewText = formToolkit.createText(this, "New Text", SWT.NONE);
45 42
        txtNewText.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1));
46 43

  
......
50 47
    protected void checkSubclass() {
51 48
        // Disable the check that prevents subclassing of SWT components
52 49
    }
50
    public Text getTxtNewText() {
51
        return txtNewText;
52
    }
53 53
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/campanula/specimenSearch/SpecimenSearchResultsController.java
28 28
    public Composite getComposite(){
29 29
        return specimenSearchResultsComposite;
30 30
    }
31

  
32
    public void setText(String text){
33
        specimenSearchResultsComposite.getTxtNewText().setText(text);
34
    }
31 35
}

Also available in: Unified diff