Feng Dihai wrote:We have created a customized component based on FigureCanvas, but failed to insert it via SWT designer.
java.lang.IllegalArgumentException: Can not find constructor for org.eclipse.draw2d.FigureCanvas
Eric Clayberg wrote:Make sure that your widget has a public, two argument constructor (required in order to be a valid SWT widget).
The constructor argtuments should be a Composite and an int (e.g., parent and style).
public MyFigureCanvas(Composite parent, int style)
public FigureCanvas(Composite parent, int style)
Feng Dihai wrote:The problem is we just cannot insert a org.eclipse.draw2d.FigureCanvas, which of course has a constructor like
Eric Clayberg wrote:I'm not sure what you mean.
I would suggest that you send us an actual test case.
Feng Dihai wrote:Please check the archived project file
Users browsing this forum: No registered users and 1 guest