Project

General

Profile

« Previous | Next » 

Revision 3374d46f

Added by Katja Luther almost 7 years ago

extend specimen search result view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/DataImportView.java
16 16
import org.eclipse.jface.action.IMenuManager;
17 17
import org.eclipse.jface.action.IToolBarManager;
18 18
import org.eclipse.jface.viewers.CheckboxTableViewer;
19
import org.eclipse.jface.wizard.IWizard;
20
import org.eclipse.jface.wizard.WizardDialog;
19 21
import org.eclipse.swt.SWT;
22
import org.eclipse.swt.events.SelectionAdapter;
23
import org.eclipse.swt.events.SelectionEvent;
20 24
import org.eclipse.swt.layout.GridData;
21 25
import org.eclipse.swt.layout.GridLayout;
22 26
import org.eclipse.swt.widgets.Button;
......
29 33
import org.eclipse.swt.widgets.TableItem;
30 34
import org.eclipse.swt.widgets.Text;
31 35
import org.eclipse.ui.IMemento;
36
import org.eclipse.ui.PlatformUI;
32 37
import org.eclipse.ui.forms.widgets.FormToolkit;
33 38
import org.eclipse.ui.part.ViewPart;
34 39
import org.eclipse.wb.swt.ResourceManager;
......
38 43
import eu.etaxonomy.cdm.ext.occurrence.OccurenceQuery;
39 44
import eu.etaxonomy.cdm.model.taxon.Classification;
40 45
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
46
import eu.etaxonomy.taxeditor.databaseAdmin.wizard.ImportPreferencesWizard;
41 47
import eu.etaxonomy.taxeditor.model.IContextListener;
42 48
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
43 49
import eu.etaxonomy.taxeditor.model.IPartContentHasFactualData;
......
70 76

  
71 77
    private Text textClassification;
72 78
    private Classification classification;
79

  
80
    private Text textReferenceString;
81

  
82
    private Button toggleButton;
83
    private boolean state;
84

  
85
    private Button openConfigurator;
73 86
    /**
74 87
	 * @return the classification
75 88
	 */
......
106 119
     */
107 120
    @Override
108 121
    public void createPartControl(Composite parent) {
109
    	final Composite composite = new Composite(parent, SWT.NULL);
110

  
111
		GridLayout gridLayout = new GridLayout();
112
		gridLayout.numColumns = 4;
113
		composite.setLayout(gridLayout);
114
    	Label label = new Label(composite, SWT.NONE);
122
//    	final Composite composite = new Composite(parent, SWT.NONE);
123
//
124
//		GridLayout gridLayout = new GridLayout();
125
//		gridLayout.numColumns = 3;
126
//		composite.setLayout(gridLayout);
127
//		composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
128
        Composite composite = new Composite(parent, SWT.NONE);
129
        composite.setLayout(new GridLayout(2, false));
130

  
131
        Composite composite_1 = new Composite(composite, SWT.NONE);
132
        GridData gd_composite_1 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);
133
        gd_composite_1.widthHint = 280;
134
        composite_1.setLayoutData(gd_composite_1);
135
        composite_1.setLayout(new GridLayout(3, false));
136

  
137
    	Label label = new Label(composite_1, SWT.TOP);
115 138
		label.setText("Classification");
116
		textClassification = new Text(composite, SWT.NONE);
139
		label.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
140
		textClassification = new Text(composite_1, SWT.BORDER);
117 141
		textClassification.setEnabled(false);
118
		textClassification.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
119
		btnBrowseClassification = new Button(composite, SWT.NONE);
142
		GridData gd_textClassification = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
143
		gd_textClassification.widthHint = 118;
144
		textClassification.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, true));
145
		btnBrowseClassification = new Button(composite_1, SWT.NONE);
120 146
		btnBrowseClassification.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/open.gif"));
121 147
		btnBrowseClassification.addListener(SWT.Selection, this);
122
		btnClear = new Button(composite, SWT.NONE);
148
		btnClear = new Button(composite_1, SWT.NONE);
123 149
		btnClear.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/trash.gif"));
124 150
		btnClear.addListener(SWT.Selection, this);
125

  
126
        CheckboxTableViewer checkboxTableViewer = CheckboxTableViewer.newCheckList(parent, SWT.BORDER | SWT.FULL_SELECTION);
127
        table = checkboxTableViewer.getTable();
128
        toolkit.paintBordersFor(table);
129

  
130

  
131

  
151
		//source reference
152

  
153
        Label labelRef = new Label(composite_1, SWT.NONE);
154
        labelRef.setText("Default import souce reference");
155
        labelRef.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
156
        textReferenceString = new Text(composite_1, SWT.NONE);
157
        textReferenceString.setEnabled(true);
158
        GridData gd_textReferenceString = new GridData(SWT.LEFT, SWT.CENTER, true, true, 3, 1);
159
        gd_textReferenceString.widthHint = 229;
160
        textReferenceString.setLayoutData(gd_textReferenceString);
161

  
162
        //open configuration
163
        openConfigurator = new Button(composite_1, SWT.PUSH);
164
        openConfigurator.setText("Configuration");
165
        new Label(composite_1, SWT.NONE);
166
        new Label(composite_1, SWT.NONE);
167
        openConfigurator.addSelectionListener(new SelectionAdapter(){
168
            @Override
169
            public void widgetSelected(SelectionEvent e) {
170

  
171
                IWizard wizard = new ImportPreferencesWizard();
172
                WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);
173
                dialog.open();
174
            }
175
        });
176

  
177
      //checkbox table for result
178
        Composite composite_2 = new Composite(composite, SWT.NONE);
179
        GridData gd_composite_2 = new GridData(SWT.LEFT, SWT.TOP, true, true, 1, 1);
180
        gd_composite_2.heightHint = 454;
181
        gd_composite_2.widthHint = 403;
182
        composite_2.setLayoutData(gd_composite_2);
183
       composite_2.setLayout(new GridLayout(2, false));
184

  
185

  
186
       CheckboxTableViewer checkboxTableViewer = CheckboxTableViewer.newCheckList(composite_2, SWT.BORDER | SWT.FULL_SELECTION);
187

  
188

  
189
       table = checkboxTableViewer.getTable();
190
       GridData gd_table = new GridData(SWT.LEFT, SWT.TOP, true, true, 1, 1);
191
       gd_table.heightHint = 444;
192
       gd_table.widthHint = 312;
193
       table.setLayoutData(gd_table);
194
       toolkit.paintBordersFor(table);
195
       //toggle button
196
       toggleButton = new Button(composite_2, SWT.PUSH);
197
       GridData gd_toggleButton = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);
198
       gd_toggleButton.widthHint = 56;
199
       toggleButton.setLayoutData(gd_toggleButton);
200
       toggleButton.setText("Toggle");
201
       toggleButton.addSelectionListener(new SelectionAdapter(){
202
           @Override
203
           public void widgetSelected(SelectionEvent e) {
204
               state = state ? false : true;
205
               for (TableItem item: getTable().getItems()){
206
                       item.setChecked(state);
207
               }
208

  
209
           }
210
       });
132 211
        createActions();
133 212
        initializeToolBar();
134 213
        initializeMenu();
......
301 380
	        textClassification.setText("");
302 381
	    }
303 382
	}
383

  
384
    /**
385
     * @return
386
     */
387
    public String getReferenceString() {
388

  
389
        return textReferenceString.getText();
390
    }
304 391
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/SaveImportedSpecimenAction.java
1 1
package eu.etaxonomy.taxeditor.view.dataimport;
2 2

  
3
import java.io.IOException;
4 3
import java.net.URI;
5 4
import java.util.ArrayList;
6 5
import java.util.Collection;
......
10 9
import java.util.List;
11 10
import java.util.Set;
12 11

  
13
import org.apache.http.client.ClientProtocolException;
14 12
import org.apache.log4j.Logger;
15 13
import org.eclipse.core.runtime.jobs.Job;
16 14
import org.eclipse.jface.action.Action;
......
26 24
import eu.etaxonomy.cdm.ext.occurrence.bioCase.BioCaseResponse;
27 25
import eu.etaxonomy.cdm.ext.occurrence.gbif.DataSetResponse;
28 26
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifDataSetProtocol;
29
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifQueryServiceWrapper;
30 27
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse;
31 28
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator;
32 29
import eu.etaxonomy.cdm.io.specimen.gbif.in.GbifImportConfigurator;
33 30
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
31
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
34 32
import eu.etaxonomy.taxeditor.store.CdmStore;
35 33

  
36 34
public class SaveImportedSpecimenAction extends Action {
......
92 90
                URI dataSetUri = null;
93 91
                for (BioCaseResponse response:checkedAbcdResults){
94 92

  
95
                   // if (!response.getDataSetUri().equals(dataSetUri)){
93
                    if (!response.getDataSetUri().equals(dataSetUri)){
96 94
                        dataSetUri = response.getDataSetUri();
97
                        configuratorAbcd = Abcd206ImportConfigurator.NewInstance(dataSetUri, null, false);
98
                        configuratorAbcd.addMediaAsMediaSpecimen(true);
99
                        configuratorAbcd.setIgnoreAuthorship(true);
100
                        configuratorAbcd.setMoveNewTaxaToDefaultClassification(false);
95

  
96
                        configuratorAbcd = PreferencesUtil.getAbcdImportConfigurationPreference(false);
97
                        configuratorAbcd.setSourceUri(dataSetUri);
98
//                        configuratorAbcd.addMediaAsMediaSpecimen(true);
99
//                        configuratorAbcd.setIgnoreAuthorship(true);
100
//                        configuratorAbcd.setMoveNewTaxaToDefaultClassification(false);
101 101

  
102 102
                        unitIdsBioCase = new HashSet<String[]>();
103 103
                        bioCaseOccurrenceQuery = new OccurenceQuery(unitIdsBioCase);
104 104
                        configuratorAbcd.setOccurenceQuery(bioCaseOccurrenceQuery);
105
                        configuratorAbcd.setGetSiblings(true);
105
                       // configuratorAbcd.setGetSiblings(true);
106 106
                        if (dataImportView.getClassification() != null){
107 107
                            configuratorAbcd.setClassificationUuid(dataImportView.getClassification().getUuid());
108 108
                        }
109
                        if (dataImportView.getReferenceString() != null){
110
                            configuratorAbcd.setSourceReferenceTitle(dataImportView.getReferenceString());
111
                        }
112
                        abcdConfigurators.add(configuratorAbcd);
109 113

  
110
                    //}
114
                    }
111 115
                    tripleId = response.getTripleID();
112 116
                    unitIdsBioCase.add(tripleId);
113 117

  
114
                }
115

  
116 118

  
117
                if (!unitIdsBioCase.isEmpty()){
118
                    configuratorAbcd = Abcd206ImportConfigurator.NewInstance(dataSetUri, null, false);
119
                    configuratorAbcd.addMediaAsMediaSpecimen(true);
120
                    configuratorAbcd.setIgnoreAuthorship(true);
121
                    configuratorAbcd.setMoveNewTaxaToDefaultClassification(false);
122
                    if (configuratorAbcd != null){
123
                        abcdConfigurators.add(configuratorAbcd);
124
                    }
125
//                    unitIdsBioCase = new HashSet<String[]>();
126
                    bioCaseOccurrenceQuery = new OccurenceQuery(unitIdsBioCase);
127
                    configuratorAbcd.setOccurenceQuery(bioCaseOccurrenceQuery);
128
                    configuratorAbcd.setGetSiblings(true);
129
                    if (dataImportView.getClassification() != null){
130
                        configuratorAbcd.setClassificationUuid(dataImportView.getClassification().getUuid());
131
                    }
132 119
                }
133 120

  
134
                for (GbifResponse response: biocaseResponses){
135
                	try {
136
						dataSetResponse = new GbifQueryServiceWrapper().queryOriginalDataSet(response);
137
						dataSetUri = dataSetResponse.getEndpoint();
138
					} catch (ClientProtocolException e) {
139
						// TODO Auto-generated catch block
140
						e.printStackTrace();
141
					} catch (IOException e) {
142
						// TODO Auto-generated catch block
143
						e.printStackTrace();
144
					}
145
                	if (!response.getDataSetUri().equals(dataSetUri)){
146
                		configuratorAbcd = Abcd206ImportConfigurator.NewInstance(dataSetUri, null, false);
147
                		configuratorAbcd.addMediaAsMediaSpecimen(true);
148
                		configuratorAbcd.setIgnoreAuthorship(true);
149
                		configuratorAbcd.setMoveNewTaxaToDefaultClassification(false);
150
                		if (configuratorAbcd != null){
151
                			abcdConfigurators.add(configuratorAbcd);
152
                		}
153
                		unitIdsBioCase = new HashSet<String[]>();
154
                		bioCaseOccurrenceQuery = new OccurenceQuery(unitIdsBioCase);
155
                		configuratorAbcd.setOccurenceQuery(bioCaseOccurrenceQuery);
156
                		configuratorAbcd.setGetSiblings(true);
157
                		if (dataImportView.getClassification() != null){
158
                			configuratorAbcd.setClassificationUuid(dataImportView.getClassification().getUuid());
159
                		}
160 121

  
161
                	}
162
                	tripleId = response.getTripleID();
163
                	unitIdsBioCase.add(tripleId);
164
                }
122
//                if (!unitIdsBioCase.isEmpty()){
123
//                    configuratorAbcd = Abcd206ImportConfigurator.NewInstance(dataSetUri, null, false);
124
//                    configuratorAbcd.addMediaAsMediaSpecimen(true);
125
//                    configuratorAbcd.setIgnoreAuthorship(true);
126
//                    configuratorAbcd.setMoveNewTaxaToDefaultClassification(false);
127
//                    if (configuratorAbcd != null){
128
//                        abcdConfigurators.add(configuratorAbcd);
129
//                    }
130
////                    unitIdsBioCase = new HashSet<String[]>();
131
//                    bioCaseOccurrenceQuery = new OccurenceQuery(unitIdsBioCase);
132
//                    configuratorAbcd.setOccurenceQuery(bioCaseOccurrenceQuery);
133
//                    configuratorAbcd.setGetSiblings(true);
134
//                    if (dataImportView.getClassification() != null){
135
//                        configuratorAbcd.setClassificationUuid(dataImportView.getClassification().getUuid());
136
//                    }
137
//                }
138

  
139
//                for (GbifResponse response: biocaseResponses){
140
//                	try {
141
//						dataSetResponse = new GbifQueryServiceWrapper().queryOriginalDataSet(response);
142
//						dataSetUri = dataSetResponse.getEndpoint();
143
//					} catch (ClientProtocolException e) {
144
//						// TODO Auto-generated catch block
145
//						e.printStackTrace();
146
//					} catch (IOException e) {
147
//						// TODO Auto-generated catch block
148
//						e.printStackTrace();
149
//					}
150
//                	if (!response.getDataSetUri().equals(dataSetUri)){
151
//                		configuratorAbcd = Abcd206ImportConfigurator.NewInstance(dataSetUri, null, false);
152
//                		configuratorAbcd.addMediaAsMediaSpecimen(true);
153
//                		configuratorAbcd.setIgnoreAuthorship(true);
154
//                		configuratorAbcd.setMoveNewTaxaToDefaultClassification(false);
155
//                		if (configuratorAbcd != null){
156
//                			abcdConfigurators.add(configuratorAbcd);
157
//                		}
158
//                		unitIdsBioCase = new HashSet<String[]>();
159
//                		bioCaseOccurrenceQuery = new OccurenceQuery(unitIdsBioCase);
160
//                		configuratorAbcd.setOccurenceQuery(bioCaseOccurrenceQuery);
161
//                		configuratorAbcd.setGetSiblings(true);
162
//                		if (dataImportView.getClassification() != null){
163
//                			configuratorAbcd.setClassificationUuid(dataImportView.getClassification().getUuid());
164
//                		}
165
//
166
//                	}
167
//                	tripleId = response.getTripleID();
168
//                	unitIdsBioCase.add(tripleId);
169
//                }
165 170

  
166
                OccurenceQuery query = new OccurenceQuery(unitIdsGbif);
167
                GbifImportConfigurator configurator = GbifImportConfigurator.newInstance(query);
168
                configurator.setSourceReferenceTitle("Import Gbif data");
169 171

  
170 172

  
171 173

  
172 174
                //  configurator.setQuery(query);
175
                if (!checkedAbcdResults.isEmpty()){
176
                    Job bioCaseJob = CdmStore.getImportManager().createIOServiceJob(abcdConfigurators);
177
                    CdmStore.getImportManager().run(bioCaseJob);
178
                }
173 179

  
174
               Job bioCaseJob = CdmStore.getImportManager().createIOServiceJob(abcdConfigurators);
175
               CdmStore.getImportManager().run(bioCaseJob);
180
               if (!unitIdsGbif.isEmpty()){
181
                   OccurenceQuery query = new OccurenceQuery(unitIdsGbif);
182
                   GbifImportConfigurator configurator = GbifImportConfigurator.newInstance(query);
183
                   configurator.setSourceReferenceTitle("Import Gbif data");
176 184

  
177
               Job gbifJob = CdmStore.getImportManager().createIOServiceJob(configurator);
178
               CdmStore.getImportManager().run(gbifJob);
185
                   Job gbifJob = CdmStore.getImportManager().createIOServiceJob(configurator);
186
                   CdmStore.getImportManager().run(gbifJob);
187
               }
179 188

  
180 189

  
181 190

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/SpecimenImportView.java
57 57
    protected String getTextForTableItem(BioCaseResponse item) {
58 58
        //TODO: could be defined in user preferences...
59 59
        String name = null;
60
        if(!((Abcd206DataHolder)item.getAbcdDataHolder()).getIdentificationList().isEmpty()){
60
        if(!(((Abcd206DataHolder)item.getAbcdDataHolder()).getIdentificationList() == null) && !((Abcd206DataHolder)item.getAbcdDataHolder()).getIdentificationList().isEmpty()){
61 61
           Identification identification =  ((Abcd206DataHolder)item.getAbcdDataHolder()).getIdentificationList().iterator().next();
62 62
           name = identification.getScientificName();
63 63
        }
64 64
        if (name != null){
65
            return name +" - "+((Abcd206DataHolder)item.getAbcdDataHolder()).getCollectionCode() + " - "+ ((Abcd206DataHolder)item.getAbcdDataHolder()).getFieldNumber() + " - "+ ((Abcd206DataHolder)item.getAbcdDataHolder()).getKindOfUnit();
65
            return name +" - "+((Abcd206DataHolder)item.getAbcdDataHolder()).getCollectionCode() + " - "+ ((Abcd206DataHolder)item.getAbcdDataHolder()).getUnitID() + " - "+ ((Abcd206DataHolder)item.getAbcdDataHolder()).getKindOfUnit();
66 66
        }else {
67
            return ((Abcd206DataHolder)item.getAbcdDataHolder()).getCollectionCode() + " - "+ ((Abcd206DataHolder)item.getAbcdDataHolder()).getFieldNumber() + " - "+ ((Abcd206DataHolder)item.getAbcdDataHolder()).getKindOfUnit();
67
            return ((Abcd206DataHolder)item.getAbcdDataHolder()).getCollectionCode() + " - "+ ((Abcd206DataHolder)item.getAbcdDataHolder()).getUnitID() + " - "+ ((Abcd206DataHolder)item.getAbcdDataHolder()).getKindOfUnit();
68 68
        }
69 69
    }
70 70

  
......
101 101
            if (unitsList != null){
102 102
                for (int i = 0; i <unitsList.getLength(); i++){
103 103
                    Element item = (Element) unitsList.item(i);
104
                    //dataHolder = new Abcd206DataHolder();
104
                    dataHolder = new Abcd206DataHolder();
105
                    abcdFieldGetter = new Abcd206XMLFieldGetter(dataHolder, unitAssociationWrapper.getPrefix());
106
                    state.setPrefix(unitAssociationWrapper.getPrefix());
105 107
                    Abcd206ImportParser.setUnitPropertiesXML(item, abcdFieldGetter, state);
106 108
                    String[] tripleIdBioCase = new String[3];
107 109
                    tripleIdBioCase[0] =dataHolder.getUnitID();
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/TestSpecimenImportView.java
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.view.dataimport;
10

  
11
import org.eclipse.swt.SWT;
12
import org.eclipse.swt.layout.GridData;
13
import org.eclipse.swt.layout.GridLayout;
14
import org.eclipse.swt.widgets.Button;
15
import org.eclipse.swt.widgets.Composite;
16
import org.eclipse.swt.widgets.Label;
17
import org.eclipse.swt.widgets.List;
18
import org.eclipse.swt.widgets.Text;
19
import org.eclipse.ui.part.ViewPart;
20

  
21
/**
22
 * @author k.luther
23
 * @param <T>
24
 * @date 02.05.2017
25
 *
26
 */
27
public class TestSpecimenImportView extends ViewPart {
28
    private Text text;
29
    private Text text_1;
30
    public TestSpecimenImportView() {
31
    }
32

  
33
    /**
34
     * {@inheritDoc}
35
     */
36
    @Override
37
    public void createPartControl(Composite parent) {
38

  
39
        Composite composite = new Composite(parent, SWT.NONE);
40
        composite.setLayout(new GridLayout(2, true));
41

  
42
        Composite composite_1 = new Composite(composite, SWT.NONE);
43
        composite_1.setLayout(new GridLayout(3, false));
44

  
45
        Label lblNewLabel = new Label(composite_1, SWT.NONE);
46
        lblNewLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
47
        lblNewLabel.setBounds(0, 0, 55, 15);
48
        lblNewLabel.setText("Classification");
49

  
50
        text = new Text(composite_1, SWT.BORDER);
51
        GridData gd_text = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
52
        gd_text.widthHint = 118;
53
        text.setLayoutData(gd_text);
54

  
55
        Button btnNewButton = new Button(composite_1, SWT.NONE);
56
        GridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
57
        gd_btnNewButton.widthHint = 36;
58
        btnNewButton.setLayoutData(gd_btnNewButton);
59
        btnNewButton.setText("New Button");
60

  
61
        Button btnNewButton_1 = new Button(composite_1, SWT.NONE);
62
        GridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
63
        gd_btnNewButton_1.widthHint = 33;
64
        btnNewButton_1.setLayoutData(gd_btnNewButton_1);
65
        btnNewButton_1.setBounds(0, 0, 75, 25);
66
        btnNewButton_1.setText("New Button");
67

  
68
        Label lblNewLabel_1 = new Label(composite_1, SWT.NONE);
69
        lblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
70
        lblNewLabel_1.setBounds(0, 0, 55, 15);
71
        lblNewLabel_1.setText("Default import Source Reference Title");
72

  
73
        text_1 = new Text(composite_1, SWT.BORDER);
74
        GridData gd_text_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1);
75
        gd_text_1.widthHint = 112;
76
        text_1.setLayoutData(gd_text_1);
77
        text_1.setBounds(0, 0, 76, 21);
78

  
79
        Button btnNewButton_2 = new Button(composite_1, SWT.NONE);
80
        btnNewButton_2.setBounds(0, 0, 75, 25);
81
        btnNewButton_2.setText("Configuration");
82
        new Label(composite_1, SWT.NONE);
83
        new Label(composite_1, SWT.NONE);
84

  
85
        Composite composite_2 = new Composite(composite, SWT.NONE);
86

  
87
        List list = new List(composite_2, SWT.BORDER);
88
        list.setBounds(0, 0, 233, 68);
89
        // TODO Auto-generated method stub
90

  
91
    }
92

  
93
    /**
94
     * {@inheritDoc}
95
     */
96
    @Override
97
    public void setFocus() {
98
        // TODO Auto-generated method stub
99

  
100
    }
101
}

Also available in: Unified diff