private boolean isStepEnabled ( int step ) { if ( step < 0 ) { return false ; } boolean isStepEnabled = false ; try { Object oRoadmapItem = m_xRMIndexCont . getByIndex ( step - 1 ) ; XPropertySet xRMItemPSet = ( XPropertySet ) UnoRuntime . queryInterface ( XPropertySet . class , oRoadmapItem ) ; isStepEnabled = ( ( Boolean ) xRMItemPSet . getPropertyValue ( "Enabled" ) ) . booleanValue ( ) ; } catch ( com . sun . star . uno . Exception e ) { LOGGER . log ( Level . SEVERE , "Error in isStepEnabled" , e ) ; throw new CogrooRuntimeException ( e ) ; } return isStepEnabled ; }
Checks if step is enabled .