Format format;
if ( isTrackEnabled() == false ) {
trackControl.setEnabled ( false );
return;
}
format = getFormat ();
if ( format == null ) {
MessageDialog.createErrorDialog ( getFrame(), "Internal error. " +
"Unable to match choosen format. Track will be disabled." );
trackControl.setEnabled ( false );
}
else {
trackControl.setEnabled ( true );
trackControl.setFormat ( format );
}