Revision 2ab21f97
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/MediaViewLabelProvider.java | ||
---|---|---|
1 |
// $Id$ |
|
2 | 1 |
/** |
3 | 2 |
* Copyright (C) 2017 EDIT |
4 | 3 |
* European Distributed Institute of Taxonomy |
... | ... | |
33 | 32 |
/** |
34 | 33 |
* @author k.luther |
35 | 34 |
* @date 11.10.2017 |
36 |
* |
|
37 | 35 |
*/ |
38 | 36 |
public class MediaViewLabelProvider extends LabelProvider implements IStyledLabelProvider { |
39 | 37 |
|
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/editor/e4/AlignmentEditorE4.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.molecular.editor.e4; |
10 | 10 |
|
11 |
|
|
12 | 11 |
import java.io.File; |
13 | 12 |
import java.io.IOException; |
14 | 13 |
import java.io.InputStream; |
... | ... | |
776 | 775 |
return null; |
777 | 776 |
} |
778 | 777 |
} |
779 |
} |
|
778 |
} |
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/io/CDMSequenceMatrixAdapter.java | ||
---|---|---|
1 |
// $Id$ |
|
2 |
/** |
|
3 |
* Copyright (C) 2016 EDIT |
|
4 |
* European Distributed Institute of Taxonomy |
|
5 |
* http://www.e-taxonomy.eu |
|
6 |
* |
|
7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
9 |
*/ |
|
10 | 1 |
package eu.etaxonomy.taxeditor.molecular.io; |
11 | 2 |
|
12 |
|
|
13 | 3 |
import java.io.IOException; |
14 | 4 |
import java.net.URI; |
15 | 5 |
import java.util.ArrayList; |
... | ... | |
40 | 30 |
import info.bioinfweb.jphyloio.events.type.EventContentType; |
41 | 31 |
import info.bioinfweb.jphyloio.utils.JPhyloIOWritingUtils; |
42 | 32 |
|
43 |
|
|
44 |
|
|
45 | 33 |
/** |
46 | 34 |
* In implementation of {@link MatrixDataAdapter} that delegates to a {@link Sequence} object. |
47 | 35 |
* <p> |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/abcd/AbcdImportWizardE4.java | ||
---|---|---|
58 | 58 |
CdmStore.getImportManager().runMoniteredOperation(configurator, new File(source), SOURCE_TYPE.INPUTSTREAM); |
59 | 59 |
|
60 | 60 |
return true; |
61 |
|
|
62 | 61 |
} |
63 | 62 |
|
64 | 63 |
@Override |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportWizard.java | ||
---|---|---|
37 | 37 |
private AbcdSourceSelectionPage dataSourcePage; |
38 | 38 |
private ClassificationChooserWizardPage classificationChooserWizardPage; |
39 | 39 |
|
40 |
/** {@inheritDoc} */ |
|
41 | 40 |
@Override |
42 | 41 |
public Abcd206ImportConfigurator getConfigurator() { |
43 | 42 |
return configurator; |
44 | 43 |
} |
45 | 44 |
|
46 |
/** {@inheritDoc} */ |
|
47 | 45 |
@Override |
48 | 46 |
public boolean performFinish() { |
49 | 47 |
URI source = dataSourcePage.getUri(); |
... | ... | |
56 | 54 |
CdmStore.getImportManager().runMoniteredOperation(configurator, new File(source), SOURCE_TYPE.INPUTSTREAM); |
57 | 55 |
|
58 | 56 |
return true; |
59 |
|
|
60 | 57 |
} |
61 | 58 |
|
62 | 59 |
@Override |
... | ... | |
77 | 74 |
addPage(configuratorWizardPage); |
78 | 75 |
} |
79 | 76 |
|
80 |
/** {@inheritDoc} */ |
|
81 | 77 |
@Override |
82 | 78 |
public void addPages() { |
83 | 79 |
super.addPages(); |
... | ... | |
89 | 85 |
addPage(classificationChooserWizardPage); |
90 | 86 |
addPage(dataSourcePage); |
91 | 87 |
} |
92 |
} |
|
88 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdSourceSelectionPage.java | ||
---|---|---|
16 | 16 |
/** |
17 | 17 |
* @author k.luther |
18 | 18 |
* @date 29.03.2016 |
19 |
* |
|
20 | 19 |
*/ |
21 | 20 |
public abstract class AbcdSourceSelectionPage extends WizardPage { |
22 | 21 |
|
... | ... | |
27 | 26 |
*/ |
28 | 27 |
protected AbcdSourceSelectionPage(String pageName) { |
29 | 28 |
super(pageName); |
30 |
|
|
31 | 29 |
} |
32 | 30 |
|
33 | 31 |
public abstract URI getUri(); |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
} |
|
32 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/EndnoteImportWizard.java | ||
---|---|---|
23 | 23 |
* |
24 | 24 |
* @author n.hoffmann |
25 | 25 |
* @created Sep 18, 2009 |
26 |
* @version 1.0 |
|
27 | 26 |
*/ |
28 | 27 |
public class EndnoteImportWizard extends AbstractImportWizard<EndnoteImportConfigurator> implements IImportWizard { |
29 | 28 |
|
... | ... | |
31 | 30 |
|
32 | 31 |
private ImportFromFileDataSourceWizardPage dataSourcePage; |
33 | 32 |
|
34 |
/* (non-Javadoc) |
|
35 |
* @see org.eclipse.jface.wizard.Wizard#performFinish() |
|
36 |
*/ |
|
37 |
/** {@inheritDoc} */ |
|
38 | 33 |
@Override |
39 | 34 |
public boolean performFinish() { |
40 | 35 |
|
... | ... | |
46 | 41 |
return true; |
47 | 42 |
} |
48 | 43 |
|
49 |
/* (non-Javadoc) |
|
50 |
* @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#addPages() |
|
51 |
*/ |
|
52 |
/** {@inheritDoc} */ |
|
53 | 44 |
@Override |
54 | 45 |
public void addPages() { |
55 | 46 |
super.addPages(); |
... | ... | |
58 | 49 |
addPage(dataSourcePage); |
59 | 50 |
} |
60 | 51 |
|
61 |
/* (non-Javadoc) |
|
62 |
* @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection) |
|
63 |
*/ |
|
64 |
/** {@inheritDoc} */ |
|
65 | 52 |
public void init(IWorkbench workbench, IStructuredSelection selection) { |
66 | 53 |
super.init(workbench, selection); |
67 | 54 |
configurator = CdmStore.getImportManager().EndnoteConfigurator(); |
68 | 55 |
} |
69 | 56 |
|
70 |
/* (non-Javadoc) |
|
71 |
* @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#getConfigurator() |
|
72 |
*/ |
|
73 |
/** {@inheritDoc} */ |
|
74 | 57 |
@Override |
75 | 58 |
public EndnoteImportConfigurator getConfigurator() { |
76 | 59 |
return configurator; |
77 | 60 |
} |
78 |
} |
|
61 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ImportFromFileDataSourceWizardPage.java | ||
---|---|---|
115 | 115 |
this.textReferenceString = textReferenceString; |
116 | 116 |
} |
117 | 117 |
|
118 |
|
|
119 | 118 |
@Override |
120 | 119 |
public URI getUri() { |
121 | 120 |
return getFile().toURI(); |
... | ... | |
125 | 124 |
public boolean isPageComplete() { |
126 | 125 |
return CdmUtils.isNotBlank(text_source.getText()); |
127 | 126 |
} |
128 |
|
|
129 |
} |
|
127 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/JaxbImportWizard.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.wizard; |
11 | 10 |
|
12 | 11 |
import java.net.URI; |
... | ... | |
23 | 22 |
* |
24 | 23 |
* @author n.hoffmann |
25 | 24 |
* @created 15.06.2009 |
26 |
* @version 1.0 |
|
27 | 25 |
*/ |
28 | 26 |
public class JaxbImportWizard extends AbstractImportWizard<JaxbImportConfigurator> { |
29 | 27 |
|
... | ... | |
31 | 29 |
|
32 | 30 |
private ImportFromFileDataSourceWizardPage dataSourcePage; |
33 | 31 |
|
34 |
/* (non-Javadoc) |
|
35 |
* @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator() |
|
36 |
*/ |
|
37 |
/** {@inheritDoc} */ |
|
38 | 32 |
@Override |
39 | 33 |
public JaxbImportConfigurator getConfigurator() { |
40 | 34 |
return configurator; |
41 | 35 |
} |
42 | 36 |
|
43 |
/* (non-Javadoc) |
|
44 |
* @see org.eclipse.jface.wizard.Wizard#performFinish() |
|
45 |
*/ |
|
46 |
/** {@inheritDoc} */ |
|
47 | 37 |
@Override |
48 | 38 |
public boolean performFinish() { |
49 | 39 |
URI source = dataSourcePage.getUri(); |
... | ... | |
55 | 45 |
return true; |
56 | 46 |
} |
57 | 47 |
|
58 |
/* (non-Javadoc) |
|
59 |
* @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection) |
|
60 |
*/ |
|
61 |
/** {@inheritDoc} */ |
|
62 | 48 |
public void init(IWorkbench workbench, IStructuredSelection selection) { |
63 | 49 |
super.init(workbench, selection); |
64 | 50 |
configurator = CdmStore.getImportManager().JaxbConfigurator(); |
65 | 51 |
} |
66 | 52 |
|
67 |
/* (non-Javadoc) |
|
68 |
* @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#addPages() |
|
69 |
*/ |
|
70 |
/** {@inheritDoc} */ |
|
71 | 53 |
@Override |
72 | 54 |
public void addPages() { |
73 | 55 |
super.addPages(); |
... | ... | |
76 | 58 |
"Please choose an XML file in the cdm JAXB format.", new String[]{"*.xml"}); |
77 | 59 |
addPage(dataSourcePage); |
78 | 60 |
} |
79 |
} |
|
61 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/AbcdImportPreference.java | ||
---|---|---|
38 | 38 |
/** |
39 | 39 |
* @author k.luther |
40 | 40 |
* @since 23.03.2018 |
41 |
* |
|
42 | 41 |
*/ |
43 | 42 |
public class AbcdImportPreference extends CdmPreferencePage implements IE4PreferencePage, SelectionListener { |
44 | 43 |
|
... | ... | |
364 | 363 |
} |
365 | 364 |
this.setApply(true); |
366 | 365 |
|
367 |
|
|
368 | 366 |
// PreferencesUtil.recursiveSetEnabled(composite, override); |
369 | 367 |
setApply(true); |
370 | 368 |
|
... | ... | |
392 | 390 |
PreferencesUtil.setBooleanValue( PreferencesUtil.prefOverrideKey(PreferencePredicate.AbcdImportConfig.getKey()), override); |
393 | 391 |
} |
394 | 392 |
PreferencesUtil.setStringValue(PreferencePredicate.AbcdImportConfig.getKey(), ""); |
395 |
|
|
396 |
|
|
397 | 393 |
} |
398 | 394 |
return true; |
399 | 395 |
} |
400 | 396 |
|
401 |
/** |
|
402 |
* {@inheritDoc} |
|
403 |
*/ |
|
404 | 397 |
@Override |
405 | 398 |
public void widgetDefaultSelected(SelectionEvent e) { |
406 | 399 |
// TODO Auto-generated method stub |
... | ... | |
480 | 473 |
} |
481 | 474 |
index++; |
482 | 475 |
} |
483 |
|
|
484 | 476 |
} |
485 |
|
|
486 | 477 |
} |
487 |
|
|
488 |
} |
|
478 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SequenceGeneralDetailElement.java | ||
---|---|---|
28 | 28 |
/** |
29 | 29 |
* @author pplitzner |
30 | 30 |
* @date 19.12.2013 |
31 |
* |
|
32 | 31 |
*/ |
33 | 32 |
public class SequenceGeneralDetailElement extends AbstractCdmDetailElement<Sequence> { |
34 | 33 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/search/facet/term/TermSearchResultComposite.java | ||
---|---|---|
47 | 47 |
/** |
48 | 48 |
* @author pplitzner |
49 | 49 |
* @since Jan 23, 2019 |
50 |
* |
|
51 | 50 |
*/ |
52 | 51 |
public class TermSearchResultComposite extends CheckBoxSearchResultComposite<AbstractTermDto, TermSearchResult> { |
53 | 52 |
|
Also available in: Unified diff
cleanup