Project

General

Profile

Revision de138c43

IDde138c4352d27e9bd54c074dc44f441ed849152a
Parent 20becd2a
Child b4e627e8, 41a6a18d

Added by Katja Luther about 3 years ago

more generic label for warning label if object is referenced by more than one other object

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)