Project

General

Profile

« Previous | Next » 

Revision 751d31d7

Added by Patrick Plitzner almost 10 years ago

  • removed TextReadOnly (#4254)
    • just used a Text field with "editable" flag set to false
    • added dummy title cache text as section header
    • just showing the first 10 characters

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/OriginalLabelDataSection.java
43 43
     */
44 44
    @Override
45 45
    public String getHeading() {
46
        return "Original Label Data";
46
        return "Original Label Data: ";
47
    }
48

  
49
    /* (non-Javadoc)
50
     * @see org.eclipse.ui.forms.widgets.ExpandableComposite#setText(java.lang.String)
51
     */
52
    @Override
53
    public void setText(String title) {
54
        String text = getHeading();
55
        if(getEntity()!=null){// && getEntity().getOriginalLabelData!=null){
56
            String titleCache = getEntity().getTitleCache();
57
            text += titleCache.substring(0, Math.min(10, titleCache.length()));
58
            text += "...";
59
        }
60
        if(text!=null){
61
            super.setText(text);
62
        }
63
        else{
64
            super.setText(title);
65
        }
47 66
    }
48 67

  
49 68
    /* (non-Javadoc)

Also available in: Unified diff