Project

General

Profile

« Previous | Next » 

Revision 53e60781

Added by Andreas Müller over 3 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/abcd/AbcdImportWizardE4.java
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
9

  
10 9
package eu.etaxonomy.taxeditor.io.e4.in.abcd;
11 10

  
12 11
import java.io.File;
......
28 27
import eu.etaxonomy.taxeditor.store.CdmStore;
29 28

  
30 29
/**
31
 *
32 30
 * @author pplitzner
33 31
 * @since Oct 5, 2017
34
 *
35 32
 */
36 33
public class AbcdImportWizardE4 extends AbstractImportWizardE4<Abcd206ImportConfigurator> {
37 34

  
......
44 41
	    super(context, partService);
45 42
	}
46 43

  
47
	/** {@inheritDoc} */
48 44
	@Override
49 45
	public Abcd206ImportConfigurator getConfigurator() {
50 46
		return configurator;
51 47
	}
52 48

  
53
	/** {@inheritDoc} */
54 49
	@Override
55 50
	public boolean performFinish() {
56 51
	    URI source = dataSourcePage.getUri();
......
66 61

  
67 62
	}
68 63

  
69
	/** {@inheritDoc} */
70 64
	@Override
71 65
    public void init() {
72 66
		configurator =  PreferencesUtil.getLocalAbcdImportConfigurator(false);
......
79 73
		addPage(configuratorWizardPage);
80 74
	}
81 75

  
82
	/** {@inheritDoc} */
83 76
	@Override
84 77
	public void addPages() {
85 78

  
......
91 84
		addPage(dataSourcePage);
92 85
		addConfiguratorPage();
93 86
		//super.addPages();
94

  
95 87
	}
96
}
88
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/excel/taxa/ExcelNormalExplicitTaxaImportWizardE4.java
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
9

  
10 9
package eu.etaxonomy.taxeditor.io.e4.in.excel.taxa;
11 10

  
12 11
import java.io.File;
......
43 42

  
44 43

  
45 44
/**
46
 *
47 45
 * @author pplitzner
48 46
 * @since Oct 5, 2017
49
 *
50 47
 */
51 48
public class ExcelNormalExplicitTaxaImportWizardE4 extends AbstractImportWizardE4<NormalExplicitImportConfigurator>{
52 49

  
......
61 58
	    super(context, partService, selection);
62 59
	}
63 60

  
64
	/** {@inheritDoc} */
65 61
	@Override
66 62
	public NormalExplicitImportConfigurator getConfigurator() {
67 63
		return configurator;
68 64
	}
69 65

  
70
	/** {@inheritDoc} */
71 66
	@Override
72 67
	public boolean performFinish() {
73 68
		URI source = dataSourcePage.getUri();
......
94 89
		return true;
95 90
	}
96 91

  
97
	/** {@inheritDoc} */
98 92
	@Override
99 93
    public void init() {
100 94
		configurator =  CdmStore.getImportManager().NormalExplicitConfigurator();
......
105 99
		}
106 100
	}
107 101

  
108
	/** {@inheritDoc} */
109 102
	@Override
110 103
	public void addPages() {
111 104
	    dataSourcePage = ContextInjectionFactory.make(ImportFromFileDataSourceWithReferenceWizardPage.class, context);
......
113 106
		dataSourcePage.setDescription("Please choose an xls file in the NormalExplicit format.");
114 107
		dataSourcePage.setExtensions(new String[]{"*.xlsx", "*.xls", "*.*"});
115 108
		addPage(dataSourcePage);
116
		  super.addPages();
117

  
109
		super.addPages();
118 110
	}
119
	 @Override
120
     protected void addConfiguratorPage(){
111
	
112
	@Override
113
    protected void addConfiguratorPage(){
121 114
         List<String> ignoreMethods = new ArrayList<>();
122 115
         ignoreMethods.add("setIgnoreNull");
123 116
         ignoreMethods.add("setInteractWithUser");
......
129 122
         pageConfiguration.initImport(getConfigurator(), ignoreMethods, Messages.ExcelTaxonUpdateWizard_ConfiguratorWizard_label);
130 123
         addPage(pageConfiguration);
131 124
    }
132
}
125
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/owl/OwlImportWizard.java
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
9

  
10 9
package eu.etaxonomy.taxeditor.io.e4.in.owl;
11 10

  
12 11
import java.io.File;
......
29 28
import eu.etaxonomy.taxeditor.store.CdmStore;
30 29

  
31 30
/**
32
 *
33 31
 * @author pplitzner
34 32
 * @since Apr 25, 2019
35
 *
36 33
 */
37 34
public class OwlImportWizard extends AbstractImportWizardE4<StructureTreeOwlImportConfigurator> {
38 35

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExcelDistributionUpdateWizard.java
31 31
/**
32 32
 * @author k.luther
33 33
 * @date 03.05.2017
34
 *
35 34
 */
36 35
public class ExcelDistributionUpdateWizard extends AbstractImportWizard<ExcelDistributionUpdateConfigurator> {
37 36
    private ExcelDistributionUpdateConfigurator configurator;
38 37

  
39
    private ImportFromFileAndChooseVocIdWizardPage dataSourcePage;
40

  
41 38
    private static final Logger logger = Logger.getLogger(ExcelDistributionUpdateWizard.class);
42 39

  
43
    /* (non-Javadoc)
44
     * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator()
45
     */
46
    /** {@inheritDoc} */
40
    private ImportFromFileAndChooseVocIdWizardPage dataSourcePage;
41

  
47 42
    @Override
48 43
    public ExcelDistributionUpdateConfigurator getConfigurator() {
49 44
        return configurator;
50 45
    }
51 46

  
52
    /* (non-Javadoc)
53
     * @see org.eclipse.jface.wizard.Wizard#performFinish()
54
     */
55
    /** {@inheritDoc} */
56 47
    @Override
57 48
    public boolean performFinish() {
58 49
        URI source = dataSourcePage.getUri();
......
82 73
        return true;
83 74
    }
84 75

  
85
    /* (non-Javadoc)
86
     * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
87
     */
88
    /** {@inheritDoc} */
89 76
    @Override
90 77
    public void init(IWorkbench workbench, IStructuredSelection selection) {
91 78
        super.init(workbench, selection);
......
93 80

  
94 81
    }
95 82

  
96
    /* (non-Javadoc)
97
     * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#addPages()
98
     */
99
    /** {@inheritDoc} */
100 83
    @Override
101 84
    public void addPages() {
102 85
        addConfiguratorPage();
103 86
        addDataSourcePage();
104

  
105

  
106 87
    }
88

  
107 89
    @Override
108 90
    protected void addConfiguratorPage(){
109 91
        List<String> ignoreMethods = new ArrayList<>();
......
119 101
                "Please choose an xls file in the Distribution Update format.", new String[]{"*.xlsx", "*.xls", "*.*"});
120 102
        addPage(dataSourcePage);
121 103
    }
122

  
123

  
124
}
104
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/TcsImportWizard.java
26 26
 *
27 27
 * @author n.hoffmann
28 28
 * @created 15.06.2009
29
 * @version 1.0
30 29
 */
31 30
public class TcsImportWizard extends AbstractImportWizard<TcsXmlImportConfigurator> {
32 31

  
......
34 33

  
35 34
	private ImportFromFileDataSourceWizardPage dataSourcePage;
36 35

  
37
	/* (non-Javadoc)
38
	 * @see org.eclipse.jface.wizard.Wizard#performFinish()
39
	 */
40
	/** {@inheritDoc} */
41 36
	@Override
42 37
	public boolean performFinish() {
43 38
	    URI source = dataSourcePage.getUri();
......
50 45
	    return true;
51 46
	}
52 47

  
53
	/* (non-Javadoc)
54
	 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
55
	 */
56
	/** {@inheritDoc} */
57 48
	@Override
58 49
    public void init(IWorkbench workbench, IStructuredSelection selection) {
59 50
		super.init(workbench, selection);
60 51
		configurator = CdmStore.getImportManager().TcsConfigurator();
61 52
	}
62 53

  
63
	/* (non-Javadoc)
64
	 * @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#getConfigurator()
65
	 */
66
	/** {@inheritDoc} */
67 54
	@Override
68 55
	public TcsXmlImportConfigurator getConfigurator() {
69 56
		return configurator;
70 57
	}
71 58

  
72
	/* (non-Javadoc)
73
	 * @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#addPages()
74
	 */
75
	/** {@inheritDoc} */
76 59
	@Override
77 60
	public void addPages() {
78 61
		super.addPages();
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
1439 1439
                 }else{
1440 1440
                     logger.debug("This key of the abcd configurator needs to be added to the transformer: " + keyString);
1441 1441
                 }
1442

  
1443

  
1444 1442
             }
1445 1443
         }
1446 1444
    }
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/openurl/IOpenUrlEnabled.java
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
9

  
10 9
package eu.etaxonomy.taxeditor.ui.openurl;
11 10

  
12 11
import java.net.URI;
......
16 15
/**
17 16
 * @author n.hoffmann
18 17
 * @created Feb 3, 2011
19
 * @version 1.0
20 18
 */
21 19
public interface IOpenUrlEnabled {
22 20

  
23 21
	public void setOpenUrl(URI uri);
24 22

  
25
	/**
26
	 * @return
27
	 */
28 23
	public Reference getReference();
29 24

  
30
	/**
31
	 * @return
32
	 */
33
	public String getDetail();
34
	
35
}
25
	public String getDetail();	
26
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/openurl/OpenUrlReferencePage.java
33 33
/**
34 34
 * @author n.hoffmann
35 35
 * @created Jan 31, 2011
36
 * @version 1.0
37 36
 */
38 37
public class OpenUrlReferencePage extends WizardPage implements SelectionListener {
39 38

  
......
52 51

  
53 52
	private Label label_pageNumber; 
54 53
	
55
	/**
56
	 * @param pageName
57
	 */
58 54
	protected OpenUrlReferencePage() {
59 55
		super(NAME);
60 56
	}
61 57

  
62
	/* (non-Javadoc)
63
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
64
	 */
65 58
	@Override
66 59
	public void createControl(Composite parent) {
67 60
		container = getWizard().getFormFactory().createComposite(parent, SWT.NULL);
......
101 94
		return (OpenUrlSelectorWizard) super.getWizard();
102 95
	}
103 96

  
104
	/**
105
	 * @param jpegImage
106
	 */
107 97
	public void displayImage() {
108 98
		URI imageUri = getWizard().getOpenUrlReferenceImageUri();
109 99
		try {
......
127 117
		}
128 118
	}
129 119

  
130
	/**
131
	 * 
132
	 */
133 120
	private void configurePageBar() {
134 121
		setTitle(getWizard().getOpenUrlReference().getTitleCache());
135 122
		String pageNumber = getWizard().getOpenUrlReference().getPages();
......
138 125
		button_next.setEnabled(canPage(NEXT));
139 126
	}
140 127

  
141
	/* (non-Javadoc)
142
	 * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
143
	 */
144 128
	@Override
145 129
	public void widgetSelected(SelectionEvent e) {
146 130
		if(e.getSource() == button_next){
......
173 157
		return true;
174 158
	}
175 159

  
176
	/* (non-Javadoc)
177
	 * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
178
	 */
179 160
	@Override
180 161
	public void widgetDefaultSelected(SelectionEvent e) {}
181
}
162
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/openurl/OpenUrlSelectorElement.java
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
9

  
10 9
package eu.etaxonomy.taxeditor.ui.openurl;
11 10

  
12 11
import org.eclipse.core.runtime.IStatus;
......
27 26
/**
28 27
 * @author n.hoffmann
29 28
 * @created Jan 31, 2011
30
 * @version 1.0
31 29
 */
32 30
public class OpenUrlSelectorElement extends AbstractCdmFormElement implements SelectionListener{
33 31

  
......
61 59
		button.addSelectionListener(this);
62 60
	}
63 61

  
64
	/* (non-Javadoc)
65
	 * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
66
	 */
67 62
	@Override
68 63
	public void widgetSelected(SelectionEvent e) {
69 64
		if(openUrlEnabled.getReference() == null){
......
80 75
		}
81 76
	}
82 77

  
83
	/**
84
	 * @return
85
	 */
86 78
	public String getDetail() {
87 79
		return referenceDetail;
88 80
	}
......
91 83
		this.referenceDetail = referenceDetail;
92 84
	}
93 85

  
94
	/* (non-Javadoc)
95
	 * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
96
	 */
97 86
	@Override
98 87
	public void widgetDefaultSelected(SelectionEvent e) {}
99 88

  
100
	/**
101
	 * @param reference the reference to set
102
	 */
103 89
	public void setReference(Reference reference) {
104 90
		this.reference = reference;
105 91
	}
106 92

  
107
	/**
108
	 * @return the reference
109
	 */
110 93
	public Reference getReference() {
111 94
		return reference;
112 95
	}
113
}
96
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/e4/SpecimenImportViewE4.java
33 33
/**
34 34
 * @author pplitzner
35 35
 * @date Sep 3, 2014
36
 *
37 36
 */
38 37
public class SpecimenImportViewE4 extends DataImportViewE4<BioCaseResponse> {
39 38

  
......
45 44

  
46 45
    }
47 46

  
48
    /**
49
     * @param endPoint
50
     */
51 47
    public void setEndpoint(URI endPoint) {
52 48
        this.endPoint = endPoint;
53 49
    }
54 50

  
55
    /* (non-Javadoc)
56
     * @see eu.etaxonomy.taxeditor.view.dataimport.DataImportView#getTextForTableItem(java.lang.Object)
57
     */
58 51
    @Override
59 52
    protected String getTextForTableItem(BioCaseResponse item) {
60 53
        //TODO: could be defined in user preferences...
......
70 63
        }
71 64
    }
72 65

  
73
    /* (non-Javadoc)
74
     * @see eu.etaxonomy.taxeditor.view.dataimport.DataImportView#query()
75
     */
76 66
    @Override
77 67
    public void query() {
78 68
        String errorMessage = "Could not execute query " + query;
......
133 123
       // setResults(results);
134 124

  
135 125
    }
136

  
137

  
138

  
139
}
126
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/e4/SpecimenProviderSelectionWizardPageE4.java
24 24
import eu.etaxonomy.taxeditor.view.dataimport.QueryType;
25 25
import eu.etaxonomy.taxeditor.view.search.specimen.SpecimenProviderSelectionController;
26 26

  
27

  
28 27
/**
29 28
 * Wizard page for selecting the specimen provider
30 29
 * @author pplitzner
31 30
 * @date 12.09.2013
32
 *
33 31
 */
34 32
public class SpecimenProviderSelectionWizardPageE4 extends WizardPage{
35 33

  
......
46 44
        		"provider the access point URL must be entered.");
47 45
    }
48 46

  
49
    /* (non-Javadoc)
50
     * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
51
     */
52 47
    @Override
53 48
    public void createControl(Composite parent) {
54 49
        specimenProviderSelectionController = SpecimenProviderSelectionController.getInstance(parent, getWizard());
......
66 61
        }
67 62
    }
68 63

  
69
    /**
70
     * @return
71
     * @throws URISyntaxException
72
     */
73 64
    public URI getEndPoint() {
74 65
        return endPoint;
75 66
    }
76 67

  
77
    /* (non-Javadoc)
78
     * @see org.eclipse.jface.wizard.WizardPage#isPageComplete()
79
     */
80 68
    @Override
81 69
    public boolean isPageComplete() {
82 70
        if(specimenProviderSelectionController.getComposite().getBtnBioCaseProvider().getSelection()){
......
97 85
                    this.setErrorMessage(null);
98 86
                    return true;
99 87
                }
100

  
101

  
102

  
103 88
            } catch (MalformedURLException e) {
104 89
                setErrorMessage("A valid URL has to be entered.");
105 90
                return false;
......
115 100
        return false;
116 101
    }
117 102

  
118
    /**
119
     * @return the bioCaseQueryServiceWrapper
120
     */
121 103
    public ServiceWrapperBase getQueryServiceWrapper() {
122 104
        return serviceWrapper;
123 105
    }
124 106

  
125
    /**
126
     * @param bioCaseQueryServiceWrapper the bioCaseQueryServiceWrapper to set
127
     */
128 107
    public void setQueryServiceWrapper(ServiceWrapperBase queryServiceWrapper) {
129 108
        this.serviceWrapper = queryServiceWrapper;
130 109
    }
131 110

  
132
    /**
133
     * @return
134
     */
135 111
    public SpecimenProviderSelectionController getController() {
136 112
        return specimenProviderSelectionController;
137 113
    }
138

  
139

  
140

  
141

  
142
}
114
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/e4/SpecimenSearchWizardE4.java
46 46
 * Wizard for querying specimen provider.
47 47
 * @author pplitzner
48 48
 * @date 11.09.2013
49
 *
50 49
 */
51 50
public class SpecimenSearchWizardE4 extends Wizard {
52 51

  

Also available in: Unified diff