Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » WrapLabel does not display on Mac
WrapLabel does not display on Mac [message #168048] Mon, 14 January 2008 15:26 Go to next message
Eclipse UserFriend
Originally posted by: ft.zimmermann.web.de

Hi,

I've got a little gmf plugin working on my xp machine. Transfering the
plugins to my brandnew mac the following feature occurs:

In a WrapLabel I can enter multiline Text as on XP, but only the first
line is displayed on Mac OS X 10.5, whereas XP displays all lines.

The label is inside a label which has a grid layout.
I tried to change the gridData of the iner label to everything that looks
like more space to me, but nothing changed. Just to say it again: This
construct works neatly on XP.
Re: WrapLabel does not display on Mac [message #168089 is a reply to message #168048] Mon, 14 January 2008 21:08 Go to previous messageGo to next message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Frank,

In order to try to narrow down where this problem is, could you try
reproducing the problem by entering your multiline text on a:
1) Note in a GMF Logic Diagram Example
2) Label in a GEF Logic Diagram Example?

Thanks,
Cherie

Frank Zimmermann wrote:
> Hi,
>
> I've got a little gmf plugin working on my xp machine. Transfering the
> plugins to my brandnew mac the following feature occurs:
>
> In a WrapLabel I can enter multiline Text as on XP, but only the first
> line is displayed on Mac OS X 10.5, whereas XP displays all lines.
> The label is inside a label which has a grid layout.
> I tried to change the gridData of the iner label to everything that
> looks like more space to me, but nothing changed. Just to say it again:
> This construct works neatly on XP.
>
Re: WrapLabel does not display on Mac [message #168105 is a reply to message #168089] Mon, 14 January 2008 23:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ft.zimmermann.web.de

Hi Cherie,

thanks for answering so fast. I was working on the gmf logic example first


Unfortunately the Example in the GMF updatesite

http://download.eclipse.org/modeling/gmf/update-site/release s/site.xml

seems broken to me. The Logic PDE Wizards generates 4 projects. The editor
and the edit project have the same plugin id. Assuming the edit project
having the edit plugin makes the plugins loadable but not runnable, a
runtime error says "LogicCreationWizard" cannot be loaded. Somehow I'm
stuck.

Maybe I should post this as a bug?

Can you give me a hint, how to install a working gmf logic example?
Re: WrapLabel does not display on Mac [message #168153 is a reply to message #168105] Tue, 15 January 2008 09:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ft.zimmermann.web.de

Hi,

tried the same thing in a simpler environment. Same effect, wrapping in
the editor cell works but does not show.

Am I missing something in this snippet of the corresponding editpart?

public void setLabel(WrapLabel figure) {
unregisterVisuals();
figure.setTextWrap(true);
setFigure(figure);
defaultText = getLabelTextHelper(figure);
registerVisuals();
refreshVisuals();
}
Re: WrapLabel does not display on Mac [message #168219 is a reply to message #168089] Tue, 15 January 2008 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ft.zimmermann.web.de

Hi,

I instaled the Logic example from the cvs.
The behavior is even worse. A note can have more hat one line, but now it
seems that the Editor cell and the label do not compute the size correctly.
The cell shows 1 1/3 and the labelview definitely only 1 line
Re: WrapLabel does not display on Mac [message #168280 is a reply to message #168219] Tue, 15 January 2008 16:19 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Frank,

Sounds like this is definitely a bug if it can be reproduced with the
Logic Example. I would suggest raising a bugzilla. However, it would
be best to try this with a pure GEF example to see if the issue is with
GEF or GMF before raising the bugzilla. The GEF Logic Example can be
retrieved from CVS as well. It is located in the /cvsroot/tools
repository in the org.eclipse.gef package.

Regards,
Cherie

Frank Zimmermann wrote:
> Hi,
>
> I instaled the Logic example from the cvs.
> The behavior is even worse. A note can have more hat one line, but now
> it seems that the Editor cell and the label do not compute the size
> correctly.
> The cell shows 1 1/3 and the labelview definitely only 1 line
>
Previous Topic:Error : org.eclipse.core.variables "Reference to undefined variable target.os"
Next Topic:Using an abstract superclass as the root element in the gmfmap
Goto Forum:
  


Current Time: Tue Apr 23 11:12:52 GMT 2024

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

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

Back to the top