@@ -9,7 +9,10 @@ import {
99 FrontendApplicationContribution ,
1010 FrontendApplication as TheiaFrontendApplication ,
1111} from '@theia/core/lib/browser/frontend-application' ;
12- import { LibraryListWidget } from './library/library-list-widget' ;
12+ import {
13+ LibraryListWidget ,
14+ LibraryListWidgetSearchOptions ,
15+ } from './library/library-list-widget' ;
1316import { ArduinoFrontendContribution } from './arduino-frontend-contribution' ;
1417import {
1518 LibraryService ,
@@ -25,7 +28,10 @@ import {
2528} from '../common/protocol/sketches-service' ;
2629import { SketchesServiceClientImpl } from './sketches-service-client-impl' ;
2730import { CoreService , CoreServicePath } from '../common/protocol/core-service' ;
28- import { BoardsListWidget } from './boards/boards-list-widget' ;
31+ import {
32+ BoardsListWidget ,
33+ BoardsListWidgetSearchOptions ,
34+ } from './boards/boards-list-widget' ;
2935import { BoardsListWidgetFrontendContribution } from './boards/boards-widget-frontend-contribution' ;
3036import { BoardsServiceProvider } from './boards/boards-service-provider' ;
3137import { WorkspaceService as TheiaWorkspaceService } from '@theia/workspace/lib/browser/workspace-service' ;
@@ -73,7 +79,10 @@ import {
7379} from '../common/protocol/config-service' ;
7480import { MonitorWidget } from './serial/monitor/monitor-widget' ;
7581import { MonitorViewContribution } from './serial/monitor/monitor-view-contribution' ;
76- import { TabBarDecoratorService as TheiaTabBarDecoratorService } from '@theia/core/lib/browser/shell/tab-bar-decorator' ;
82+ import {
83+ TabBarDecorator ,
84+ TabBarDecoratorService as TheiaTabBarDecoratorService ,
85+ } from '@theia/core/lib/browser/shell/tab-bar-decorator' ;
7786import { TabBarDecoratorService } from './theia/core/tab-bar-decorator' ;
7887import { ProblemManager as TheiaProblemManager } from '@theia/markers/lib/browser' ;
7988import { ProblemManager } from './theia/markers/problem-manager' ;
@@ -311,10 +320,10 @@ import { PreferencesEditorWidget } from './theia/preferences/preference-editor-w
311320import { PreferencesWidget } from '@theia/preferences/lib/browser/views/preference-widget' ;
312321import { createPreferencesWidgetContainer } from '@theia/preferences/lib/browser/views/preference-widget-bindings' ;
313322import {
314- BoardsFilterRenderer ,
315- LibraryFilterRenderer ,
316- } from './widgets/component-list/filter-renderer' ;
317- import { CheckForUpdates } from './contributions/check-for-updates' ;
323+ CheckForUpdates ,
324+ BoardsUpdates ,
325+ LibraryUpdates ,
326+ } from './contributions/check-for-updates' ;
318327import { OutputEditorFactory } from './theia/output/output-editor-factory' ;
319328import { StartupTaskProvider } from '../electron-common/startup-task' ;
320329import { DeleteSketch } from './contributions/delete-sketch' ;
@@ -353,6 +362,11 @@ import { CreateFeatures } from './create/create-features';
353362import { Account } from './contributions/account' ;
354363import { SidebarBottomMenuWidget } from './theia/core/sidebar-bottom-menu-widget' ;
355364import { SidebarBottomMenuWidget as TheiaSidebarBottomMenuWidget } from '@theia/core/lib/browser/shell/sidebar-bottom-menu-widget' ;
365+ import {
366+ BoardsListWidgetTabBarDecorator ,
367+ LibraryListWidgetTabBarDecorator ,
368+ } from './widgets/component-list/list-widget-tabbar-decorator' ;
369+ import { HoverService } from './theia/core/hover-service' ;
356370
357371export default new ContainerModule ( ( bind , unbind , isBound , rebind ) => {
358372 // Commands and toolbar items
@@ -368,8 +382,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
368382
369383 // Renderer for both the library and the core widgets.
370384 bind ( ListItemRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
371- bind ( LibraryFilterRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
372- bind ( BoardsFilterRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
373385
374386 // Library service
375387 bind ( LibraryService )
@@ -392,6 +404,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
392404 LibraryListWidgetFrontendContribution
393405 ) ;
394406 bind ( OpenHandler ) . toService ( LibraryListWidgetFrontendContribution ) ;
407+ bind ( TabBarToolbarContribution ) . toService (
408+ LibraryListWidgetFrontendContribution
409+ ) ;
410+ bind ( CommandContribution ) . toService ( LibraryListWidgetFrontendContribution ) ;
411+ bind ( LibraryListWidgetSearchOptions ) . toSelf ( ) . inSingletonScope ( ) ;
395412
396413 // Sketch list service
397414 bind ( SketchesService )
@@ -461,6 +478,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
461478 BoardsListWidgetFrontendContribution
462479 ) ;
463480 bind ( OpenHandler ) . toService ( BoardsListWidgetFrontendContribution ) ;
481+ bind ( TabBarToolbarContribution ) . toService (
482+ BoardsListWidgetFrontendContribution
483+ ) ;
484+ bind ( CommandContribution ) . toService ( BoardsListWidgetFrontendContribution ) ;
485+ bind ( BoardsListWidgetSearchOptions ) . toSelf ( ) . inSingletonScope ( ) ;
464486
465487 // Board select dialog
466488 bind ( BoardsConfigDialogWidget ) . toSelf ( ) . inSingletonScope ( ) ;
@@ -1026,4 +1048,20 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
10261048 rebind ( TheiaSidebarBottomMenuWidget ) . toService ( SidebarBottomMenuWidget ) ;
10271049
10281050 bind ( ArduinoComponentContextMenuRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
1051+ 1052+ bind ( HoverService ) . toSelf ( ) . inSingletonScope ( ) ;
1053+ bind ( LibraryUpdates ) . toSelf ( ) . inSingletonScope ( ) ;
1054+ bind ( FrontendApplicationContribution ) . toService ( LibraryUpdates ) ;
1055+ bind ( LibraryListWidgetTabBarDecorator ) . toSelf ( ) . inSingletonScope ( ) ;
1056+ bind ( TabBarDecorator ) . toService ( LibraryListWidgetTabBarDecorator ) ;
1057+ bind ( FrontendApplicationContribution ) . toService (
1058+ LibraryListWidgetTabBarDecorator
1059+ ) ;
1060+ bind ( BoardsUpdates ) . toSelf ( ) . inSingletonScope ( ) ;
1061+ bind ( FrontendApplicationContribution ) . toService ( BoardsUpdates ) ;
1062+ bind ( BoardsListWidgetTabBarDecorator ) . toSelf ( ) . inSingletonScope ( ) ;
1063+ bind ( TabBarDecorator ) . toService ( BoardsListWidgetTabBarDecorator ) ;
1064+ bind ( FrontendApplicationContribution ) . toService (
1065+ BoardsListWidgetTabBarDecorator
1066+ ) ;
10291067} ) ;
0 commit comments