Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » draw2d does not work with rcp
draw2d does not work with rcp [message #183279] Mon, 30 May 2005 08:06
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
Previous Topic:EDiagram changes on 10-May-2005
Next Topic:how to add a popup menu?
Goto Forum:
  


Current Time: Fri Dec 13 03:53:39 GMT 2024

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

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

Back to the top