-
- Composite buttons = new Composite(editorArea, SWT.NONE);
- buttons.setLayout(new RowLayout(SWT.HORIZONTAL));
- Button delete = new Button(buttons, SWT.PUSH);
- delete.setText("Delete");
- editorArea.setTopRight(buttons);
-
- CTabItem defaultTab = new CTabItem(editorArea, SWT.NONE);
- defaultTab.setText("Home");
- defaultBody = new Composite(editorArea, SWT.NONE);
+ editorArea.setLayout(new GridLayout());
+
+ // TODO make it dynamic
+ RecentItems recentItems = new RecentItems();
+ recentItems.createUiPart(entryArea);
+
+ editorTabFolder = new CTabFolder(editorArea, SWT.NONE);
+ editorTabFolder.setLayoutData(CmsUiUtils.fillAll());
+ Composite buttons = new Composite(editorTabFolder, SWT.NONE);
+ RowLayout buttonsLayout = new RowLayout(SWT.HORIZONTAL);
+ buttonsLayout.pack = false;
+ buttons.setLayout(buttonsLayout);
+ Button delete = new Button(buttons, SWT.FLAT);
+ delete.setImage(ArgeoSuiteIcon.delete.getSmallIcon(theme));
+ // int size = ArgeoSuiteIcon.delete.getSmallIconSize();
+ // delete.setBounds(delete.getBounds().x,delete.getBounds().y,size,size);
+ // delete.setSize(size, size);
+ editorTabFolder.setTopRight(buttons);
+
+ CTabItem defaultTab = new CTabItem(editorTabFolder, SWT.NONE);
+ // defaultTab.setText("Home");
+ defaultTab.setImage(dashboard.getSmallIcon(theme));
+ defaultBody = new Composite(editorTabFolder, SWT.NONE);