Examples of RelationshipTypeEditingSupport


Examples of org.neo4j.neoclipse.reltype.RelationshipTypeEditingSupport

        TableViewerColumn column = new TableViewerColumn( tableViewer, SWT.LEFT );
        TableColumn col = column.getColumn();
        col.setText( "Relationship type" );
        col.setWidth( 200 );
        col.setResizable( true );
        column.setEditingSupport( new RelationshipTypeEditingSupport(
                tableViewer, RelationshipTypeEditingSupport.ColumnType.HEADING ) );
        column = new TableViewerColumn( tableViewer, SWT.LEFT );
        col = column.getColumn();
        col.setText( "In" );
        col.setToolTipText( "Filter incoming relationships of this relationship type." );
        col.setWidth( 60 );
        col.setImage( Icons.INCOMING.image() );
        col.setResizable( true );
        column.setEditingSupport( new RelationshipTypeEditingSupport(
                tableViewer, RelationshipTypeEditingSupport.ColumnType.IN ) );
        column = new TableViewerColumn( tableViewer, SWT.LEFT );
        col = column.getColumn();
        col.setText( "Out" );
        col.setToolTipText( "Filter outgoing relationships of this relationship type." );
        col.setWidth( 60 );
        col.setImage( Icons.OUTGOING.image() );
        col.setResizable( true );
        column.setEditingSupport( new RelationshipTypeEditingSupport(
                tableViewer, RelationshipTypeEditingSupport.ColumnType.OUT ) );
        table.setHeaderVisible( true );
        table.setLinesVisible( true );
    }
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.