XSelectionSupplier aSelSupp = (XSelectionSupplier) UnoRuntime.queryInterface(
XSelectionSupplier.class,
(((XModel) UnoRuntime.queryInterface(
XModel.class, maChartDocument )).getCurrentController()) );
if( aSelSupp != null ) {
aSelSupp.addSelectionChangeListener( this );
System.out.println( "Successfully attached as selection change listener" );
bTrying = false;
}
// start listening for death of Controller