Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » WrapLabel vs. WrappingLabel
WrapLabel vs. WrappingLabel [message #206626] Tue, 23 September 2008 14:56 Go to next message
Eclipse UserFriend
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 #207393 is a reply to message #206626] Tue, 30 September 2008 01:40 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
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
Re: WrapLabel vs. WrappingLabel [message #207471 is a reply to message #207393] Tue, 30 September 2008 11:15 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Remove the border of a compartment
Next Topic:gmf project TO .jar files
Goto Forum:
  


Current Time: Fri Apr 19 03:39:39 GMT 2024

Powered by FUDForum. Page generated in 0.02279 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top