Project

General

Profile

« Previous | Next » 

Revision c56aa276

Added by Katja Luther almost 9 years ago

fixing the disabling of the ToggleableTextElement when the titlecache is protected.

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/ToggleableTextElement.java
149 149
	@Override
150 150
    public void setEnabled(boolean enabled) {
151 151
		text_cache.setEnabled(enabled);
152
        button_toggle.setEnabled(enabled);
153
		button_toggle.setGrayed(enabled);
152
       	button_toggle.setGrayed(enabled);
154 153
		button_toggle.setSelection(enabled);
155 154
		String symbolicName = enabled ? Resources.COLOR_FONT_DEFAULT : Resources.COLOR_TEXT_DISABLED;
156 155
		text_cache.setForeground(StoreUtil.getColor(symbolicName));

Also available in: Unified diff