Project

General

Profile

« Previous | Next » 

Revision 379b7034

Added by Andreas Müller almost 6 years ago

adapt int to long for counts in TaxEditor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferencingObjectsMessagesSection.java
29 29
public class ReferencingObjectsMessagesSection extends AbstractFormSection {
30 30

  
31 31

  
32
    Reference reference;
33
    Label warnForReferencedObjects;
34

  
35

  
32
    private Reference reference;
33
    private Label warnForReferencedObjects;
34
    
36 35
    public ReferencingObjectsMessagesSection(CdmFormFactory formFactory, ICdmFormElement layoutComposite, int style, Reference reference){
37 36
        super(formFactory, layoutComposite, style);
38 37
        this.reference = reference;
39 38
    }
40 39

  
41

  
42

  
43

  
44 40
    private void displayReferencingObjectsMessage() {
45 41

  
46 42
        if (reference.getId() != 0){
47
            Integer referencingObjectsCount = CdmStore.getCommonService().getReferencingObjectsCount(reference);
48
            Composite container;
43
            long referencingObjectsCount = CdmStore.getCommonService().getReferencingObjectsCount(reference);
49 44
            if (referencingObjectsCount > 1){
50 45

  
51 46
                    warnForReferencedObjects = formFactory.createLabel(getLayoutComposite(), CdmUtils.Nz("The reference is referenced by " + referencingObjectsCount+ " objects, if you change it, it is changed for all these objects"));
......
54 49
                    warnForReferencedObjects.setForeground(Display.getCurrent().getSystemColor(
55 50
                            SWT.COLOR_RED));
56 51

  
57

  
58 52
                //warnForReferencedObjects.setVisible(false);
59 53
            }
60 54
        }
61

  
62

  
63

  
64 55
    }
65

  
66

  
67

  
68 56
}

Also available in: Unified diff