4
4
postConstruct ,
5
5
} from "@theia/core/shared/inversify" ;
6
6
7
- import { Signal } from "@phosphor /signaling" ;
7
+ import { Signal } from "@lumino /signaling" ;
8
8
import {
9
9
TabBar ,
10
10
Widget ,
@@ -15,32 +15,32 @@ import {
15
15
DockLayout ,
16
16
BoxLayout ,
17
17
FocusTracker ,
18
- } from "@phosphor /widgets" ;
18
+ } from "@lumino /widgets" ;
19
19
import {
20
20
empty ,
21
21
toArray ,
22
22
ArrayExt ,
23
- IIterator ,
23
+ // IIterator,
24
24
find ,
25
- iter ,
26
- } from "@phosphor /algorithm" ;
25
+ // iter,
26
+ } from "@lumino /algorithm" ;
27
27
import {
28
28
Message ,
29
29
MessageLoop ,
30
30
ConflatableMessage
31
- } from "@phosphor /messaging" ;
31
+ } from "@lumino /messaging" ;
32
32
import {
33
33
Drag , IDragEvent
34
- } from '@phosphor /dragdrop' ;
34
+ } from '@lumino /dragdrop' ;
35
35
import {
36
36
MimeData
37
- } from '@phosphor /coreutils' ;
37
+ } from '@lumino /coreutils' ;
38
38
import {
39
39
ElementExt
40
- } from '@phosphor /domutils' ;
40
+ } from '@lumino /domutils' ;
41
41
import {
42
42
IDisposable
43
- } from '@phosphor /disposable' ;
43
+ } from '@lumino /disposable' ;
44
44
45
45
import {
46
46
MessageService ,
@@ -56,10 +56,10 @@ import {
56
56
TheiaDockPanel ,
57
57
BOTTOM_AREA_ID ,
58
58
MAIN_AREA_ID ,
59
- MAXIMIZED_CLASS ,
59
+ // MAXIMIZED_CLASS,
60
60
} from "@theia/core/lib/browser/shell/theia-dock-panel" ;
61
61
import { FrontendApplicationStateService } from "@theia/core/lib/browser/frontend-application-state" ;
62
- import { CorePreferences } from "@theia/core/lib/browser /core-preferences" ;
62
+ import { CorePreferences } from "@theia/core/lib/common /core-preferences" ;
63
63
64
64
import { crdebug } from "./cr-logger" ;
65
65
import { CodeRibbonTheiaPatch } from "./cr-patch" ;
@@ -1014,13 +1014,13 @@ export class CodeRibbonTheiaRibbonPanel extends BoxPanel implements EventListene
1014
1014
// features that DockPanel has, and they're expected by Theia
1015
1015
1016
1016
// @ts -expect-error TS2425: Class defines instance member property 'widgets', but extended class defines it as instance member function.
1017
- override widgets ( ) : IIterator < Widget > {
1017
+ override widgets ( ) : Iterator < Widget > {
1018
1018
// TODO iterate widgets in order of ribbon layout from within strips
1019
1019
// return (this.layout as CodeRibbonTheiaRibbonLayout).widgets;
1020
- return iter ( this . contentful_widgets ) ;
1020
+ return this . contentful_widgets . values ( ) ;
1021
1021
}
1022
1022
1023
- tabBars ( ) : IIterator < TabBar < Widget > > {
1023
+ tabBars ( ) : IterableIterator < TabBar < Widget > > {
1024
1024
// TODO removal of tabBars
1025
1025
// return this._root ? this._root.iterTabBars() : empty<TabBar<Widget>>();
1026
1026
return empty < TabBar < Widget > > ( ) ;
@@ -1363,7 +1363,7 @@ export class CodeRibbonTheiaRibbonPanel extends BoxPanel implements EventListene
1363
1363
UnsafeWidgetUtilities . detach ( this ) ;
1364
1364
}
1365
1365
maximizedElement . style . display = "block" ;
1366
- this . addClass ( MAXIMIZED_CLASS ) ;
1366
+ // this.addClass(MAXIMIZED_CLASS); // TODO is this still needed?
1367
1367
const preference = this . preferences ?. get ( "window.menuBarVisibility" ) ;
1368
1368
if ( ! this . isElectron ( ) && preference === "visible" ) {
1369
1369
this . addClass ( VISIBLE_MENU_MAXIMIZED_CLASS ) ;
@@ -1374,7 +1374,7 @@ export class CodeRibbonTheiaRibbonPanel extends BoxPanel implements EventListene
1374
1374
this . toDisposeOnToggleMaximized . push (
1375
1375
Disposable . create ( ( ) => {
1376
1376
maximizedElement . style . display = "none" ;
1377
- this . removeClass ( MAXIMIZED_CLASS ) ;
1377
+ // this.removeClass(MAXIMIZED_CLASS); // TODO is this still needed?
1378
1378
this . onDidToggleMaximizedEmitter . fire ( this ) ;
1379
1379
if ( ! this . isElectron ( ) ) {
1380
1380
this . removeClass ( VISIBLE_MENU_MAXIMIZED_CLASS ) ;
0 commit comments