blob: 5e7efd4a97a7a8856a7acc80e6364250327b1ee8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* jfaltermeier - initial API and implementation
******************************************************************************/
package org.eclipse.emfforms.internal.swt.treemasterdetail.defaultprovider;
import org.eclipse.emfforms.spi.swt.treemasterdetail.TreeViewerBuilder;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
/**
* @author jfaltermeier
*
*/
public final class DefaultTreeViewerBuilder implements TreeViewerBuilder {
@Override
public TreeViewer createTree(Composite parent) {
final TreeViewer treeViewer = new TreeViewer(parent, SWT.MULTI | SWT.BORDER);
treeViewer.setAutoExpandLevel(3);
return treeViewer;
// TODO JF compatible with RAP??
// new ColumnViewerInformationControlToolTipSupport(treeViewer,
// new DiagnosticDecorator.EditingDomainLocationListener(editingDomain, treeViewer));
}
}