fix #4657
authorKatja Luther <k.luther@bgbm.org>
Fri, 1 Apr 2016 09:09:18 +0000 (11:09 +0200)
committerKatja Luther <k.luther@bgbm.org>
Fri, 1 Apr 2016 09:09:18 +0000 (11:09 +0200)
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchAdvisor.java
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/bundle.properties
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/bundle_de.properties
eu.etaxonomy.taxeditor.store/plugin.xml
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/MessagingUtils.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/TaxonomicEditorGeneralPreferences.java

index 73c0052..420eaf0 100644 (file)
@@ -135,9 +135,15 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
                                    true);
 
                        } else if (t != null && ("Widget is disposed".equals(t.getMessage()))){
-                    MessagingUtils.warn(this.getClass(), t.getMessage());
+                    MessagingUtils.warn(this.getClass(), t);
                     if (PreferencesUtil.isDebugMode()){
-                        MessagingUtils.warningDialog("Widget is disposed", null, t.getMessage());
+                        MessagingUtils.errorDialog("Widget is disposed",
+                                null,
+                                MessagingUtils.WIDGET_IS_DISPOSED_MESSAGE,
+                                statusAdapter.getStatus().getPlugin(),
+                                t,
+                                true);
+
                     }
                 }
                    }
index 8b2e195..a583b3c 100644 (file)
@@ -157,6 +157,7 @@ command.name.13 = delete
 command.name.14 = delete\r
 page.name.32 = Taxon Navigator\r
 page.name.33 = Sort of Taxonnodes\r
+page.name.34 = Debug Preferences\r
 command.name.15 = Open\r
 view.name.SESSIONS = Sessions\r
 command.label.SESSION = Sessions\r
index 3ba40c8..2b82b3b 100644 (file)
@@ -131,6 +131,7 @@ page.name.29 = Editor Profil
 page.name.30 = Sprache
 page.name.32 = Taxon Navigator
 page.name.33 = Sortierung im TaxonNavigator
+page.name.34 = Debug Einstellungen
 command.label.clone = Klonen
 command.label.openInSpecimenEditor = \u00d6ffnen im Specimen-Editor
 page.name.31 = Taxon-Node-Reihenfolge
index 3e23d6c..768db4a 100644 (file)
@@ -39,6 +39,7 @@
             id="eu.etaxonomy.taxeditor.preferences.nomenclatural"
             name="%page.name.4">
       </page>
+     
       <!--page
             class="eu.etaxonomy.taxeditor.store.preference.CdmPreferences"
             id="eu.etaxonomy.taxeditor.preferences.cdm"
             id="eu.etaxonomy.taxeditor.preference.TaxonNavigator"
             name="%page.name.32">
       </page>
+       <page
+            category="eu.etaxonomy.taxeditor.preferences.general"
+            class="eu.etaxonomy.taxeditor.preference.DebugPreferences"
+            id="eu.etaxonomy.taxeditor.preferences.debug"
+            name="%page.name.34">
+      </page>
    </extension>
    <extension
          point="org.eclipse.ui.views">
index 8127827..563b8a8 100644 (file)
@@ -33,6 +33,7 @@ public class MessagingUtils {
     public final static String DEFAULT_MESSAGE = "Error thrown but no associated message";
     public final static String CONNECTION_FAILURE_MESSAGE = "The connection to the remote server has been broken";
     public final static String REMOTE_ACCESS_FAILURE_MESSAGE = "Problem accessing remote server";
+    public static final String WIDGET_IS_DISPOSED_MESSAGE = "A widget was called, which was already disposed";
 
     /**
      * Gets the Log4J logger for a given class
index e6535e0..eb09282 100644 (file)
@@ -66,9 +66,7 @@ public class TaxonomicEditorGeneralPreferences extends
              addField(new BooleanFieldEditor(IPreferenceKeys.RESTORE_NAVIGATOR_STATE,
                        "Restore the last Taxon Navigator state.",
                        getFieldEditorParent()));
-             addField(new BooleanFieldEditor(IPreferenceKeys.IS_DEBUG_MODE,
-                  "Run Taxonomic Editor in Debug Mode.",
-                  getFieldEditorParent()));
+
        }
 
        /*