SWT tabs with Draw2d
I'm currently working on project that requires me to produce a flowchart to which i used a open source flowchart class found on the web.
This class creates an IFigure object which is used to set the contents of a LightweightSystem object:
Shell shell = new Shell();
LightweightSystem lws = new LightweightSystem(shell);
ChartFigure flowchart = new ChartFigure();
I now want to put the flowchart i have created inside a tab rather than a single shell window, i used the follwing code to create a tabfolder:
TabFolder tabFolder = new TabFolder(shell, SWT.BORDER);
TabItem tabItem = new TabItem(tabFolder, SWT.NULL);
and the following to set the contents of the tab:
The problem i am having is connecting the tab with the flowchart created in the original code, as the above line of code will not accept any draw2d types as a parameter.
I wondered if there was a different way of doing this that would allow me to produce a tab with my flowchart in?
I hope this is enough detail, if not please let me know