2) Used a custom frame in the composite (SWT Frame wizard)
3) Renamed the frame variable from buildPaths to pgBuildPaths
-my Frame class is buildPaths and SWT Designer used that same name as the variable name
-I renamed it to avoid potential conflicts
After step #2:
- Code: Select all
final buildPaths buildPaths = new buildPaths(scrolledComposite, SWT.NONE);
buildPaths.setSize(735, 303);
scrolledComposite.setContent(buildPaths);
After renaming in step #3:
- Code: Select all
final pgBuildPaths pgBuildPaths = new pgBuildPaths(scrolledComposite, SWT.NONE);
pgBuildPaths.setSize(735, 303);
scrolledComposite.setContent(pgBuildPaths);
It seems that using a custom frame, it inherits the Frame's class as the variable name. Not good. Then, when I rename the variable via the control properties, it renames both the Class and instance names. This introduces an error in the code.
Regardless, I like this custom frame functionality.
Thanks