[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [ve-dev] Model does not change on property set
|
Hi
Joe,
Your
diagnosis was spot on! eContainer is indeed null.
For
prefSize on resize on canavs and for properties set by CreationPolicy we were
not using RuleCommadBuilder.
But
earlier this did not matter because on reopen, model was built by
parsing. But now on reopen, model is read from cache and if it was not
saved properly, on reopen some properties won't be set.
I made
the change suggested by you and it is working.
Thanks
a lot for your help.
Best
regards,
Janak
Hi Janak,
From the symtoms I think that there are a
couple of options. One that I think is most likely is that the
ULCDimension is being created correctly and the model gets updated which
causes code gen and prop sheet to work OK, however the scoping and ownership
of the ULCDimension object is wrong which is affecting its serailization.
Reasons for this are likely to be that the preferredSize property is
overridden in a .override and this is somehow causing problems or more likley
RuledCommandBuilder is not being used at some point which means
VCEPreSetCommand is being bypassed. Second problem could be that some
exception is thrown so trawl the ErrorLog to see if this is happening, and
also run in Debug model to see what is being thrown and maybe squelched.
Also - under debug once the ULCButton has its dimension set on it then
just inspect it and look for the eContainer of the ULCDimension and see
whether this looks like it is setup the same as other properties you know are
working OK.
Best regards,
Joe
Winchester