Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.TableLayout


                | SWT.H_SCROLL | SWT.V_SCROLL);
        viewerTree.setLayoutData("grow, h 100%!, w 85%!"); //$NON-NLS-1$
        viewerTree.setHeaderVisible(true);
        viewerTree.setLinesVisible(true);
       
        final TableLayout viewerTreeLayout = new TableLayout();
       
        final TreeColumn nameColumn = new TreeColumn(viewerTree, SWT.LEFT, DOCUMENT_INDEX);
        nameColumn.setText(Messages.docView_documentColumn);
        viewerTreeLayout.addColumnData(new ColumnWeightData(DOCUMENT_WEIGHT));

        final TreeColumn detailColumn = new TreeColumn(viewerTree, SWT.CENTER, TYPE_INDEX);
        detailColumn.setText(Messages.docView_typeColumn);
        viewerTreeLayout.addColumnData(new ColumnWeightData(TYPE_WEIGHT));
       
        final TreeColumn descColumn = new TreeColumn(viewerTree, SWT.LEFT, DESCRIPTION_INDEX);
        descColumn.setText(Messages.docView_descriptionColumn);
        viewerTreeLayout.addColumnData(new ColumnWeightData(DESCRIPTION_WEIGHT));
       
        viewerTree.setLayout(viewerTreeLayout);
       
        viewer = new TreeViewer(viewerTree);
        viewer.setContentProvider(new DocumentViewContentProvider());
View Full Code Here


      Tree tree = viewer.getTree();
        tree.setLinesVisible(true);
        tree.setHeaderVisible(true);
       
        tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,true));
        TableLayout tableLayout=new TableLayout();
        tableLayout.addColumnData(new ColumnWeightData(1,200));
        tableLayout.addColumnData(new ColumnWeightData(3,200));
        TreeColumn nameColumn=new TreeColumn(tree, SWT.LEFT);
        nameColumn.setWidth(200);
        TreeColumn infoColumn=new TreeColumn(tree, SWT.LEFT|SWT.H_SCROLL);
        viewer.setContentProvider(new SummaryDataProvider());
        viewer.setLabelProvider(new SummaryLabelProvider());
View Full Code Here

    }

    private TableViewer getTableControl(Composite parent) {
        TableViewer paletteTable = new TableViewer(new Table(parent, SWT.BORDER | SWT.V_SCROLL
                | SWT.H_SCROLL | SWT.FULL_SELECTION));
        TableLayout tableLayout = new TableLayout();
        tableLayout.addColumnData(new ColumnWeightData(1, 20, false));
        TableColumn firstColumn = new TableColumn(paletteTable.getTable(), SWT.LEFT);
        firstColumn.setAlignment(SWT.LEFT);
        paletteTable.getTable().setLayout(tableLayout);
//        gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
//        gridData.horizontalSpan = 2;
View Full Code Here

    protected final void initializeViewer( Composite listComp ) {
        GridData layoutData;
        TableViewer tableViewer = new TableViewer(listComp, SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION);
        this.viewer = tableViewer;
        Table table = tableViewer.getTable();
        TableLayout tableLayout = new TableLayout();
        table.setLayout(tableLayout);
        tableLayout.addColumnData(new ColumnWeightData(1, true));
        createColumns(table, tableLayout);
        viewer.getControl().setToolTipText(Messages.MapSelectorPage_selectmapsExport);
        layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
        layoutData.horizontalSpan = 2;
        layoutData.verticalSpan = 3;
View Full Code Here

    }


    private Tree createTree( Tree tree ) {
       
        TableLayout tableLayout = new TableLayout();
        tableLayout.addColumnData(new ColumnWeightData(1,true));
        tableLayout.addColumnData(new ColumnWeightData(1,true));
        tree.setLayout(tableLayout);

        TreeColumn name=new TreeColumn(tree, SWT.DEFAULT);
        name.setMoveable(false);
        name.setResizable(true);
View Full Code Here

    }

    protected TableViewer createTable(Table table) {
        TableViewer tableViewer = new TableViewer(table);
   
        TableLayout layout = new TableLayout();
        layout.addColumnData(new ColumnWeightData(50, 65, true));
        TableColumn nameColumn = new TableColumn(table, SWT.LEFT);
        nameColumn.setText(Messages.ValidationDialog_argument);
        nameColumn.setWidth(65);
        layout.addColumnData(new ColumnWeightData(50, 75, true));
        table.setLayout(layout);
        TableColumn valColumn = new TableColumn(table, SWT.LEFT);
        valColumn.setText(Messages.ValidationDialog_value);
        valColumn.setWidth(75);
        table.setHeaderVisible(true);
View Full Code Here

            tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        else
            tree.setLayoutData(layoutData);

        tree.setHeaderVisible(true);
        TableLayout tableLayout = new TableLayout();
        tableLayout.addColumnData(new ColumnWeightData(1));
        tableLayout.addColumnData(new ColumnWeightData(1));
        tableLayout.addColumnData(new ColumnWeightData(1));

        tree.setLayout(tableLayout);

        TreeColumn column = new TreeColumn(tree, SWT.CENTER);
        column.setResizable(true);
View Full Code Here

        GridData gridData = new GridData(GridData.FILL_BOTH);
        gridData.horizontalSpan = LAYOUT_COLUMNS;
        table.setLayoutData(gridData);
        table.setHeaderVisible(true);
        TableLayout layout = new TableLayout();
        table.setLayout(layout);

        layout.addColumnData(new ColumnWeightData(1));
        layout.addColumnData(new ColumnWeightData(1));
        layout.addColumnData(new ColumnWeightData(1));
        layout.addColumnData(new ColumnWeightData(1));

        TableColumn nameColumn = new TableColumn(table, SWT.LEFT);
        nameColumn.setText(localization.table);

        TableColumn schemaColumn = new TableColumn(table, SWT.LEFT);
View Full Code Here

        createPaletteFilterComposite(font, compMiddle3);
       
        //list of matching palettes
        paletteTable = new TableViewer(new Table(compMiddle, SWT.BORDER | SWT.V_SCROLL | SWT.FULL_SELECTION));
        TableLayout tableLayout = new TableLayout();
        tableLayout.addColumnData(new ColumnWeightData(1, 20, false));
        TableColumn firstColumn = new TableColumn(paletteTable.getTable(), SWT.LEFT);
        firstColumn.setAlignment(SWT.LEFT);
        paletteTable.getTable().setLayout(tableLayout);
        gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
        gridData.horizontalSpan = 2;
View Full Code Here

    }

    public void createControl( Composite parent ) {
        SashForm form=new SashForm(parent, SWT.VERTICAL);
        Tree tree=new Tree(form, SWT.V_SCROLL|SWT.SINGLE);
        TableLayout layout=new TableLayout();
        layout.addColumnData(new ColumnWeightData(100,false));
        tree.setLayout(layout);
        tree.setLinesVisible(true);
        viewer=new TreeViewer(tree);
       
        viewer.setContentProvider(this);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.TableLayout

Copyright © 2018 www.massapicom. 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.