2008/4/8, Michiel van der Wulp <[EMAIL PROTECTED]>:
>
> Hi Marcos, et al.,
>
> Marcos said:
>
> > 1. I think that the "editability" is a property of the model which
> > contains
> > the elements not of the elements
> >
>
> Good thinking Marcos, you definitively triggered me, but:
>
> IMHO the Project is the only correct location of this function:
>
>   boolean isEditable(Object)
>
> This because one can load a Model in an editable fashion, or in a
> non-editable fashion. Loading shall not make it a different Model, i.e.
> alter the Model.


I think the origin of a model determines whether it is editable or not
(profiles coming from the web or from plug-ins or are not) and in this case,
the entity which is in charge of loading the model is able to determine it
(not the project).

we should put a "shortcut" for it in the project class, but i don't think it
has all the needed information to know it in all the cases...

I mean, you can not change an attribute of a Model, just because you loaded
> it.


sorry... I didn't understand what you meant...

The content of the above mentioned function should be a case statement that
> determines if the given object is e.g. a Fig, or a UML element, or something
> else.
> If it is an UML element, it should compare its containing Model to see
> what kind of project member it is. Our structure of

Project Members determines which is the editable part of the loaded Project.


in fact, i'm trying to keep this idea "scalable"...
  . the user defined profiles (that are defined inside of the main xmi)
should appear also in the project configuration (i think this does not
happen in the current implementation), and they should be editable
  . this is not restricted to profiles: we could allow the user to make
references to other models outside of the current model..

anyway... i'm just making the things more complicated than they could be...
an "isEditable()" in the project interface with an "if" would do by now...

maas

Regards,
> Michiel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
-
http://www.marcosaurelio.com
*1984 +2057

"It is slightly better to be simple than correct."

Timothy Finin

Reply via email to