[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
] [
Newsgroup Home
]
[news.eclipse.modeling.gmf] Re: Center a Label in a Node
From
: Cayla Sha <
cayla_sha@xxxxxxx
>
Date
: Sat, 29 Nov 2008 10:32:18 +0100
Newsgroups
:
eclipse.modeling.gmf
Organization
: EclipseCorner
User-agent
: Thunderbird 2.0.0.14 (Windows/20080421)
Hello Cecilia,
you get the error "index doesn`t exist", because you use the wrong constant.
Uwe told you to use PositionConstants.CENTER. But instead you have to use BorderLayout.CENTER. Apperently they`re not the same int.
This is the API of draw2d:
http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.draw2d.doc.isv/reference/api/org/eclipse/draw2d/package-tree.html
When you look at BorderLayout, then you can see, that it has its own constants for positioning.
I had the same problem yesterday :)
Best wishes Julia
Follow-Ups
:
[news.eclipse.modeling.gmf] Re: Center a Label in a Node
From:
Cecilia
References
:
[news.eclipse.modeling.gmf] Center a Label in a Node
From:
Cecilia
[news.eclipse.modeling.gmf] Re: Center a Label in a Node
From:
Uwe Südbeck
[news.eclipse.modeling.gmf] Re: Center a Label in a Node
From:
Cecilia
Prev by Date:
[news.eclipse.modeling.gmf] How to get the underlying XML from a palette tool
Next by Date:
[news.eclipse.modeling.gmf] How to keep the relation of the sides of a figure?
Previous by thread:
[news.eclipse.modeling.gmf] Re: Center a Label in a Node
Next by thread:
[news.eclipse.modeling.gmf] Re: Center a Label in a Node
Index(es):
Date
Thread