Designer seems to have an issue if you have more than one tab item and then attempt to add a new (C)TabItem to the (C)TableFolder.
Steps to reproduce:
1) Create a new Forms Composite
2) Add a (C)TabFolder
3) Add a (C)TabItem
4) Add another (C)TabItem
* Issue #1 is here - the ordering of the tab items in Designer is not properly set, the second tab item is now shown as first in the order even though the code shows it as being the second (minor)
5) Now add a anything from the Forms controls tool bar to either of the tab items
6) Select the tab item that you did not put the control on and you should get the error.
This works fine if I hand code it and even when I go back into designer, but if in designer I add an new (C)TabItem and then add a Form control to the item I get the same error.
The error appears to be with the auto-gen code:
- Code: Select all
toolkit.paintBordersFor(composite);
that gets added for the Form composite that is added. If I remove this code everything works fine.