draw2d does not work in rcp [message #183287] |
Mon, 30 May 2005 08:09 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03830 seconds