Preferences have used legacy preference classes to this point - checkin before attemp...
authorp.ciardelli <p.ciardelli@localhost>
Wed, 17 Sep 2008 09:24:57 +0000 (09:24 +0000)
committerp.ciardelli <p.ciardelli@localhost>
Wed, 17 Sep 2008 09:24:57 +0000 (09:24 +0000)
.gitattributes
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/ITaxEditorConstants.java
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/TaxEditorPlugin.java
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/actions/ui/description/AddDescriptionElementCompositeAction.java
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/editor/description/DescriptionElementComposite.java
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/editor/description/DescriptionLabelComposite.java
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/model/CdmUtil.java
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/DescriptionPreferences.java [new file with mode: 0644]
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/NomenclaturalCodePreferences.java

index fcf4e0a4debbf37de9630eafe07f24b6784f0237..91c439aa4bbe631de260c7374d7a239a7104c2d0 100644 (file)
@@ -500,6 +500,7 @@ eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/navigation/Sea
 eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/navigation/TaxonomicTreeLabelProvider.java -text
 eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/navigation/TaxonomicTreeView.java -text
 eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/navigation/TaxonomicTreeViewer.java -text
+eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/DescriptionPreferences.java -text
 eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/InitializeDbPreferences.java -text
 eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/NomenclaturalCodePreferences.java -text
 eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/TaxonomicPreferences.java -text
index 8ca7c431335b6c01d30109d8c9bfcc13a9f2b2da..952a748ba02c641bf69e151f19c910e14a48c112 100644 (file)
@@ -86,4 +86,9 @@ public class ITaxEditorConstants {
         ************************************************************************************** */\r
        public static final String GROUP_GRAY_BKG_COLOR = "group_gray_background_color";\r
        \r
+       /* ***************************************************************************************\r
+               PREFERENCES\r
+        ************************************************************************************** */\r
+       public static final String FEATURE_PREFERENCE = "feature_preference";\r
+       \r
 }\r
index d3eed93b9a3a0a9f43bc93da6a82fb15503298f0..49688bb85c6cdfbd48d0d64b595e057c537d5852 100644 (file)
@@ -55,6 +55,7 @@ import eu.etaxonomy.cdm.model.common.Language;
 import eu.etaxonomy.cdm.model.common.OrderedTermVocabulary;\r
 import eu.etaxonomy.cdm.model.common.TermVocabulary;\r
 import eu.etaxonomy.cdm.model.common.init.TermNotFoundException;\r
+import eu.etaxonomy.cdm.model.description.Feature;\r
 import eu.etaxonomy.cdm.model.name.BotanicalName;\r
 import eu.etaxonomy.cdm.model.name.NameRelationshipType;\r
 import eu.etaxonomy.cdm.model.name.NomenclaturalStatus;\r
@@ -67,6 +68,14 @@ import eu.etaxonomy.taxeditor.navigation.TaxonomicTreeView;
 \r
 /**\r
  * The class controlling the plug-in life cycle.\r
+ * </p>\r
+ * <ul>\r
+ *     <li>Initializes datastore as necessary.</li>\r
+ *     <li>Initializes default preferences.</li>\r
+ *     <li>Gateway to CDM service layer.</li>\r
+ *     <li>Stores taxa for application session.</li>\r
+ *     <li>Stores registries for colors, fonts, images.</li>\r
+ * </ul>\r
  * \r
  * @author p.ciardelli\r
  * @created 15.05.2008\r
@@ -242,7 +251,7 @@ public class TaxEditorPlugin extends AbstractUIPlugin {
                                 \r
                                 // Is this the problem?\r
                                 cdmApp = CdmApplicationController\r
-                                       .NewInstance(ds, dbSchemaValidation);\r
+                                               .NewInstance(ds, dbSchemaValidation);\r
  \r
                                 \r
 //                             cdmApp = CdmApplicationController\r
@@ -284,7 +293,7 @@ public class TaxEditorPlugin extends AbstractUIPlugin {
                }\r
                return taxonService;\r
        }\r
-\r
+       \r
        private INameService nameService;\r
 \r
        public INameService getNameService() {\r
@@ -455,11 +464,24 @@ public class TaxEditorPlugin extends AbstractUIPlugin {
        /***************************************************************************\r
         * PREFERENCES\r
         **************************************************************************/\r
+       /* (non-Javadoc)\r
+        * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore)\r
+        */\r
        protected void initializeDefaultPreferences(IPreferenceStore store) {\r
                // Platform.getPreferencesService().getBoolean(qualifier, key,\r
                // defaultValue, contexts)\r
                store.setDefault(ITaxEditorConstants.CODE_PREFERENCE,\r
                                ITaxEditorConstants.DEFAULT_CODE_PREFERENCE);\r
+               \r
+               // Set preferences to display all features\r
+               TermVocabulary<Feature> features = descriptionService.getDefaultFeatureVocabulary();\r
+               for (Feature feature : features) {\r
+                       String preferenceKey = ITaxEditorConstants.FEATURE_PREFERENCE \r
+                               . concat(".")\r
+                               . concat(feature.getUuid().toString());\r
+                       store.setDefault(preferenceKey, true);\r
+               }\r
+               \r
        }\r
 \r
        /***************************************************************************\r
index 0b66d3c6ddae9f08ca6d0660725e92025a5e1319..c1932fd74afd8c80b98c978d790b0b950fc3fd33 100644 (file)
@@ -25,10 +25,12 @@ import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;\r
 import org.eclipse.ui.forms.IManagedForm;\r
 \r
+import eu.etaxonomy.cdm.model.common.Language;\r
 import eu.etaxonomy.cdm.model.description.DescriptionElementBase;\r
 import eu.etaxonomy.cdm.model.description.Feature;\r
 import eu.etaxonomy.cdm.model.description.TaxonDescription;\r
 import eu.etaxonomy.cdm.model.description.TextData;\r
+import eu.etaxonomy.cdm.model.description.TextFormat;\r
 import eu.etaxonomy.taxeditor.UiUtil;\r
 import eu.etaxonomy.taxeditor.editor.description.DescriptionElementComposite;\r
 import eu.etaxonomy.taxeditor.editor.description.FeatureGroupComposite;\r
@@ -133,7 +135,8 @@ public class AddDescriptionElementCompositeAction extends Action {
                        }\r
                        \r
                        // Create new element, set it as the data for a new element composite\r
-                       descriptionElement = new TextData(feature);\r
+                       descriptionElement = TextData.NewInstance("", Language.DEFAULT(), TextFormat.NewInstance());\r
+                       descriptionElement.setFeature(feature);\r
                        taxonDescription.addElement(descriptionElement);\r
                        descriptionElementComposite = new DescriptionElementComposite(\r
                                        featureGroupComposite, managedForm, descriptionElement);\r
index 0d068d7b4ed020cf2baab5b9f60c1c15b727ef38..f056604772dda5bb560e76691d07ae5e615f71d5 100644 (file)
@@ -25,6 +25,7 @@ import eu.etaxonomy.cdm.model.common.Language;
 import eu.etaxonomy.cdm.model.common.LanguageString;\r
 import eu.etaxonomy.cdm.model.common.MultilanguageText;\r
 import eu.etaxonomy.cdm.model.description.DescriptionElementBase;\r
+import eu.etaxonomy.cdm.model.description.TextData;\r
 import eu.etaxonomy.taxeditor.ITaxEditorConstants;\r
 import eu.etaxonomy.taxeditor.TaxEditorPlugin;\r
 import eu.etaxonomy.taxeditor.editor.ContextMenu;\r
@@ -136,55 +137,12 @@ public class DescriptionElementComposite extends EditorGroupedComposite {
                \r
                DescriptionElementBase element = (DescriptionElementBase) data;\r
 \r
-               MultilanguageText multilanguageText = element.getModifyingText();\r
-               String text = "";\r
-               if (multilanguageText == null) {\r
-//                     multilanguageText = MultilanguageText.NewInstance();\r
-//                     LanguageString languageString = LanguageString.NewInstance("", Language.DEFAULT()); \r
-//                     multilanguageText.add(languageString);\r
-                       // \r
-                       element.addModifyingText("", Language.DEFAULT());\r
-                       // TODO change DescriptionElementBase ...\r
-                       /*\r
-                       public MultilanguageText getModifyingText(){\r
-                               return this.modifyingText;\r
-                       }\r
-                       protected void setModifyingText(MultilanguageText modifyingText){\r
-                               this.modifyingText = modifyingText;\r
-                       }\r
-                       public LanguageString addModifyingText(LanguageString description){\r
-                               return this.modifyingText.add(description);\r
-                       }\r
-                       public LanguageString addModifyingText(String text, Language language){\r
-                               return this.modifyingText.put(language, LanguageString.NewInstance(text, language));\r
-                       }\r
-                       public LanguageString removeModifyingText(Language language){\r
-                               return this.modifyingText.remove(language);\r
-                       }\r
-\r
-                       ---------------------->\r
-\r
-                       public MultilanguageText getModifyingText(){\r
-                               if (this.modifyingText == null) {\r
-                                       this.modifyingText = MultilanguageText.NewInstance();\r
-                               }\r
-                               return this.modifyingText;\r
-                       }\r
-                       protected void setModifyingText(MultilanguageText modifyingText){\r
-                               this.modifyingText = modifyingText;\r
-                       }\r
-                       public LanguageString addModifyingText(LanguageString description){\r
-                               return getModifyingText().add(description);\r
-                       }\r
-                       public LanguageString addModifyingText(String text, Language language){\r
-                               return getModifyingText().put(language, LanguageString.NewInstance(text, language));\r
-                       }\r
-                       public LanguageString removeModifyingText(Language language){\r
-                               return getModifyingText().remove(language);\r
-                       }\r
-                        */\r
-               } else {\r
-                       multilanguageText.getText(Language.DEFAULT());  \r
+               String text = null;\r
+               if (element instanceof TextData) {\r
+                       text = ((TextData) element).getText(Language.DEFAULT());\r
+               }\r
+               if (text == null) {\r
+                       text = "";\r
                }\r
                \r
                getTextViewer().getTextWidget().setText(text);\r
@@ -202,14 +160,10 @@ public class DescriptionElementComposite extends EditorGroupedComposite {
                                                "DescriptionElementComposite's data field must contain a DescriptionElementBase object");\r
                                \r
                                DescriptionElementBase element = (DescriptionElementBase) getData();\r
-                               MultilanguageText multilanguageText = element.getModifyingText();\r
-                               if (multilanguageText == null) {\r
-                                       element.addModifyingText(text, Language.DEFAULT());\r
-                               } else {\r
-                                       multilanguageText.add(LanguageString.NewInstance(text, Language.DEFAULT()));\r
+                               \r
+                               if (element instanceof TextData) {\r
+                                       ((TextData) element).putText(text, Language.DEFAULT());\r
                                }\r
-//                             LanguageString languageString = LanguageString.NewInstance(text, Language.DEFAULT());\r
-//                             multilanguageText.add(languageString);\r
                                \r
                                setDirty(true);\r
                        }\r
index f56d7c89511aa7df628c6907ee346795570cfdcf..1feed627484d1baaea5df05f494d1f4601d8e42a 100644 (file)
@@ -13,6 +13,7 @@ import org.apache.log4j.Logger;
 import org.eclipse.core.runtime.Assert;\r
 import org.eclipse.jface.action.Action;\r
 import org.eclipse.jface.action.MenuManager;\r
+import org.eclipse.jface.preference.IPreferenceStore;\r
 import org.eclipse.jface.text.Document;\r
 import org.eclipse.jface.text.source.SourceViewer;\r
 import org.eclipse.swt.SWT;\r
@@ -101,12 +102,21 @@ public class DescriptionLabelComposite extends EditorGroupedComposite {
                MenuManager menuManager = new MenuManager("Add description element");\r
                \r
                Composite parentComposite = this.getParent();\r
-                               \r
+               \r
+               IPreferenceStore store = TaxEditorPlugin.getDefault().getPreferenceStore();\r
+               \r
                IDescriptionService descriptionService = TaxEditorPlugin.getDefault().getDescriptionService();\r
                TermVocabulary<Feature> features = descriptionService.getDefaultFeatureVocabulary();\r
                for (Feature feature : features) {\r
-                       Action action = new AddDescriptionElementCompositeAction(parentComposite, managedForm, feature);\r
-                       menuManager.add(action);\r
+                       \r
+                       String preferenceKey = ITaxEditorConstants.FEATURE_PREFERENCE \r
+                                       . concat(".")\r
+                                       . concat(feature.getUuid().toString());\r
+                       \r
+                       if (store.getBoolean(preferenceKey)) {\r
+                               Action action = new AddDescriptionElementCompositeAction(parentComposite, managedForm, feature);\r
+                               menuManager.add(action);\r
+                       }\r
                }\r
                contextMenu.addSubmenu(menuManager);\r
        }\r
index d34e61cfc0b30fc66334ea2382f686bcd806ca5e..3c888d9eddd10c74b42bc5194224856e2b49b663 100644 (file)
@@ -15,6 +15,8 @@ import java.util.Set;
 import org.apache.log4j.Logger;\r
 \r
 import eu.etaxonomy.cdm.api.service.ITaxonService;\r
+import eu.etaxonomy.cdm.model.common.TermVocabulary;\r
+import eu.etaxonomy.cdm.model.description.Feature;\r
 import eu.etaxonomy.cdm.model.name.BotanicalName;\r
 import eu.etaxonomy.cdm.model.name.HomotypicalGroup;\r
 import eu.etaxonomy.cdm.model.name.NameRelationship;\r
@@ -39,6 +41,11 @@ import eu.etaxonomy.taxeditor.TaxEditorPlugin;
  * @created 26.05.2008\r
  * @version 1.0\r
  */\r
+/**\r
+ * @author p.ciardelli\r
+ * @created 17.09.2008\r
+ * @version 1.0\r
+ */\r
 public class CdmUtil {\r
        private static final Logger logger = Logger.getLogger(CdmUtil.class);\r
 \r
@@ -200,6 +207,10 @@ public class CdmUtil {
                return getDisplayName(name);\r
        }\r
 \r
+       /**\r
+        * @param name\r
+        * @return\r
+        */\r
        public static String getDisplayName(TaxonNameBase name) {\r
                if (name != null) {\r
                        return name.getTitleCache();\r
@@ -207,6 +218,9 @@ public class CdmUtil {
                return "";\r
        }\r
 \r
+       /**\r
+        * @return\r
+        */\r
        private static INonViralNameParser getNonViralNameParser() {\r
                if (nonViralNameParser == null) {\r
                        nonViralNameParser = NonViralNameParserImpl.NewInstance();\r
@@ -249,12 +263,21 @@ public class CdmUtil {
                getNonViralNameParser().parseFullReference(nameToBeFilled, fullReference, rank, makeEmpty);\r
        }\r
        \r
+       /**\r
+        * @param nameToBeFilled\r
+        * @param fullNameString\r
+        * @param rank\r
+        * @param makeEmpty\r
+        */\r
        public static void parseFullName(NonViralName nameToBeFilled,\r
                        String fullNameString, Rank rank, boolean makeEmpty) {\r
                getNonViralNameParser().parseFullName(nameToBeFilled, fullNameString,\r
                                rank, makeEmpty);\r
        }\r
 \r
+       /**\r
+        * @return\r
+        */\r
        public static NomenclaturalCode getPreferredNomenclaturalCode() {\r
 \r
                String nameCodePreference = TaxEditorPlugin.getDefault().getPreferenceStore().getString(ITaxEditorConstants.CODE_PREFERENCE);\r
@@ -274,6 +297,9 @@ public class CdmUtil {
                return null;\r
        }\r
        \r
+       /**\r
+        * @return\r
+        */\r
        public static NonViralName getPreferredNameClassInstance() {\r
                String nameCodePreference = TaxEditorPlugin.getDefault().getPreferenceStore().getString(ITaxEditorConstants.CODE_PREFERENCE);\r
                \r
@@ -292,11 +318,21 @@ public class CdmUtil {
                return NonViralName.NewInstance(null);\r
        }\r
        \r
+       /**\r
+        * @return\r
+        */\r
        public static ReferenceBase getSessionDefaultSec() {\r
                return null;\r
 //             return TaxEditorPlugin.getDefault().getSec();\r
        }\r
 \r
+       /**\r
+        * @param oldTaxon\r
+        * @param newAcceptedTaxon\r
+        * @param synonymType\r
+        * @param citation\r
+        * @param citationMicroReference\r
+        */\r
        public static void makeTaxonSynonym(Taxon oldTaxon, Taxon newAcceptedTaxon,\r
                        SynonymRelationshipType synonymType, ReferenceBase citation,\r
                        String citationMicroReference) {\r
@@ -306,6 +342,10 @@ public class CdmUtil {
                                citation, citationMicroReference);\r
        }\r
 \r
+       /**\r
+        * @param searchText\r
+        * @return\r
+        */\r
        public static Set<TaxonNameBase> getNameByName(String searchText) {\r
                Set<TaxonNameBase> resultsSet = new HashSet<TaxonNameBase>();\r
                resultsSet.addAll(TaxEditorPlugin.getDefault().getNameService()\r
@@ -313,6 +353,11 @@ public class CdmUtil {
                return resultsSet;\r
        }\r
 \r
+       /**\r
+        * @param searchText\r
+        * @param taxon\r
+        * @return\r
+        */\r
        public static Set<TaxonNameBase> getNameByNameForTaxonContext(String searchText, Taxon taxon) {\r
                Set<TaxonNameBase> resultsSet = new HashSet<TaxonNameBase>();\r
 //             resultsSet.addAll(TaxEditorPlugin.getDefault().getNameService()\r
@@ -321,4 +366,6 @@ public class CdmUtil {
                                getNamesByName(searchText.replace("*", "%"), taxon));\r
                return resultsSet;\r
        }\r
+       \r
+//     public static TermVocabulary<Feature> \r
 }\r
diff --git a/eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/DescriptionPreferences.java b/eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/preference/DescriptionPreferences.java
new file mode 100644 (file)
index 0000000..5eb85ed
--- /dev/null
@@ -0,0 +1,109 @@
+/**\r
+* Copyright (C) 2007 EDIT\r
+* European Distributed Institute of Taxonomy \r
+* http://www.e-taxonomy.eu\r
+* \r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/\r
+package eu.etaxonomy.taxeditor.preference;\r
+\r
+import org.apache.log4j.Logger;\r
+import org.eclipse.jface.preference.PreferencePage;\r
+import org.eclipse.swt.SWT;\r
+import org.eclipse.swt.events.SelectionAdapter;\r
+import org.eclipse.swt.events.SelectionEvent;\r
+import org.eclipse.swt.layout.GridLayout;\r
+import org.eclipse.swt.widgets.Button;\r
+import org.eclipse.swt.widgets.Composite;\r
+import org.eclipse.swt.widgets.Control;\r
+import org.eclipse.ui.IWorkbench;\r
+import org.eclipse.ui.IWorkbenchPreferencePage;\r
+\r
+import eu.etaxonomy.taxeditor.ITaxEditorConstants;\r
+import eu.etaxonomy.taxeditor.TaxEditorPlugin;\r
+\r
+/**\r
+ * @author p.ciardelli\r
+ * @created 16.09.2008\r
+ * @version 1.0\r
+ */\r
+public class DescriptionPreferences extends PreferencePage implements\r
+               IWorkbenchPreferencePage {\r
+       private static final Logger logger = Logger\r
+                       .getLogger(DescriptionPreferences.class);\r
+\r
+       public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.preferences.description";\r
+\r
+       private Button icznButton;\r
+       private Button icbnButton;      \r
+       \r
+       private String preferredCode;\r
+       \r
+       /**\r
+        * Create the preference page\r
+        */\r
+       public DescriptionPreferences() {\r
+               super();\r
+       }\r
+\r
+       /**\r
+        * Create contents of the preference page\r
+        * @param parent\r
+        */\r
+       @Override\r
+       public Control createContents(Composite parent) {\r
+               Composite container = new Composite(parent, SWT.NULL);\r
+               container.setLayout(new GridLayout());\r
+\r
+               icbnButton = new Button(container, SWT.RADIO);\r
+               icbnButton.setText("Botanical (ICBN)");\r
+               icbnButton.addSelectionListener(new SelectionAdapter() {\r
+                       public void widgetSelected(SelectionEvent e) {\r
+                               preferredCode = ITaxEditorConstants.CODE_PREFERENCE_ICBN;\r
+                       }\r
+               });\r
+\r
+               icznButton = new Button(container, SWT.RADIO);\r
+               icznButton.setText("Zoological (ICZN)");\r
+               icznButton.addSelectionListener(new SelectionAdapter() {\r
+                       public void widgetSelected(SelectionEvent e) {\r
+                               preferredCode = ITaxEditorConstants.CODE_PREFERENCE_ICZN;\r
+                       }\r
+               });\r
+               \r
+               setButton(getPreferenceStore().getString(ITaxEditorConstants.CODE_PREFERENCE));         \r
+               \r
+               return container;\r
+       }\r
+\r
+       /**\r
+        * Initialize the preference page\r
+        */\r
+       public void init(IWorkbench workbench) {\r
+               setPreferenceStore(TaxEditorPlugin.getDefault().getPreferenceStore());\r
+       }\r
+       \r
+       protected void performDefaults() {\r
+               setButton(ITaxEditorConstants.DEFAULT_CODE_PREFERENCE);\r
+       }\r
+       \r
+       public boolean performOk() {\r
+               TaxEditorPlugin.getDefault().getPreferenceStore().\r
+                               setValue(ITaxEditorConstants.CODE_PREFERENCE, preferredCode);\r
+               return true;\r
+       }\r
+       \r
+       private void setButton(String preferredCode) {\r
+               this.preferredCode = preferredCode;\r
+               \r
+               if (preferredCode.equals(ITaxEditorConstants.CODE_PREFERENCE_ICBN)) {           \r
+                       icbnButton.setSelection(true);\r
+                       icznButton.setSelection(false);\r
+               }\r
+               if (preferredCode.equals(ITaxEditorConstants.CODE_PREFERENCE_ICZN)) {\r
+                       icbnButton.setSelection(false);\r
+                       icznButton.setSelection(true);\r
+               }\r
+       }\r
+}\r
index 970f3275ad67d8d33c37029a99829225a8de4fb5..beb247748fc4ba2ec4fb3371c92b189487891480 100644 (file)
@@ -1,7 +1,14 @@
+/**\r
+* Copyright (C) 2007 EDIT\r
+* European Distributed Institute of Taxonomy \r
+* http://www.e-taxonomy.eu\r
+* \r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/\r
 package eu.etaxonomy.taxeditor.preference;\r
 \r
 import org.apache.log4j.Logger;\r
-import org.eclipse.core.runtime.Platform;\r
 import org.eclipse.jface.preference.PreferencePage;\r
 import org.eclipse.swt.SWT;\r
 import org.eclipse.swt.events.SelectionAdapter;\r
@@ -16,6 +23,11 @@ import org.eclipse.ui.IWorkbenchPreferencePage;
 import eu.etaxonomy.taxeditor.ITaxEditorConstants;\r
 import eu.etaxonomy.taxeditor.TaxEditorPlugin;\r
 \r
+/**\r
+ * @author p.ciardelli\r
+ * @created 16.09.2008\r
+ * @version 1.0\r
+ */\r
 public class NomenclaturalCodePreferences extends PreferencePage implements\r
                IWorkbenchPreferencePage {\r
        private static final Logger logger = Logger\r