public void callback( final GuidedTemplateEditorContent content ) {
multiPage.clear();
multiPage.addWidget( view,
CommonConstants.INSTANCE.EditTabTitle() );
multiPage.addPage( new Page( viewSource,
CommonConstants.INSTANCE.SourceTabTitle() ) {
@Override
public void onFocus() {
viewSource.showBusyIndicator( CommonConstants.INSTANCE.Loading() );
service.call( new ViewSourceSuccessCallback( viewSource ),
new HasBusyIndicatorDefaultErrorCallback( viewSource ) ).toSource( path,
view.getContent() );
}
@Override
public void onLostFocus() {
viewSource.clear();
}
} );
multiPage.addPage( new Page( dataView,
"Data" ) {
@Override
public void onFocus() {
dataView.setContent( model,
oracle,
eventBus,
isReadOnly );
}
@Override
public void onLostFocus() {
// Nothing to do here
}
} );
multiPage.addWidget( importsWidget,
CommonConstants.INSTANCE.ConfigTabTitle() );
multiPage.addPage( new Page( metadataWidget,
CommonConstants.INSTANCE.MetadataTabTitle() ) {
@Override
public void onFocus() {
if ( !metadataWidget.isAlreadyLoaded() ) {
metadataWidget.showBusyIndicator( CommonConstants.INSTANCE.Loading() );