org.eclipse.jface.layout.TreeColumnLayout Java Examples

The following examples show how to use org.eclipse.jface.layout.TreeColumnLayout. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SimulationSessionViewerFactory.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
public static TreeViewer createViewer(Composite parent) {

		Composite comp = new Composite(parent, SWT.NONE);
		GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1);
		comp.setLayoutData(layoutData);
		TreeColumnLayout layout = new TreeColumnLayout();
		comp.setLayout(layout);

		TreeViewer simulationSessionViewer = new TreeViewer(comp);
		simulationSessionViewer.setContentProvider(new LaunchContentProvider());
		simulationSessionViewer.setLabelProvider(new LaunchLabelProvider());
		return simulationSessionViewer;
	}
 
Example #2
Source File: TreeViewerBuilder.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected AbstractColumnLayout createColumnLayout() {
	return new TreeColumnLayout();
}