[kepler-dev] [Bug 2259] - DIALOGS: Implement New Actor Dialog

bugzilla-daemon@ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri May 26 17:24:22 PDT 2006


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2259





------- Comment #1 from brooke at nceas.ucsb.edu  2006-05-26 17:24 -------

In order to see where I've got to on the new dialogs, edit the file:

kepler/configs/ptolemy/configs/kepler/uiContextMenuMappings_en_US.properties

and uncomment the following line:

# ACTOR->Configure\ Actor=org.kepler.gui.ActorDialogAction

and comment out this line:

ACTOR->Configure\ Actor=ACTOR->Configure

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.

----------------
CODE:

The class:

org.kepler.gui.ActorDialogAction 

instantiates a:

org.kepler.gui.ActorDialog 
(extends org.kepler.gui.TabbedDialog, which has the OK/Cancel buttons etc)

The ActorDialog then instantiates a new class for each of the tabs -

org.kepler.gui.DialogGeneralTab
org.kepler.gui.DialogParametersTab
org.kepler.gui.DialogPortsTab
org.kepler.gui.DialogAnnotationsTab
org.kepler.gui.DialogUnitsTab


...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"


More information about the Kepler-dev mailing list