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 17:50
Mark Rowe is currently offline Mark Rowe
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 OleControlSite.save(..) is called
Goto Forum:
  


Current Time: Wed Apr 23 19:55:52 EDT 2014

Powered by FUDForum. Page generated in 0.13019 seconds