Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » draw2d does not work in rcp
draw2d does not work in rcp [message #183287] Mon, 30 May 2005 08:09 Go to next message
Eclipse UserFriend
Originally posted by: yaowang.capitalbio.com

i just want to show a lable with draw2d, but it does not work.


public void createPartControl(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
container.setLayout(new FillLayout());

canvas = new Canvas(container, SWT.NONE);

LightweightSystem lws = new LightweightSystem(canvas);
IFigure label = new Label("Hello World");
lws.setContents(label);

}

error message:
an error has occurred while restoring the view
Re: draw2d does not work in rcp [message #183354 is a reply to message #183287] Wed, 01 June 2005 20:39 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

And the error is?

"motif" <yaowang@capitalbio.com> wrote in message
news:d7j7gb$umf$1@news.eclipse.org...
>i just want to show a lable with draw2d, but it does not work.
>
>
> public void createPartControl(Composite parent) {
> Composite container = new Composite(parent, SWT.NONE);
> container.setLayout(new FillLayout());
>
> canvas = new Canvas(container, SWT.NONE);
>
> LightweightSystem lws = new LightweightSystem(canvas);
> IFigure label = new Label("Hello World");
> lws.setContents(label);
>
> }
>
> error message:
> an error has occurred while restoring the view
>
>
Previous Topic:Strikethrough
Next Topic:Populating palette via XML file
Goto Forum:
  


Current Time: Fri Apr 26 07:02:48 GMT 2024

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

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

Back to the top