passing parameters to action in plugin.xml

Answered

 

<action
id="schedule.5min"
class="com.example.action.SchedulerAction"
text="schedule in 5 min"
description="">
<add-to-group group-id="S.Toolbar" anchor="last"/>
</action>

<action
id="schedule.10min"
class="com.example.action.SchedulerAction"
text="schedule in 10 min"
description="">
<add-to-group group-id="S.Toolbar" anchor="last"/>
</action>

i need to create 2 action item in the menu. both execute the same logic but with different parameter. is there some way to pass parameter through plugin.xml? or do you need to create 2 separate actions with the same logic?

0
1 comment

Hi,

You can't pass parameters in plugin.xml, and you have to register two separate action classes, as you suggested.

1

Please sign in to leave a comment.