Project

General

Profile

feature request #7902

Allow default values for PreferencePredicates

Added by Andreas Müller 2 months ago. Updated 2 months ago.

Status:
In Progress
Priority:
Highest
Assignee:
Category:
cdmlib
Target version:
Start date:
11/12/2018
Due date:
% Done:

0%

Severity:
normal

Related issues

Blocks Edit - bug #7849: Improve DB Preferences handling and saving in TaxEditor Resolved 10/23/2018

Associated revisions

Revision c47fd6c0 (diff)
Added by Andreas Müller 2 months ago

ref #7901, ref #7902 Create IPreferencePredicate and include getDefaultValue

Revision 1b996cca (diff)
Added by Andreas Müller 2 months ago

ref #7902, ref #7901 add generic to allow return types for defaultValue and to allow toString and fromString methods

History

#1 Updated by Andreas Müller 2 months ago

  • Blocks bug #7849: Improve DB Preferences handling and saving in TaxEditor added

#2 Updated by Andreas Müller 2 months ago

  • Status changed from New to In Progress
  • Assignee changed from Andreas Müller to Katja Luther
  • Priority changed from New to Highest

Generally implemented but for existing predicates we still need to define default values.

For boolean and/or UUIDs /UUID Lists and maybe others we may think about separate enums to explicitly handle getters/setters for the type (to convert from String to Type and back). But not sure if this really works as expected. I have added a generic to IPreferencePredicate to allow the return value to be more specific then Object for a certain enum.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)