@Test public void testInitializeWithSchemas() { testInitialize(); when( schemaExplorer.hasItems() ).thenReturn( true ); structureExplorer.showSchemas(); verifyBreadcrumbsCleared(); verifyBreadCrumbsAdded( dataSourceBreadcrumbItem, schemasBreadcrumbItem ); verifyVisibleContent( schemaExplorer ); verifyIsActive( schemasBreadcrumbItem ); }
protected void showSchemas( ) { if ( schemaExplorer.hasItems( ) ) { clearBreadcrumbs( ); setBreadcrumbs( dataSourceBreadcrumbItem, schemasBreadcrumbItem ); view.clearContent( ); view.setContent( schemaExplorer ); } else { onSchemaSelected( null ); } }
DatabaseStructureExplorer implements DatabaseStructureExplorerView.Presenter, IsElement { protected void showSchemas( ) { if ( schemaExplorer.hasItems( ) ) { clearBreadcrumbs( ); setBreadcrumbs( dataSourceBreadcrumbItem, schemasBreadcrumbItem ); view.clearContent( ); view.setContent( schemaExplorer ); } else { onSchemaSelected( null ); } } }
DatabaseStructureExplorer implements DatabaseStructureExplorerView.Presenter, IsElement { protected void showSchemas( ) { if ( schemaExplorer.hasItems( ) ) { clearBreadcrumbs( ); setBreadcrumbs( dataSourceBreadcrumbItem, schemasBreadcrumbItem ); view.clearContent( ); view.setContent( schemaExplorer ); } else { onSchemaSelected( null ); } } DatabaseStructureExplorer( ); @Inject  DatabaseStructureExplorer( DatabaseStructureExplorerView view,
                                      DatabaseSchemaExplorer schemaExplorer,
                                      DatabaseObjectExplorer objectExplorer,
                                      TableObjectViewer objectViewer,
                                      ManagedInstance< BreadcrumbItem > itemInstance,
                                      TranslationService translationService ); }
DatabaseStructureExplorer implements DatabaseStructureExplorerView.Presenter, IsElement { protected void showSchemas( ) { if ( schemaExplorer.hasItems( ) ) { clearBreadcrumbs( ); setBreadcrumbs( dataSourceBreadcrumbItem, schemasBreadcrumbItem ); view.clearContent( ); view.setContent( schemaExplorer ); } else { onSchemaSelected( null ); } } DatabaseStructureExplorer( ); @Inject  DatabaseStructureExplorer( DatabaseStructureExplorerView view,
                                      DatabaseSchemaExplorer schemaExplorer,
                                      DatabaseObjectExplorer objectExplorer,
                                      TableObjectViewer objectViewer,
                                      ManagedInstance< BreadcrumbItem > itemInstance,
                                      TranslationService translationService ); @Override HTMLElement getElement( ); void initialize( Settings settings ); void initialize( Settings settings, InitializeCallback callback ); void addHandler( DatabaseStructureExplorerView.Handler handler ); }
DatabaseStructureExplorer implements DatabaseStructureExplorerView.Presenter, IsElement { protected void showSchemas( ) { if ( schemaExplorer.hasItems( ) ) { clearBreadcrumbs( ); setBreadcrumbs( dataSourceBreadcrumbItem, schemasBreadcrumbItem ); view.clearContent( ); view.setContent( schemaExplorer ); } else { onSchemaSelected( null ); } } DatabaseStructureExplorer( ); @Inject  DatabaseStructureExplorer( DatabaseStructureExplorerView view,
                                      DatabaseSchemaExplorer schemaExplorer,
                                      DatabaseObjectExplorer objectExplorer,
                                      TableObjectViewer objectViewer,
                                      ManagedInstance< BreadcrumbItem > itemInstance,
                                      TranslationService translationService ); @Override HTMLElement getElement( ); void initialize( Settings settings ); void initialize( Settings settings, InitializeCallback callback ); void addHandler( DatabaseStructureExplorerView.Handler handler );  }