Skip to main content



      Home
Home » Eclipse Projects » GEF » draw2d does not work with rcp
draw2d does not work with rcp [message #183279] Mon, 30 May 2005 04: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: Wed Jul 02 22:39:20 EDT 2025

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

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

Back to the top