DIALOGS: Implement New Actor Dialog
Implement New Actor Dialog, per Laura's design. See:
#1 Updated by Matthew Brooke about 13 years ago
In order to see where I've got to on the new dialogs, edit the file:
and uncomment the following line:
- ACTOR->Configure\ Actor=org.kepler.gui.ActorDialogAction
and comment out this line:
Then delete the kepler/build directory and do ant run-dev. Then, when kepler is running, if you right-click an actor and choose "Configure Actor", you'll see the new (unfinished) tabbed dialog.
(extends org.kepler.gui.TabbedDialog, which has the OK/Cancel buttons etc)
The ActorDialog then instantiates a new class for each of the tabs -
...and each of the above dialog tab classes extends org.kepler.gui.AbstractDialogTab
It's worth spending a little time looking at how the ActorDialog and TabbedDialog inheritance works, and seeing how the tab classes fit into this framework..
The first 2 of the tabs are populated, but not fully functional (you can see what I mean by trying them out - for example, I don't think any of the checkboxes are functional yet).
In the Ports tab, I just temporarily embedded the existing ports dialog, so you can trace the classes in PTII that do this - however, I think I'd come to the conclusion that we needed to redo the whole ports dialog and not use PTII's version, for reasons that escape me now, but will become obvious if you compare this tab with the design on the wiki (also see note below).
**NOTE - another issue with all these ptii dialogs is that they propagate changes to the model MOML as soon as a particular textfield loses focus, rather than waiting until the user clicks "OK"