WrapLabel vs. WrappingLabel [message #206626] |
Tue, 23 September 2008 14:56 |
Eclipse User |
|
|
|
Originally posted by: tobk42.gmx.de
Hello,
I'm curious: Why has there been a change from WrapLabel to WrappingLabel
in GMF 2.1? The problem is, that plugins generated with GMF 2.1 will not
be compatible to GMF 2.0 when using the WrappingLabel. Can you tell me
what exactly are the improvements of WrappingLabel over WrapLabel, and
why not to replace all occurences of WrappingLabel with the old (now
deprecated) WrapLabel to ensure compatibility?
Regards,
Tobias
|
|
|
|
Re: WrapLabel vs. WrappingLabel [message #207471 is a reply to message #207393] |
Tue, 30 September 2008 11:15 |
Eclipse User |
|
|
|
Originally posted by: tobk42.gmx.de
Hi Anthony,
thanks for your reply, I understand now that there were quite some
improvements in the new WrappingLabel compared to WrapLabel.
However, I still do not understand why the old WrapLabel has not simply
be replaced by a new implementation, keeping its class identifier. How,
one has to decide to either (a) use WrappingLabel and be incompatible
with GMF 2.0, or (b) use WrapLabel, have deprecation warnings in the
code and be incompatible with future versions of GMF.
In the report it is written that the deprecated WrapLabel was kept for
API compatibility, as it provides some additional methods. But why
weren't these methods simply marked as deprecated and included in the
WrappingLabel class (which in this case would be the new WrapLabel class)?
Tobias
Anthony Hunter schrieb:
> Hi Tobias,
>
> The changes were done as a result of
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=162932 . The Bugzilla has an
> attachment document describing the complete design and motivation for the
> changes.
>
> Cheers...
> Anthony
>
>
> "Tobias" <tobk42@gmx.de> wrote in message
> news:gbb02p$tiq$1@build.eclipse.org...
>> Hello,
>>
>> I'm curious: Why has there been a change from WrapLabel to WrappingLabel
>> in GMF 2.1? The problem is, that plugins generated with GMF 2.1 will not
>> be compatible to GMF 2.0 when using the WrappingLabel. Can you tell me
>> what exactly are the improvements of WrappingLabel over WrapLabel, and why
>> not to replace all occurences of WrappingLabel with the old (now
>> deprecated) WrapLabel to ensure compatibility?
>>
>> Regards,
>> Tobias
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02279 seconds