drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/dsl/editor/DSLEditor.java
private void createTableListeners() {

        //setup views into current selected
        table.addSelectionListener( new SelectionListener() {

            public void widgetSelected(SelectionEvent e) {
                populate();
            }

            public void widgetDefaultSelected(SelectionEvent e) {
                populate();
            }

            private void populate() {
                DSLMappingEntry selected = getCurrentSelected();
                exprText.setText( selected.getMappingKey() );
                mappingText.setText( selected.getMappingValue() );
                objText.setText( selected.getMetaData().getMetaData() == null ? "" : selected.getMetaData().getMetaData() );
            }

        } );

        //double click support
        table.addMouseListener( new MouseListener() {

            public void mouseDoubleClick(MouseEvent e) {
                showEditPopup();
            }

            public void mouseDown(MouseEvent e) {
            }

            public void mouseUp(MouseEvent e) {
            }

        } );

    }
private void createTableListeners() {

        //setup views into current selected
        table.addSelectionListener( new SelectionListener() {

            public void widgetSelected(SelectionEvent e) {
                populate();
            }

            public void widgetDefaultSelected(SelectionEvent e) {
                populate();
            }

            private void populate() {
                DSLMappingEntry selected = getCurrentSelected();
                exprText.setText( selected.getMappingKey() );
                mappingText.setText( selected.getMappingValue() );
                objText.setText( selected.getMetaData().getMetaData() == null ? "" : selected.getMetaData().getMetaData() );
            }

        } );

        //double click support
        table.addMouseListener( new MouseListener() {

            public void mouseDoubleClick(MouseEvent e) {
                showEditPopup();
            }

            public void mouseDown(MouseEvent e) {
            }

            public void mouseUp(MouseEvent e) {
            }

        } );

    }
private void createTableListeners ( ) { //setup views into current selected table . addSelectionListener ( new SelectionListener ( ) { public void widgetSelected ( SelectionEvent e ) { populate ( ) ; } public void widgetDefaultSelected ( SelectionEvent e ) { populate ( ) ; } private void populate ( ) { DSLMappingEntry selected = getCurrentSelected ( ) ; exprText . setText ( selected . getMappingKey ( ) ) ; mappingText . setText ( selected . getMappingValue ( ) ) ; objText . setText ( selected . getMetaData ( ) . getMetaData ( ) == null ? "" : selected . getMetaData ( ) . getMetaData ( ) ) ; } } ) ; //double click support table . addMouseListener ( new MouseListener ( ) { public void mouseDoubleClick ( MouseEvent e ) { showEditPopup ( ) ; } public void mouseDown ( MouseEvent e ) { } public void mouseUp ( MouseEvent e ) { } } ) ; }
Setup table listeners for GUI events.
Setup table listeners for GUI events .