@@ -9,7 +9,10 @@ import {
9
9
FrontendApplicationContribution ,
10
10
FrontendApplication as TheiaFrontendApplication ,
11
11
} 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' ;
13
16
import { ArduinoFrontendContribution } from './arduino-frontend-contribution' ;
14
17
import {
15
18
LibraryService ,
@@ -25,7 +28,10 @@ import {
25
28
} from '../common/protocol/sketches-service' ;
26
29
import { SketchesServiceClientImpl } from './sketches-service-client-impl' ;
27
30
import { 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' ;
29
35
import { BoardsListWidgetFrontendContribution } from './boards/boards-widget-frontend-contribution' ;
30
36
import { BoardsServiceProvider } from './boards/boards-service-provider' ;
31
37
import { WorkspaceService as TheiaWorkspaceService } from '@theia/workspace/lib/browser/workspace-service' ;
@@ -73,7 +79,10 @@ import {
73
79
} from '../common/protocol/config-service' ;
74
80
import { MonitorWidget } from './serial/monitor/monitor-widget' ;
75
81
import { 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' ;
77
86
import { TabBarDecoratorService } from './theia/core/tab-bar-decorator' ;
78
87
import { ProblemManager as TheiaProblemManager } from '@theia/markers/lib/browser' ;
79
88
import { ProblemManager } from './theia/markers/problem-manager' ;
@@ -311,10 +320,10 @@ import { PreferencesEditorWidget } from './theia/preferences/preference-editor-w
311
320
import { PreferencesWidget } from '@theia/preferences/lib/browser/views/preference-widget' ;
312
321
import { createPreferencesWidgetContainer } from '@theia/preferences/lib/browser/views/preference-widget-bindings' ;
313
322
import {
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' ;
318
327
import { OutputEditorFactory } from './theia/output/output-editor-factory' ;
319
328
import { StartupTaskProvider } from '../electron-common/startup-task' ;
320
329
import { DeleteSketch } from './contributions/delete-sketch' ;
@@ -353,6 +362,11 @@ import { CreateFeatures } from './create/create-features';
353
362
import { Account } from './contributions/account' ;
354
363
import { SidebarBottomMenuWidget } from './theia/core/sidebar-bottom-menu-widget' ;
355
364
import { 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' ;
356
370
357
371
export default new ContainerModule ( ( bind , unbind , isBound , rebind ) => {
358
372
// Commands and toolbar items
@@ -368,8 +382,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
368
382
369
383
// Renderer for both the library and the core widgets.
370
384
bind ( ListItemRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
371
- bind ( LibraryFilterRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
372
- bind ( BoardsFilterRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
373
385
374
386
// Library service
375
387
bind ( LibraryService )
@@ -392,6 +404,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
392
404
LibraryListWidgetFrontendContribution
393
405
) ;
394
406
bind ( OpenHandler ) . toService ( LibraryListWidgetFrontendContribution ) ;
407
+ bind ( TabBarToolbarContribution ) . toService (
408
+ LibraryListWidgetFrontendContribution
409
+ ) ;
410
+ bind ( CommandContribution ) . toService ( LibraryListWidgetFrontendContribution ) ;
411
+ bind ( LibraryListWidgetSearchOptions ) . toSelf ( ) . inSingletonScope ( ) ;
395
412
396
413
// Sketch list service
397
414
bind ( SketchesService )
@@ -461,6 +478,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
461
478
BoardsListWidgetFrontendContribution
462
479
) ;
463
480
bind ( OpenHandler ) . toService ( BoardsListWidgetFrontendContribution ) ;
481
+ bind ( TabBarToolbarContribution ) . toService (
482
+ BoardsListWidgetFrontendContribution
483
+ ) ;
484
+ bind ( CommandContribution ) . toService ( BoardsListWidgetFrontendContribution ) ;
485
+ bind ( BoardsListWidgetSearchOptions ) . toSelf ( ) . inSingletonScope ( ) ;
464
486
465
487
// Board select dialog
466
488
bind ( BoardsConfigDialogWidget ) . toSelf ( ) . inSingletonScope ( ) ;
@@ -1026,4 +1048,20 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
1026
1048
rebind ( TheiaSidebarBottomMenuWidget ) . toService ( SidebarBottomMenuWidget ) ;
1027
1049
1028
1050
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
+ ) ;
1029
1067
} ) ;
0 commit comments