[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: default font
|
- From: Cayla Sha <cayla_sha@xxxxxxx>
- Date: Mon, 16 Feb 2009 11:15:14 +0100
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
Hello Michael,
What happens, when you set the Font in the gmfgraph-file?
Best wishes
Julia
Michael Dengler schrieb:
Hi,
I have a simple rectangle figure with a label and try to give a default
font to it. Later it should be possible to change the font in the
Appearance section of the Eclipse property view.
The following code in the figure's editpart sets the font, but it can't
be changed later:
protected NodeFigure createNodeFigure() {
NodeFigure figure = createNodePlate();
figure.setLayoutManager(new StackLayout());
IFigure shape = createNodeShape();
figure.add(shape);
shape.setFont(FIGURE_FONT);
contentPane = setupContentPane(shape);
return figure;
}
Thanks,
Michael