Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TreeColumn.addSelectionListener()


        for (final String name : names) {
            column = new TreeViewerColumn(viewer, SWT.NONE);
            final TreeColumn treeColumn = column.getColumn();
            treeColumn.setResizable(true);
            treeColumn.setMoveable(true);
            treeColumn.addSelectionListener(new SelectionListener() {

                @Override
                public void widgetDefaultSelected(final SelectionEvent e) {
                }
View Full Code Here


        BindingLabelProvider.COLUMN_COMMAND);
    commandNameColumn
        .setText(NewKeysPreferenceMessages.CommandNameColumn_Text);
    tree.setSortColumn(commandNameColumn);
    tree.setSortDirection(comparator.isAscending() ? SWT.UP : SWT.DOWN);
    commandNameColumn.addSelectionListener(new ResortColumn(comparator,
        commandNameColumn, tree, BindingLabelProvider.COLUMN_COMMAND));

    final TreeColumn triggerSequenceColumn = new TreeColumn(tree, SWT.LEFT,
        BindingLabelProvider.COLUMN_TRIGGER_SEQUENCE);
    triggerSequenceColumn
View Full Code Here

    final TreeColumn triggerSequenceColumn = new TreeColumn(tree, SWT.LEFT,
        BindingLabelProvider.COLUMN_TRIGGER_SEQUENCE);
    triggerSequenceColumn
        .setText(NewKeysPreferenceMessages.TriggerSequenceColumn_Text);
    triggerSequenceColumn.addSelectionListener(new ResortColumn(comparator,
        triggerSequenceColumn, tree,
        BindingLabelProvider.COLUMN_TRIGGER_SEQUENCE));

    final TreeColumn whenColumn = new TreeColumn(tree, SWT.LEFT,
        BindingLabelProvider.COLUMN_WHEN);
View Full Code Here

        BindingLabelProvider.COLUMN_TRIGGER_SEQUENCE));

    final TreeColumn whenColumn = new TreeColumn(tree, SWT.LEFT,
        BindingLabelProvider.COLUMN_WHEN);
    whenColumn.setText(NewKeysPreferenceMessages.WhenColumn_Text);
    whenColumn.addSelectionListener(new ResortColumn(comparator,
        whenColumn, tree, BindingLabelProvider.COLUMN_WHEN));

    final TreeColumn categoryColumn = new TreeColumn(tree, SWT.LEFT,
        BindingLabelProvider.COLUMN_CATEGORY);
    categoryColumn.setText(NewKeysPreferenceMessages.CategoryColumn_Text);
View Full Code Here

        whenColumn, tree, BindingLabelProvider.COLUMN_WHEN));

    final TreeColumn categoryColumn = new TreeColumn(tree, SWT.LEFT,
        BindingLabelProvider.COLUMN_CATEGORY);
    categoryColumn.setText(NewKeysPreferenceMessages.CategoryColumn_Text);
    categoryColumn.addSelectionListener(new ResortColumn(comparator,
        categoryColumn, tree, BindingLabelProvider.COLUMN_CATEGORY));

    final TreeColumn userMarker = new TreeColumn(tree, SWT.LEFT,
        BindingLabelProvider.COLUMN_USER);
    userMarker.setText(NewKeysPreferenceMessages.UserColumn_Text);
View Full Code Here

        categoryColumn, tree, BindingLabelProvider.COLUMN_CATEGORY));

    final TreeColumn userMarker = new TreeColumn(tree, SWT.LEFT,
        BindingLabelProvider.COLUMN_USER);
    userMarker.setText(NewKeysPreferenceMessages.UserColumn_Text);
    userMarker.addSelectionListener(new ResortColumn(comparator,
        userMarker, tree, BindingLabelProvider.COLUMN_USER));

    // Set up the providers for the viewer.
    final TreeViewer viewer = filteredTree.getViewer();
    viewer.setLabelProvider(new BindingLabelProvider());
View Full Code Here

        // Adding columns
        TreeColumn serverColumn = new TreeColumn( tree, SWT.SINGLE );
        serverColumn.setText( Messages.getString( "ServersView.server" ) ); //$NON-NLS-1$
        serverColumn.setWidth( columnWidths[0] );
        serverColumn.addSelectionListener( getHeaderListener( 0 ) );
        tree.setSortColumn( serverColumn );
        tree.setSortDirection( SWT.UP );

        TreeColumn stateColumn = new TreeColumn( tree, SWT.SINGLE );
        stateColumn.setText( Messages.getString( "ServersView.state" ) ); //$NON-NLS-1$
View Full Code Here

        tree.setSortDirection( SWT.UP );

        TreeColumn stateColumn = new TreeColumn( tree, SWT.SINGLE );
        stateColumn.setText( Messages.getString( "ServersView.state" ) ); //$NON-NLS-1$
        stateColumn.setWidth( columnWidths[1] );
        stateColumn.addSelectionListener( getHeaderListener( 1 ) );

        // Creating the viewer
        tableViewer = new ServersTableViewer( tree );

        initActions();
View Full Code Here

        // Adding columns
        TreeColumn serverColumn = new TreeColumn( tree, SWT.SINGLE );
        serverColumn.setText( "Server" );
        serverColumn.setWidth( columnWidths[0] );
        serverColumn.addSelectionListener( getHeaderListener( 0 ) );
        tree.setSortColumn( serverColumn );
        tree.setSortDirection( SWT.UP );

        TreeColumn stateColumn = new TreeColumn( tree, SWT.SINGLE );
        stateColumn.setText( "State" );
View Full Code Here

        tree.setSortDirection( SWT.UP );

        TreeColumn stateColumn = new TreeColumn( tree, SWT.SINGLE );
        stateColumn.setText( "State" );
        stateColumn.setWidth( columnWidths[1] );
        stateColumn.addSelectionListener( getHeaderListener( 1 ) );

        // Creating the viewer
        tableViewer = new ServersTableViewer( tree );

        initActions();
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.