Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349740

Summary: add button actions to XSD for JAXB RM
Product: [Tools] PTP Reporter: Albert L. Rossi <arossi>
Component: RMAssignee: Albert L. Rossi <arossi>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Albert L. Rossi CLA 2011-06-17 18:08:14 EDT
A potentially useful feature currently missing from the JAXB definition is the ability to define actions and associate them with buttons.  For instance, if there is a combo widget which gets its items from parsing the output of a command, it may be desirable to rerun the command to refresh the items without having to stop and restart the RM.

An action could be a command, or there could be certain fixed internal types as well.

The amount of work it would take to add this feature is quite modest:

1. Add an "action" section to the XSD (just after the commands makes sense);
2. Add an "action" attribute to the widget type;
3. Add a method to the UI builder to build a button linked to the action.
4. Add an action runnable triggered by such a button.
Comment 1 Albert L. Rossi CLA 2011-06-20 00:41:48 EDT
This has been added to HEAD.  I tested a simple example of a command which populates combo widgets when the button is pressed (rather than at start-up).