[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: How to forbid changing an attribute value via property sheet? or How to intercept a SetCommand?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

look at the IBM Redbook about EMF/GEF. Page 206. By the way, are you
writing your thesis?

- -stefan


Alexander Dotor schrieb:
> Hello,
> 
> I want to forbid the setting of an attribute value via the property
> sheet depending on the state of my semantic model.
> 
> As far as I can see it is not possible to replace the SetCommand as it
> is working directly on the model. I tried to install an EditPolicy as
> EditPolicyRoles.PROPERTY_HANDLER_ROLE, EditPolicyRoles.SEMANTIC_ROLE or
> even EditPolicy.DIRECT_EDIT_ROLE. If I debug into the creation of the
> SetCommand it seems to be indepent of any EditPolicy.
> 
> What can I do now?
> 
> Why is using the PropertyView not calling the getBeforeSetCommand of an
> EditHelper for example?
> 
> Currently I have to adapt different startegies for implementing my
> dynamic constraints for every kind of command. Why is the edit helper
> offering all these methods if they aren't used? This is very annoying.
> 
> Cheers,
> Alexander

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG/Q02IYVWjMSpDwwRAsjuAJ9k8v+C8nOpy2uMvAe+VyMpFpEshACgoYeU
0XZMnZ7ZMroE95lgIENR+E4=
=j7Oz
-----END PGP SIGNATURE-----