Revision 150b624d
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/MediaContentProvider.java | ||
---|---|---|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
if(taxon == null){ |
61 |
MessagingUtils.error(getClass(), "Taxon is null", null); |
|
61 |
MessagingUtils.error(getClass(), "Taxon is null", null); //$NON-NLS-1$
|
|
62 | 62 |
return NO_CHILDREN; |
63 | 63 |
} |
64 | 64 |
HashSet<DescriptionBase> imageGalleries = new HashSet<DescriptionBase>(); |
... | ... | |
90 | 90 |
} |
91 | 91 |
|
92 | 92 |
} catch (DerivedUnitFacadeNotSupportedException e) { |
93 |
MessagingUtils.error(this.getClass(), "DerivedUnitFacadeNotSupportedException when trying to instantiate DerivedUnitFacade", e); |
|
93 |
MessagingUtils.error(this.getClass(), "DerivedUnitFacadeNotSupportedException when trying to instantiate DerivedUnitFacade", e); //$NON-NLS-1$
|
|
94 | 94 |
} |
95 | 95 |
} |
96 | 96 |
else if (parentElement instanceof FieldUnit){ |
... | ... | |
138 | 138 |
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {} |
139 | 139 |
|
140 | 140 |
private List<Media> getImages(DescriptionBase description){ |
141 |
Assert.isTrue(description.isImageGallery(), "Description should have the imageGallery flag set."); |
|
141 |
Assert.isTrue(description.isImageGallery(), "Description should have the imageGallery flag set."); //$NON-NLS-1$
|
|
142 | 142 |
|
143 | 143 |
Set<DescriptionElementBase> elements = description.getElements(); |
144 | 144 |
if (elements != null) { |
145 | 145 |
// by definition, image galleries have only one description element |
146 | 146 |
if(elements.size() > 1){ |
147 |
MessagingUtils.error(this.getClass(), "There should be one and only one description element to hold the images. Found: " + elements.size() + " InDescription ID: " + description.getUuid(), null); |
|
147 |
MessagingUtils.error(this.getClass(), "There should be one and only one description element to hold the images. Found: " + elements.size() + " InDescription ID: " + description.getUuid(), null); //$NON-NLS-1$ //$NON-NLS-2$
|
|
148 | 148 |
} |
149 | 149 |
if (!elements.isEmpty()){ |
150 | 150 |
DescriptionElementBase element = elements.iterator().next(); |
Also available in: Unified diff
ref #4611 complete i18n for taxeditor.editor plugin