Modify

Opened 4 months ago

Closed 9 days ago

#24693 closed enhancement (fixed)

[PATCH] Allow values_from in presets to use plugin classes

Reported by: Zverikk Owned by: team
Priority: normal Milestone: 26.07
Component: Core Version:
Keywords: Cc:

Description

I wanted to have a combo box for the last several days for the check_date tag. For that I have added a class into UtilsPlugin2, and references it in the preset, in a value_from field. Turns out presets can access only core and JRE classes, but plugin classes are inaccessible.

I'm attaching a patch that does two things:

  1. Makes plugin classes available to values_from. I have tested it with my preset.
  2. Allows also methods with one or two String parameters, to which it passes a key, or a key and its current value.

Attachments (1)

presetValuesForExtended.patch (4.3 KB ) - added by Zverikk 4 months ago.

Download all attachments as: .zip

Change History (5)

by Zverikk, 4 months ago

comment:1 by Zverikk, 4 months ago

Summary: Allow values_from in presets to use plugin classes[PATCH] Allow values_from in presets to use plugin classes

comment:2 by stoecker, 4 months ago

Milestone: 26.05

comment:3 by stoecker, 4 weeks ago

Milestone: 26.0526.07

Milestone renamed

comment:4 by stoecker, 9 days ago

Resolution: fixed
Status: newclosed

In 19597/josm:

fix #24693 - Allow values_from in presets to use plugin classes - patch by Zverikk

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.