import org.eclipse.swt.widgets.Text;
/**
- *
* @author pplitzner
* @since Oct 5, 2017
- *
*/
public class ImportFromFileDataSourceWithReferenceWizardPage extends ImportFromFileDataSourceWizardPage {
super();
}
- /** {@inheritDoc} */
@Override
public void createControl(Composite parent) {
super.createControl(parent);
public void setTextReferenceString(Text textReferenceString) {
this.textReferenceString = textReferenceString;
}
-
-}
+}
\ No newline at end of file
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.io.e4.in;
import java.io.File;
public boolean isPageComplete() {
return CdmUtils.isNotBlank(text_source.getText());
}
-
-}
+}
\ No newline at end of file
import eu.etaxonomy.taxeditor.store.CdmStore;
/**
- *
* @author pplitzner
* @since Oct 5, 2017
- *
*/
public class SddImportWizardE4 extends AbstractImportWizardE4<SDDImportConfigurator> {
-
private SDDImportConfigurator configurator;
private ImportFromFileDataSourceWithReferenceWizardPage dataSourcePage;
super(context, partService);
}
- /** {@inheritDoc} */
@Override
public SDDImportConfigurator getConfigurator() {
return configurator;
super.addPages();
}
- /** {@inheritDoc} */
@Override
public boolean performFinish() {
URI source = dataSourcePage.getUri();
return true;
}
- /** {@inheritDoc} */
@Override
public void init() {
configurator = CdmStore.getImportManager().SddConfigurator();
}
-}
+}
\ No newline at end of file
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.io.wizard;
import java.net.URI;
import eu.etaxonomy.taxeditor.ui.dialog.selection.SelectionDialogFactory;
/**
- *
* @author pplitzner
- *
*/
public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard implements SelectionListener {
"Tooltips will explain parameters in more detail", configurator, true, false);
}
-
-
- /** {@inheritDoc} */
@Override
public void createControl(Composite parent) {
Composite composite = new Composite(parent, SWT.NULL);
}
});
-
-
Button checkBoxMoveToDefaultClassification = new Button(composite, SWT.CHECK);
gridData = new GridData();
gridData.horizontalAlignment = GridData.FILL_HORIZONTAL;
abcdImportConfigurator.setDnaSoure(null);
}
}
-
-
}
- public void saveConfigToPrefernceStore() {
+ public void saveConfigToPrefernceStore() {
try{
abcdImportConfigurator.setDnaSoure(URI.create(textDNAProviderString.getText()));
}catch(IllegalArgumentException e){
abcdImportConfigurator.setDnaSoure(null);
}
-
PreferencesUtil.setStringValue(IPreferenceKeys.LAST_USED_ABCD_CONFIG, abcdImportConfigurator.toString());
-
-
}
public String createConfigString(){
}
-
-
- /* (non-Javadoc)
- * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
- */
@Override
public void widgetDefaultSelected(SelectionEvent e) {
// TODO Auto-generated method stub
-
}
public void createAbcdImportConfig() {
this.abcdImportConfigurator = PreferencesUtil.getLocalAbcdImportConfigurator(false);
-
}
}
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.io.wizard;
import java.io.File;
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
import eu.etaxonomy.taxeditor.store.CdmStore;
-
/**
* <p>ExcelNormalExplicitTaxaImportWizard class.</p>
*
* @author n.hoffmann
* @created Sep 22, 2009
- * @version 1.0
*/
public class ExcelNormalExplicitTaxaImportWizard extends AbstractImportWizard<NormalExplicitImportConfigurator>{
private ImportFromFileDataSourceWizardPage dataSourcePage;
private static final Logger logger = Logger.getLogger(ExcelNormalExplicitTaxaImportWizard.class);
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator()
- */
- /** {@inheritDoc} */
@Override
public NormalExplicitImportConfigurator getConfigurator() {
return configurator;
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.wizard.Wizard#performFinish()
- */
- /** {@inheritDoc} */
@Override
public boolean performFinish() {
URI source = dataSourcePage.getUri();
return true;
}
- /* (non-Javadoc)
- * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
- */
- /** {@inheritDoc} */
@Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
super.init(workbench, selection);
}
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#addPages()
- */
- /** {@inheritDoc} */
@Override
public void addPages() {
super.addPages();
"Please choose an xls file in the NormalExplicit format.", new String[]{"*.xlsx", "*.xls", "*.*"});
addPage(dataSourcePage);
}
-}
+}
\ No newline at end of file
*
* @author n.hoffmann
* @created Jun 16, 2010
- * @version 1.0
*/
public class SddImportWizard extends AbstractImportWizard<SDDImportConfigurator> {
private ImportFromFileDataSourceWizardPage dataSourcePage;
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator()
- */
- /** {@inheritDoc} */
@Override
public SDDImportConfigurator getConfigurator() {
return configurator;
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.jface.wizard.Wizard#addPage(org.eclipse.jface.wizard.IWizardPage)
- */
- /** {@inheritDoc} */
@Override
public void addPages() {
super.addPages();
addPage(dataSourcePage);
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.wizard.Wizard#performFinish()
- */
- /** {@inheritDoc} */
@Override
public boolean performFinish() {
URI source = dataSourcePage.getUri();
return true;
}
- /* (non-Javadoc)
- * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
- */
- /** {@inheritDoc} */
@Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
super.init(workbench, selection);
configurator = CdmStore.getImportManager().SddConfigurator();
}
-}
+}
\ No newline at end of file
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.ui.element;
import java.io.IOException;
/**
* @author n.hoffmann
* @created Sep 24, 2010
- * @version 1.0
*/
public class ImageElement extends AbstractCdmFormElement implements PaintListener{
/**
* @author pplitzner
* @since Jul 17, 2019
- *
*/
public class LoadImageJob extends Job {
public LoadImageJob(String name) {
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.ui.openurl;
import java.net.URI;
/**
* @author n.hoffmann
* @created Jan 31, 2011
- * @version 1.0
*/
public class OpenUrlSelectorWizard extends Wizard {
private final String referenceDetail;
-
-
/**
* @param openUrlSelectorElement
* @param reference
query.startPage = referenceDetail;
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.wizard.Wizard#addPages()
- */
@Override
public void addPages() {
super.addPages();
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.wizard.Wizard#performFinish()
- */
@Override
public boolean performFinish() {
return true;
}
- /**
- * @param openUrlReference the openUrlReference to set
- */
public void setOpenUrlReference(OpenUrlReference openUrlReference) {
this.openUrlReference = openUrlReference;
this.openUrlReferenceImageUri = openUrlReference.getJpegImage(PreferencesUtil.getIntValue(PreferencePredicate.MobotOpenUrlServiceMaxWidth.getKey(), true)
, PreferencesUtil.getIntValue(PreferencePredicate.MobotOpenUrlServiceMaxHeight.getKey(), true));
}
-
- /**
- * @return the openUrlReference
- */
public OpenUrlReference getOpenUrlReference() {
return openUrlReference;
}
- /**
- * @return
- */
public List<OpenUrlReference> getResult() {
return openUrlServiceWrapper.doResolve(query);
}
- /**
- * @return the formFactory
- */
public CdmFormFactory getFormFactory() {
return formFactory;
}
- /**
- * @return the openUrlServiceWrapper
- */
public MobotOpenUrlServiceWrapper getOpenUrlServiceWrapper() {
return openUrlServiceWrapper;
}
- /**
- * @return
- */
public URI getOpenUrlReferenceImageUri() {
return openUrlReferenceImageUri;
}
public String getReferenceDetail() {
return referenceDetail;
}
-}
+}
\ No newline at end of file
import eu.etaxonomy.taxeditor.view.dataimport.GbifResponseComparator;
/**
- *
* @author pplitzner
* @since Oct 4, 2017
- *
*/
public class SaveImportedSpecimenActionE4 extends Action {
@Override
public void run() {
Table table = dataImportView.getTable();
- Collection<GbifResponse> checkedResults = new HashSet<GbifResponse>();
- Collection<BioCaseResponse> checkedAbcdResults = new HashSet<BioCaseResponse>();
+ Collection<GbifResponse> checkedResults = new HashSet<>();
+ Collection<BioCaseResponse> checkedAbcdResults = new HashSet<>();
Object data;
- Set<String[]> unitIdsGbif = new HashSet<String[]>();
- Set<String[]> unitIdsBioCase = new HashSet<String[]>();
- List<GbifResponse> biocaseResponses = new ArrayList<GbifResponse>();
+ Set<String[]> unitIdsGbif = new HashSet<>();
+ Set<String[]> unitIdsBioCase = new HashSet<>();
+ List<GbifResponse> biocaseResponses = new ArrayList<>();
for(TableItem item:table.getItems()){
if(item.getChecked()){
}else{
unitIdsGbif.add(tripleId);
}
-
-
}
}
Collections.sort(biocaseResponses, getComparator());
Abcd206ImportConfigurator configuratorAbcd;
- List<Abcd206ImportConfigurator> abcdConfigurators = new ArrayList<Abcd206ImportConfigurator>();
+ List<Abcd206ImportConfigurator> abcdConfigurators = new ArrayList<>();
DataSetResponse dataSetResponse;
OccurenceQuery bioCaseOccurrenceQuery = null;
URI dataSetUri = null;
configuratorAbcd.setSourceReferenceTitle(sourceRef);
}
- unitIdsBioCase = new HashSet<String[]>();
+ unitIdsBioCase = new HashSet<>();
bioCaseOccurrenceQuery = new OccurenceQuery(unitIdsBioCase);
configuratorAbcd.setOccurenceQuery(bioCaseOccurrenceQuery);
Job gbifJob = CdmStore.getImportManager().createIOServiceJob(configurator);
CdmStore.getImportManager().run(gbifJob);
}
-
}
private void persistTerm(DefinedTermBase<?> term, ITermService termService, ConversationHolder conversation){
}
return comparator;
}
-
-}
+}
\ No newline at end of file