You say "the logic associated with various widgets is hard-coded
inside with the widget itself". Well, that's encapsulation.

I think you maybe need to explain further what logic you refer to and
what widgets

Unfortunately the fields for the property panels are very much tied to
the TargetManager which is tracking what model elements are currently
selected and that reduces the reuse we can get out of them.

There is a replacement module being developed for the model element
properties that reduces this dependency. Rather than a panel for each
model type we have a single panel that is built dynamically from an
XML description. When the target changes the panel is rebuilt with the
fields required for the latest model element selected. So the controls
for the fields on the panel no longer need to depend on the
TargetManager.

You can run this from eclipse using the "ArgoUML XML Property Panels"
launcher to see work so far.

Regards

Bob

2009/10/28 Enrico Da Ros <[email protected]>:
> Hi,
> Just to bother with weird things...
> While integrating my now infamous getter/setter module, i stumbled upon the 
> creation of widgets inside the panels. Basically i am now trying to build a 
> panel like the one made for the attributes, with multiplicity, type, 
> visibility and so on. While seeking it seemed to me that the logic associated 
> with the various widgets is hard-coded inside the widget itself. Would'nt be 
> nice to do something like what is done for the menus, with the varios 
> XXXAction that incapsulates the task to do, allowing the modules writers to 
> use the widgets, adding to them their custom actions (for example 'set this 
> variable' and not 'change the model instantly'), allowing the full reuse of 
> the widgets everywhere?
> I have some idea regarding this but...after yours opinions about the subject
>
> ------------------------------------------------------
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2412242
>
> To unsubscribe from this discussion, e-mail: 
> [[email protected]].
> To be allowed to post to the list contact the mailing list moderator, email: 
> [[email protected]]
>

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2412334

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to