Package com.cedarsoft.spring.rcp.selection

Examples of com.cedarsoft.spring.rcp.selection.SelectionChangeListener


    } else {
      this.condition = condition;
    }

    command.setEnabled( selectionModel.getCurrentlySelectedObject().lookup( type ) != null );
    selectionModel.addSelectionChangeListener( new SelectionChangeListener() {
      @Override
      public void selectionChanged( @NotNull Lookup selectedObjects ) {
        updateEnabledState( command );
      }
    } );
View Full Code Here


      this.labelProvider = labelProvider;
      label = new StyledLabel();

      //update the selection
      this.selectionModel = selectionModel;
      selectionModel.addSelectionChangeListener( new SelectionChangeListener() {
        @Override
        public void selectionChanged( @NotNull Lookup selectedObjects ) {
          S selected = selectedObjects.lookup( selectionType );
          updateLabel( selected );
        }
View Full Code Here

TOP

Related Classes of com.cedarsoft.spring.rcp.selection.SelectionChangeListener

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.