Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Tree.computeSize()


    scrolledComposite.setExpandVertical(true);

    checkboxTreeViewer = new CheckboxTreeViewer(scrolledComposite, SWT.BORDER);
    Tree tree = checkboxTreeViewer.getTree();
    scrolledComposite.setContent(tree);
    scrolledComposite.setMinSize(tree.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    new Label(container, SWT.NONE);

    Button btnImportProfile = new Button(container, SWT.NONE);
    btnImportProfile.addSelectionListener(new SelectionAdapter() {
      @Override
View Full Code Here


    private void resizeColumns()
    {
        Rectangle area = container.getClientArea();
        Tree tree = treeViewer.getTree();
        Point oldSize = tree.getSize();
        Point preferredSize = tree.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        int width = area.width - 2 * tree.getBorderWidth();
        int attachmentWidth = attachmentColumn.getWidth();
        int spamWidth = spamColumn.getWidth();
        int fromWidth = fromColumn.getWidth();
       
View Full Code Here

    {
        AccountsView view = AccountsView.this;
        Rectangle area = view.container.getClientArea();
        Tree tree = view.tree;
        Point oldSize = tree.getSize();
        Point preferredSize = tree.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        int width = area.width - 2 * tree.getBorderWidth();
        int unreadWidth = view.unreadColumn.getWidth();
        int totalWidth = view.totalColumn.getWidth();
       
        if( preferredSize.y > area.height + tree.getHeaderHeight())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.