Revision ec574f77
Added by Andreas Müller almost 8 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/DeleteMisapplicationOperation.java | ||
---|---|---|
31 | 31 |
* |
32 | 32 |
* @author p.ciardelli |
33 | 33 |
* @created 16.01.2009 |
34 |
* @version 1.0 |
|
35 | 34 |
*/ |
36 | 35 |
public class DeleteMisapplicationOperation extends AbstractPostTaxonOperation { |
37 | 36 |
|
38 | 37 |
private final Taxon misapplication; |
39 | 38 |
|
40 |
private Reference<?> citation;
|
|
39 |
private Reference citation; |
|
41 | 40 |
|
42 | 41 |
private String microcitation; |
43 | 42 |
|
... | ... | |
93 | 92 |
return postExecute(null); |
94 | 93 |
} |
95 | 94 |
|
96 |
/* (non-Javadoc) |
|
97 |
* @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
98 |
*/ |
|
99 | 95 |
/** {@inheritDoc} */ |
100 | 96 |
@Override |
101 | 97 |
public IStatus redo(IProgressMonitor monitor, IAdaptable info) |
... | ... | |
103 | 99 |
return execute(monitor, info); |
104 | 100 |
} |
105 | 101 |
|
106 |
/* (non-Javadoc) |
|
107 |
* @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
108 |
*/ |
|
109 | 102 |
/** {@inheritDoc} */ |
110 | 103 |
@Override |
111 | 104 |
public IStatus undo(IProgressMonitor monitor, IAdaptable info) |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SequenceReferenceCollectionDetailElement.java | ||
---|---|---|
26 | 26 |
* @date 07.01.2014 |
27 | 27 |
* |
28 | 28 |
*/ |
29 |
public class SequenceReferenceCollectionDetailElement extends AbstractEntityCollectionElement<Reference<?>>{
|
|
29 |
public class SequenceReferenceCollectionDetailElement extends AbstractEntityCollectionElement<Reference>{ |
|
30 | 30 |
|
31 | 31 |
protected EntitySelectionElement<Reference> selection_reference; |
32 | 32 |
protected TextWithLabelElement text_referenceDetail; |
33 | 33 |
|
34 | 34 |
public SequenceReferenceCollectionDetailElement(CdmFormFactory formFactory, |
35 |
AbstractFormSection<?> section, Reference<?> entity,
|
|
35 |
AbstractFormSection<?> section, Reference entity, |
|
36 | 36 |
SelectionListener removeListener, int style) { |
37 | 37 |
super(formFactory, section, entity, removeListener, null, style); |
38 | 38 |
} |
... | ... | |
49 | 49 |
} |
50 | 50 |
|
51 | 51 |
@Override |
52 |
public void setEntity(Reference<?> entity) {
|
|
52 |
public void setEntity(Reference entity) { |
|
53 | 53 |
this.entity = entity; |
54 | 54 |
selection_reference.setEntity(entity); |
55 | 55 |
text_referenceDetail.setText(entity.getReferenceAbstract()); |
... | ... | |
61 | 61 |
if(getParentElement() instanceof SequenceReferenceCollectionDetailSection){ |
62 | 62 |
Sequence sequence = ((SequenceReferenceCollectionDetailSection) getParentElement()).getEntity(); |
63 | 63 |
sequence.removeCitation(entity); |
64 |
Reference<?> newCitation = selection_reference.getSelection();
|
|
64 |
Reference newCitation = selection_reference.getSelection(); |
|
65 | 65 |
sequence.addCitation(newCitation); |
66 | 66 |
entity = newCitation; |
67 | 67 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/media/MediaSpecimenGeneralDetailElement.java | ||
---|---|---|
80 | 80 |
text_accessionNumber = formFactory.createTextWithLabelElement(formElement, "Accession Number", entity.getAccessionNumber(), style); |
81 | 81 |
|
82 | 82 |
//the first PrimaryMediaSource is used for storing the reference |
83 |
Reference<?> publishedIn = null;
|
|
83 |
Reference publishedIn = null; |
|
84 | 84 |
for(IdentifiableSource source:media.getSources()){ |
85 | 85 |
if(source.getType()==OriginalSourceType.PrimaryMediaSource){ |
86 | 86 |
publishedIn = source.getCitation(); |
Also available in: Unified diff
Remove generics from Reference in TaxEditor #5830