|
This post has NOT been accepted by the mailing list yet.
I have solved my problem. I have abandoned the MultiPageEditorPart and have instead used CTabFolder's instead, so i now have the map in a tab along with my other editor tab. If anyone is interested and wanted to do a similar thing here is a snippet:
CTabFolder cTabFolder = new CTabFolder(top, SWT.BOTTOM);
cTabFolder.setSimple(false);
// pass cTabFolder into MapEditor's createPartControl method
super.createPartControl(cTabFolder);
cTabFolder.setLayout(new FillLayout());
// creates my custom properties composte
createMyPropertiesComposite(cTabFolder);
// Create Map Tab
CTabItem cTabItem = new CTabItem(cTabFolder, SWT.NONE);
cTabItem.setText("Map");
// MapEditor Composite is added to tab item
cTabItem.setControl(this.getComposite());
// Create Properties Tab
CTabItem cTabItem2 = new CTabItem(cTabFolder, SWT.NONE);
cTabItem2.setText("Properties");
cTabItem2.setControl(myPropertiesComposite);
Mark.
|