Skip to content

Commit

Permalink
Embedded to tree in a TabFolder, thanx to Yanamon for the crucial clue:
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Apr 7, 2010
1 parent 20c6709 commit 4d198e5
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -13,6 +13,8 @@
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.openscience.gittodo.sort.ItemSorter;

import com.github.gittodo.rcp.views.GitToDoTree;
Expand All @@ -28,7 +30,12 @@ public static void main( String[] args ) {
FillLayout layout = new FillLayout();
shell.setLayout(layout);

final GitToDoTree tableViewer = new GitToDoTree(shell);
TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
TabItem item = new TabItem(tabFolder, SWT.NONE);
item.setText("TODO List");

final GitToDoTree tableViewer = new GitToDoTree(tabFolder);
item.setControl(tableViewer.getTable()); // Possible setControl call?

Menu menuBar = new Menu(shell, SWT.BAR);
shell.setMenuBar( menuBar );
Expand Down

0 comments on commit 4d198e5

Please sign in to comment.