fdTree.right = new FormAttachment( 100, 0 ); fdTree.bottom = new FormAttachment( 100, -50 ); wTree.setLayoutData( fdTree );
fdTree.right = new FormAttachment( 100, 0 ); fdTree.bottom = new FormAttachment( 100, 0 ); wTree.setLayoutData( fdTree );
fdTree.right = new FormAttachment( 100, 0 ); fdTree.bottom = new FormAttachment( 100, -50 ); wTree.setLayoutData( fdTree );
fdlTree.right = new FormAttachment( 20, 0 ); fdlTree.bottom = new FormAttachment( 100, -margin ); wTree.setLayoutData( fdlTree );
treeFormData.right = new FormAttachment( 100, 0 ); treeFormData.bottom = new FormAttachment( closeButton, -margin * 2 ); tree.setLayoutData( treeFormData );
fdlTree.right = new FormAttachment( 20, 0 ); fdlTree.bottom = new FormAttachment( 100, -margin ); wTree.setLayoutData( fdlTree );
fdlTree.right = new FormAttachment( 20, 0 ); fdlTree.bottom = new FormAttachment( 100, -margin ); wTree.setLayoutData( fdlTree );
fdTree.top = new FormAttachment( treeTb, margin ); fdTree.bottom = new FormAttachment( 100, -30 ); wTree.setLayoutData( fdTree );
fdTree.right = new FormAttachment( 100, 0 ); fdTree.bottom = new FormAttachment( 100, 0 ); wTree.setLayoutData( fdTree );
fdTree.right = new FormAttachment( 100, 0 ); fdTree.bottom = new FormAttachment( 100, 0 ); wTree.setLayoutData( fdTree );
fdTree.right = new FormAttachment( 100, 0 ); fdTree.bottom = new FormAttachment( 100, -50 ); wTree.setLayoutData( fdTree );
private static Tree createTree(final Composite parent, final String text, final String... columns) { final Composite group = GUIToolkit.newGroup(parent, SWT.NONE, text, new GridData(SWT.FILL, SWT.FILL, true, true)); // <-- THIS group.setFont(FontManager.NORMAL_BOLD); group.setLayout(new FillLayout()); final Tree tree = new Tree(group, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI); tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); // <-- THIS tree.setHeaderVisible(true); GUIToolkit.createColumns(tree, columns); GUIToolkit.addColumnSort(tree, DATA); GUIToolkit.removeDoubleClickExpand(tree); }
/** * Clears the look of the forms body. */ private void clearFormBody() { if ((messageComposite != null) && !messageComposite.isDisposed()) { messageComposite.dispose(); } treeViewer.setInput(Collections.emptyList()); treeViewer.getTree().setVisible(false); treeViewer.getTree().setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false)); }
/** * Clears the look of the forms body. */ private void clearFormBody() { if ((cmrMessageComposite != null) && !cmrMessageComposite.isDisposed()) { cmrMessageComposite.dispose(); } treeViewer.setInput(Collections.emptyList()); treeViewer.getTree().setVisible(false); treeViewer.getTree().setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false)); }
/** * Clears the look of the form. */ private void clearFormBody() { if ((messageComposite != null) && !messageComposite.isDisposed()) { messageComposite.dispose(); } treeViewer.setInput(null); treeViewer.getTree().setVisible(false); treeViewer.getTree().setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false)); }
@Override protected Control createCustomArea(Composite parent) { TreeViewer viewer = new TreeViewer(parent, SWT.BORDER); GridData gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 150; viewer.getTree().setLayoutData(gd); viewer.setContentProvider(fContentProvider); viewer.setLabelProvider(fLabelProvider); viewer.setInput(fInput); applyDialogFont(viewer.getControl()); return viewer.getControl(); }
private TreeViewer createViewer(Composite parent) { TreeViewer treeViewer= new TreeViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); GridData gd= new GridData(GridData.FILL_BOTH); gd.widthHint= convertWidthInCharsToPixels(40); gd.heightHint= convertHeightInCharsToPixels(15); treeViewer.getTree().setLayoutData(gd); treeViewer.setLabelProvider(new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_SMALL_ICONS)); treeViewer.setContentProvider(new DestinationContentProvider(getDestinationValidator())); treeViewer.setComparator(new JavaElementComparator()); treeViewer.setInput(JavaCore.create(ResourcesPlugin.getWorkspace().getRoot())); return treeViewer; }
private TreeViewer createViewer(Composite parent) { TreeViewer treeViewer= new TreeViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); GridData gd= new GridData(GridData.FILL_BOTH); gd.widthHint= convertWidthInCharsToPixels(40); gd.heightHint= convertHeightInCharsToPixels(15); treeViewer.getTree().setLayoutData(gd); treeViewer.setLabelProvider(new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_SMALL_ICONS)); treeViewer.setContentProvider(new DestinationContentProvider(getDestinationValidator())); treeViewer.setComparator(new JavaElementComparator()); treeViewer.setInput(JavaCore.create(ResourcesPlugin.getWorkspace().getRoot())); return treeViewer; }
private TreeViewer createViewer(Composite parent) { TreeViewer treeViewer= new TreeViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); GridData gd= new GridData(GridData.FILL_BOTH); gd.widthHint= convertWidthInCharsToPixels(40); gd.heightHint= convertHeightInCharsToPixels(15); treeViewer.getTree().setLayoutData(gd); treeViewer.setLabelProvider(new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_SMALL_ICONS)); treeViewer.setContentProvider(new DestinationContentProvider(getDestinationValidator())); treeViewer.setComparator(new JavaElementComparator()); treeViewer.setInput(JavaCore.create(ResourcesPlugin.getWorkspace().getRoot())); return treeViewer; }
public Tree createTree( Composite parent, String tooltip, String infopop, int style ) { tooltip = tooltip == null ? "" : tooltip; Tree tree = new Tree( parent, style ); tree.setLayoutData( createFillAll() ); tree.setToolTipText( tooltip); if( infopop != null ) PlatformUI.getWorkbench().getHelpSystem().setHelp( tree, infoPopid_ + "." + infopop ); return tree; }