sec microRef should be orange if the titleCache is protected
authorKatja Luther <k.luther@bgbm.org>
Mon, 30 May 2016 11:17:48 +0000 (13:17 +0200)
committerKatja Luther <k.luther@bgbm.org>
Mon, 30 May 2016 11:18:25 +0000 (13:18 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailElement.java

index 142fbabe9e2f4ca7e2f0ed292e0a66fa4ea9d8e2..8bed51e699fa821c8b0a492b1e9c445a886c3318 100644 (file)
@@ -94,7 +94,8 @@ public class TaxonBaseDetailElement extends AbstractIdentifiableEntityDetailElem
                if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){
                        text_appendedPhrase = formFactory.createTextWithLabelElement(
                                        formElement, "Appended Phrase", entity.getAppendedPhrase(),
-                                       SWT.NULL);
+                                       SWT.WRAP);
+                       //formFactory.createTextWithLabelElement(formElement, "Appended Phrase", nonViralName.getAppendedPhrase(), style);
                }
 
                selection_secundum = formFactory.createSelectionElement(Reference.class,
@@ -105,7 +106,7 @@ public class TaxonBaseDetailElement extends AbstractIdentifiableEntityDetailElem
                text_secundum_microreference = formFactory.createTextWithLabelElement(
                 formElement, "Micro Reference",
                entity.getSecMicroReference(),null,
-                SWT.NULL);
+                SWT.WRAP);
 
                // TODO RL
                if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)) {
@@ -156,7 +157,7 @@ public class TaxonBaseDetailElement extends AbstractIdentifiableEntityDetailElem
                super.updateContent();
                toggleable_cache.setEnabled(getEntity().isProtectedTitleCache());
                setIrrelevant(toggleable_cache.getState(),
-                               Arrays.asList(new Object[] { toggleable_cache }));
+                               Arrays.asList(new Object[] { toggleable_cache, checkbox_published, checkbox_unplaced, checkbox_excluded }));
        }
 
        @Override
@@ -194,7 +195,7 @@ public class TaxonBaseDetailElement extends AbstractIdentifiableEntityDetailElem
         boolean pushedState = toggleable_cache.getState();
 
         getEntity().setTitleCache(toggleable_cache.getText(), pushedState);
-        setIrrelevant(pushedState, Arrays.asList(new Object[] { toggleable_cache, text_secundum_microreference,text_appendedPhrase, checkbox_published, checkbox_unplaced, checkbox_excluded}));
+        setIrrelevant(pushedState, Arrays.asList(new Object[] { toggleable_cache, checkbox_published, checkbox_unplaced, checkbox_excluded}));
         updateToggleableCacheField();
     }
 }