Revision c72cace9
Added by Patrick Plitzner almost 6 years ago
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
ref #6913 Remove test specimen import view