Hi
I have a issue when using the designer on a new class that inherits from an abstract class that is a direct subclass of composite.
Composite
|
View (Abstract)
|
NewClass
The new class has two methods, a constructor
public TestView(Composite parent, int style)
{
super(parent, style);
}
and a standard createContents() method. which is public.
My problem is than when I use the designer to add widgets the code is placed in the constructor, and the create contents method is not displayed in the drop down box that specifies the method to use for the auto generated code.
However if I go to my source and move the auto generated code to the createContents method, then go back to the designer view. The createContents method is in the drop down list and any subsequent widgets added through the designer are placed in the correct method.
Does anyone know how to get round this so code start going in the createContents method by default
I'm running
Designer Product: SWT Designer
Designer Version: 1.2.3
Platform Product: IBM WebSphere Studio Application Developer
Platform Version: 5.1.1
Regards
Rob