|
Re: changing the colour of the editor canvas [message #51937 is a reply to message #51654] |
Wed, 20 September 2006 12:53 |
Eclipse User |
|
|
|
Originally posted by: thmeier.fastmail.fm
Override createFigure() in your DiagramEditPart. By calling
super.createFigure() you get a reference to the IFigure. You can then set
the background colour directly for this figure. You also need to set it to
be opaque.
protected IFigure createFigure() {
IFigure fig = super.createFigure();
fig.setBackgroundColor(ColorConstants.green);
fig.setOpaque(true);
return fig;
}
-Tom
"sayed" <sayed.shoed@tavant.com> wrote in message
news:eeqnkg$6fa$1@utils.eclipse.org...
> Hi,
>
> I want to change the colour of the editor canvas.Is there anyway by which
> I can do this.
>
> Regards
> Sayed Aamir Shoeb
|
|
|
|
Powered by
FUDForum. Page generated in 0.04340 seconds