Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349740 - add button actions to XSD for JAXB RM
Summary: add button actions to XSD for JAXB RM
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Albert L. Rossi CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 18:08 EDT by Albert L. Rossi CLA
Modified: 2011-06-20 00:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).