Project

General

Profile

Revision f1e0cd00

IDf1e0cd000c99d9b6f8f52237b3139665c3270ecb
Parent 3dfc2334
Child 3d5bd11a

Added by Andreas Müller 2 months ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportWizard.java
25 25
import eu.etaxonomy.taxeditor.store.CdmStore;
26 26

  
27 27
/**
28
 *
29 28
 * @author n.hoffmann
30 29
 * @created Jun 16, 2010
31
 * @version 1.0
32 30
 */
33 31
public class AbcdImportWizard extends AbstractImportWizard<Abcd206ImportConfigurator> {
34 32

  
35
    private static final Logger logger = Logger.getLogger(AbcdImportWizard.class);
33
    @SuppressWarnings("unused")
34
	private static final Logger logger = Logger.getLogger(AbcdImportWizard.class);
36 35

  
37 36
	private Abcd206ImportConfigurator configurator;
38 37
	private AbcdSourceSelectionPage dataSourcePage;
......
60 59

  
61 60
	}
62 61

  
63
	/** {@inheritDoc} */
64 62
	@Override
65 63
    public void init(IWorkbench workbench, IStructuredSelection selection) {
66 64
		super.init(workbench, selection);
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ListComponent.java
8 8
*/
9 9
package eu.etaxonomy.taxeditor.preference;
10 10

  
11

  
12 11
import java.awt.Toolkit;
13 12
import java.io.BufferedReader;
14 13
import java.io.IOException;
......
50 49
import eu.etaxonomy.taxeditor.l10n.Messages;
51 50
import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
52 51

  
53

  
54 52
/**
55 53
 * @author k.luther
56 54
 * @date 20.04.2017
57
 *
58 55
 */
59 56
public class ListComponent implements ModifyListener
60 57
                      {
......
73 70
    String providerList;
74 71
    String[] items;
75 72

  
76

  
77 73
    public CdmPreference getProviderListPreference() {
78 74
        return providerListPreference;
79 75
    }
80 76

  
81

  
82 77
    public void setProviderListPreference(CdmPreference providerListPreference) {
83 78
        this.providerListPreference = providerListPreference;
84 79
    }
85 80

  
86

  
87 81
    public ListComponent(Composite parent, int style, boolean isAdmin, CdmPreferencePage parentPage) {
88 82
        this.isAdmin= isAdmin;
89 83
        this.preferencePage = parentPage;
......
123 117
            for (String providerString : providerArray){
124 118
                if (!StringUtils.isBlank(providerString)){
125 119
                    list.add(providerString);
126

  
127 120
                }
128 121
            }
129 122
        }
......
138 131
        dataList.horizontalAlignment = GridData.FILL;
139 132
        dataList.horizontalSpan = 3;
140 133

  
141

  
142 134
//        dataList.grabExcessVerticalSpace = true;
143 135

  
144 136
        list.setLayoutData(dataList);
145 137

  
146

  
147 138
        providerURI = new Combo(parent, SWT.BORDER);
148 139

  
149 140
        URL url;
......
197 188
            e.printStackTrace();
198 189
        }
199 190

  
200

  
201 191
        GridData dataProviderUri = new GridData();
202 192
        dataProviderUri.horizontalAlignment = GridData.FILL;
203 193
        dataProviderUri.horizontalSpan = 3;
......
228 218
//        // additionally, configure the comboViewer arbitrary
229 219
//        AutoCompleteField field = new AutoCompleteField(comboViewer.getCombo(), new ComboContentAdapter(), proposals);
230 220

  
231

  
232

  
233

  
234 221
        //providerURI.addModifyListener(this);
235 222
        labelException = new Label(parent, SWT.NULL);
236 223
        labelException.setText("");
237 224

  
238

  
239 225
        labelException.setLayoutData(dataProviderUri);
240 226

  
241 227
        Button addButton = new Button(parent, SWT.NULL);
......
248 234
        removeButton.addMouseListener(new RemoveListener());
249 235
    }
250 236

  
251

  
252
    /**
253
     * @return
254
     */
255 237
    IContentProposalProvider getProposalProvider() {
256 238
        return new IContentProposalProvider() {
257 239
            @Override
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/FloatWithLabelElement.java
22 22
    private Float start;
23 23
    private Float end;
24 24

  
25

  
26 25
    public FloatWithLabelElement(CdmFormFactory toolkit, ICdmFormElement parentElement, String labelString,
27 26
            Number initialNumber, int style) {
28 27
        super(toolkit, parentElement, labelString, initialNumber, style);
29

  
30 28
    }
31 29

  
32

  
33 30
    @Override
34 31
    public void modifyText(ModifyEvent event) {
35 32
        String value = text.getText();
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/DefinedTermDetailElement.java
19 19
/**
20 20
 * @author l.morris
21 21
 * @date 20 Dec 2011
22
 *
23 22
 */
24
public class DefinedTermDetailElement<T extends DefinedTermBase> extends AbstractTermBaseDetailElement<T> {
23
public class DefinedTermDetailElement<T extends DefinedTermBase> 
24
			extends AbstractTermBaseDetailElement<T> {
25 25

  
26 26
    protected TextWithLabelElement textIdInVocabulary;
27 27

  
......
29 29

  
30 30
    protected TextWithLabelElement textSymbol2;
31 31

  
32

  
33 32
	/**
34 33
	 * @param formFactory
35 34
	 * @param formElement
......
47 46
	    textSymbol2 = formFactory.createTextWithLabelElement(formElement, "Symbol 2", entity.getSymbol2(), style);
48 47
	};
49 48

  
50
	/* (non-Javadoc)
51
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement#handleEvent(java.lang.Object)
52
	 */
53 49
	@Override
54 50
	public void handleEvent(Object eventSource) {
55 51
	    super.handleEvent(eventSource);
......
81 77
        }
82 78
	}
83 79

  
84
	/* (non-Javadoc)
85
	 * @see eu.etaxonomy.taxeditor.ui.section.vocabulary.AbstractTermBaseDetailElement#getVocabularyMarkers()
86
	 */
87 80
	@Override
88 81
	public TermVocabulary getVocabulary() {
89 82
		return getEntity() != null ? getEntity().getVocabulary() : null;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)