Project

General

Profile

Actions

feature request #5971

closed

feature request #3958: Handle CDMPreference table

bug #6105: Make CdmPreferences editable in separate view

Implement database wide CdmPreference writing

Added by Andreas Müller about 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Highest
Assignee:
Category:
taxeditor
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3:00 h
Severity:
normal

Description

Similar to TaxEditor preferences CDM Preferences need to be inserted/updated.

In the new "Admin" main menu we need an additional sub menu item "CDM Preferences". This will open a dialog / assistant to set the preferences. We will start with enum PreferencePredicate#NomenclaturalCode. This is a dropdown with values from enum NomenclaturalCode and a checkbox for "allowOverride".

see also #5969, #3958, #5970


Related issues

Related to EDIT - feature request #5969: Implement CdmPreference reading for database preferencesClosedKatja Luther

Actions
Related to EDIT - bug #6215: NPE when opening preferences with no DB connectionClosedKatja Luther

Actions
Actions #1

Updated by Andreas Müller about 6 years ago

  • Description updated (diff)
  • Priority changed from New to Highest
Actions #2

Updated by Andreas Müller about 6 years ago

Actions #3

Updated by Andreas Müller almost 6 years ago

  • Target version changed from Unassigned CDM tickets to Release 4.4
  • Estimated time set to 3:00 h
Actions #4

Updated by Katja Luther almost 6 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 70

Now it is implemented on editor side, we need the update of the CdmPreference table (allowOverride) to complete it (see #5970)

Actions #5

Updated by Katja Luther almost 6 years ago

  • Assignee changed from Katja Luther to Andreas Müller
Actions #6

Updated by Andreas Müller almost 6 years ago

  • Assignee changed from Andreas Müller to Katja Luther

allowOverride #5970 is now fixed, so we can finalize this task.

Actions #7

Updated by Andreas Müller almost 6 years ago

  • Parent task set to #6105

This is a subtask of the more general implementation described in #6105 (but more or less also a duplicate)

Actions #8

Updated by Katja Luther almost 6 years ago

Now we have a main menu admin. This menu should only be visible for admins or project manager.

Actions #9

Updated by Katja Luther almost 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 70 to 50
Actions #10

Updated by Andreas Müller almost 6 years ago

  • Related to bug #6215: NPE when opening preferences with no DB connection added
Actions #11

Updated by Andreas Müller almost 6 years ago

Please move the new menu in between Extras/Window and Help. Help should always be the last in the row.

Actions #12

Updated by Andreas Müller almost 6 years ago

  • Status changed from Resolved to Feedback
Actions #13

Updated by Katja Luther almost 6 years ago

  • Status changed from Feedback to Resolved
Actions #14

Updated by Andreas Müller almost 6 years ago

If no CdmPreference exists yet for nomenclatural code an NPE is thrown:

login : admin
editor version : 4.4.0.201612011150
server : test.e-taxonomy.eu / edit-test
schema version : 4.1.0.0.201607300000
os : Windows Server 2012 6.2 amd64
java : 1.7.0_65
java.lang.NullPointerException
    at eu.etaxonomy.taxeditor.preference.NomenclaturalCodePreferences.init(NomenclaturalCodePreferences.java:100)
    at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode.createPage(WorkbenchPreferenceNode.java:57)
    at org.eclipse.jface.preference.PreferenceDialog.createPage(PreferenceDialog.java:1339)
    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:376)
    at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1230)
    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:674)
    at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:708)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:704)
    at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:888)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:886)
    at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1226)
    at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1251)
    at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:262)
    at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:256)
    at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:433)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
Actions #15

Updated by Katja Luther over 5 years ago

  • Status changed from Resolved to Closed

this works now.

Actions #16

Updated by Andreas Müller over 5 years ago

  • Private changed from Yes to No
Actions #17

Updated by Andreas Müller over 4 years ago

  • % Done changed from 50 to 100
Actions

Also available in: Atom PDF