Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Add WindowBuilder TabItem at Runtime
Add WindowBuilder TabItem at Runtime [message #780961] Wed, 18 January 2012 22:50
Mark Rowe is currently offline Mark RoweFriend
Messages: 1
Registered: July 2009
Junior Member
Excuse my explanation, I am new to Java / SWT. I am attempting to convert a legacy application from Qt.

My application has a number of consists of many 'pages'. Each 'page' holds a variety of controls (tables, buttons, checkboxes etc.).

At startup only a welcome page is shown as TabItem1 of a TabFolder, but by clicking on a list at the left of the screen new pages (TabItems) are added.

To help me organise my code, I would like each page (TabItem) to live in its own pair of files - one is created by WindowBuilder, the other contains the business logic for that page.

I am stuck with two problems:

How can I separate the WindowBuilder generated code from the business logic? In WindowBuilder when I link an event it just dumps the code in the same class as the code that sets up all the widgets.
How can I create just a TabItem in WindowBuilder and add it to the TabFolder (and raise it and remove it) from the TabFolder at runtime?

Thanks for any help!
Previous Topic:libswt-webkit-gtk is no longer built in Eclipse 3.8
Next Topic:OleControlSite.isDirty() returns true even after is called
Goto Forum:

Current Time: Thu Apr 26 09:59:29 GMT 2018

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

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