public boolean removeBusItinerary ( int index ) { try { final BusItinerary busItinerary = this . itineraries . remove ( index ) ; busItinerary . setContainer ( null ) ; busItinerary . setEventFirable ( true ) ; fireShapeChanged ( new BusChangeEvent ( this , BusChangeEventType . ITINERARY_REMOVED , busItinerary , index , "shape" , //$NON-NLS-1$ null , null ) ) ; checkPrimitiveValidity ( ) ; return true ; } catch ( Throwable exception ) { // } return false ; }
Remove the bus itinerary at the specified index . All the associated stops will be removed also .