Project

General

Profile

« Previous | Next » 

Revision 217d241a

Added by Katja Luther about 6 years ago

sec microRef should be orange if the titleCache is protected

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailElement.java
94 94
		if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){
95 95
			text_appendedPhrase = formFactory.createTextWithLabelElement(
96 96
					formElement, "Appended Phrase", entity.getAppendedPhrase(),
97
					SWT.NULL);
97
					SWT.WRAP);
98
			//formFactory.createTextWithLabelElement(formElement, "Appended Phrase", nonViralName.getAppendedPhrase(), style);
98 99
		}
99 100

  
100 101
		selection_secundum = formFactory.createSelectionElement(Reference.class,
......
105 106
		text_secundum_microreference = formFactory.createTextWithLabelElement(
106 107
                formElement, "Micro Reference",
107 108
               entity.getSecMicroReference(),null,
108
                SWT.NULL);
109
                SWT.WRAP);
109 110

  
110 111
		// TODO RL
111 112
		if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)) {
......
156 157
		super.updateContent();
157 158
		toggleable_cache.setEnabled(getEntity().isProtectedTitleCache());
158 159
		setIrrelevant(toggleable_cache.getState(),
159
				Arrays.asList(new Object[] { toggleable_cache }));
160
				Arrays.asList(new Object[] { toggleable_cache, checkbox_published, checkbox_unplaced, checkbox_excluded }));
160 161
	}
161 162

  
162 163
	@Override
......
194 195
        boolean pushedState = toggleable_cache.getState();
195 196

  
196 197
        getEntity().setTitleCache(toggleable_cache.getText(), pushedState);
197
        setIrrelevant(pushedState, Arrays.asList(new Object[] { toggleable_cache, text_secundum_microreference,text_appendedPhrase, checkbox_published, checkbox_unplaced, checkbox_excluded}));
198
        setIrrelevant(pushedState, Arrays.asList(new Object[] { toggleable_cache, checkbox_published, checkbox_unplaced, checkbox_excluded}));
198 199
        updateToggleableCacheField();
199 200
    }
200 201
}

Also available in: Unified diff