import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TreeNode;
import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Tree;
private ESelectionService selService;
@PostConstruct
- public void create(Composite parent, EMenuService menuService) {
+ public void create(Composite parent, EMenuService menuService, MPart thisPart) {
- TreeViewer treeViewer = new TreeViewer(new Tree(parent, SWT.MULTI | SWT.H_SCROLL
+ this.thisPart = thisPart;
+ TreeViewer treeViewer = new TreeViewer(new Tree(parent, SWT.H_SCROLL
| SWT.V_SCROLL | SWT.FULL_SELECTION));
treeViewer.setContentProvider(new MediaContentProvider());
return Messages.MediaViewPart_MEDIA;
}
- public Viewer getViewer() {
- return viewer;
- }
-
}