Project

General

Profile

« Previous | Next » 

Revision 179110e9

Added by Katja Luther about 6 years ago

add symbol to unplaced and excluded taxa in taxonnavigator

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TaxonNavigatorLabelProviderE4.java
10 10
package eu.etaxonomy.taxeditor.navigation.navigator.e4;
11 11

  
12 12
import org.eclipse.jface.viewers.StyledString;
13
import org.eclipse.jface.viewers.StyledString.Styler;
14
import org.eclipse.swt.graphics.TextStyle;
13 15
import org.eclipse.ui.navigator.IDescriptionProvider;
14 16

  
15 17
import eu.etaxonomy.cdm.model.taxon.Classification;
16 18
import eu.etaxonomy.cdm.model.taxon.Taxon;
17 19
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
18 20
import eu.etaxonomy.taxeditor.navigation.l10n.Messages;
21
import eu.etaxonomy.taxeditor.preference.Resources;
22
import eu.etaxonomy.taxeditor.store.StoreUtil;
19 23
import eu.etaxonomy.taxeditor.util.TaxonTreeNodeLabelProvider;
20 24

  
21 25
/**
......
38 42
//            return "= " + ((Synonym) element).getName().getTitleCache(); //$NON-NLS-1$
39 43
//        }
40 44
    }
45
//    @Override
46
//    public Font getFont(Object element) {
47
//
48
//        return new Font(null, "Arial Unicode MS", 10, SWT.NORMAL);
49
//
50
//    }
41 51

  
42 52
    /**
43 53
     * {@inheritDoc}
......
76 86
//        }
77 87
    }
78 88

  
89

  
90
    private Styler getNotGrantedStyler() {
91
        if (notGrantedStyler  == null) {
92
            notGrantedStyler = new Styler() {
93
                @Override
94
                public void applyStyles(TextStyle textStyle) {
95
                    textStyle.underline = false;
96
                    textStyle.foreground = StoreUtil.getColor(Resources.COLOR_TEXT_DISABLED);
97
                }
98
            };
99
        }
100
        return notGrantedStyler;
101
    }
102

  
103

  
79 104
}

Also available in: Unified diff