Revision de138c43
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailElement.java | ||
---|---|---|
318 | 318 |
Integer referencingObjectsCount = CdmStore.getCommonService().getReferencingObjectsCount(cdmBase); |
319 | 319 |
|
320 | 320 |
if (referencingObjectsCount > 1){ |
321 |
setWarnForReferencedObjects(formFactory.createLabel(formElement, CdmUtils.Nz("The reference is referenced by " + referencingObjectsCount+ " objects, if you change it, it is changed for all these objects")));
|
|
321 |
setWarnForReferencedObjects(formFactory.createLabel(formElement, CdmUtils.Nz("The "+ cdmBase.getUserFriendlyTypeName()+" is referenced by " + referencingObjectsCount+ " objects, if you change it, it is changed for all these objects")));
|
|
322 | 322 |
getWarnForReferencedObjects().setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_RED)); |
323 | 323 |
getWarnForReferencedObjects().setLayout(LayoutConstants.FILL(2, 3)); |
324 | 324 |
getWarnForReferencedObjects().setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_RED)); |
Also available in: Unified diff
more generic label for warning label if object is referenced by more than one other object