Browse Source

Add editors to the main area widget

Jeremy Tuloup 5 years ago
parent
commit
7894a36ce0
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/debugger.ts

+ 6 - 3
src/debugger.ts

@@ -11,7 +11,7 @@ import { IDisposable } from '@phosphor/disposable';
 
 
 import { ISignal, Signal } from '@phosphor/signaling';
 import { ISignal, Signal } from '@phosphor/signaling';
 
 
-import { BoxPanel } from '@phosphor/widgets';
+import { BoxPanel, TabPanel } from '@phosphor/widgets';
 
 
 import { IDebugger } from './tokens';
 import { IDebugger } from './tokens';
 
 
@@ -20,16 +20,19 @@ import { DebuggerSidebar } from './sidebar';
 export class Debugger extends BoxPanel {
 export class Debugger extends BoxPanel {
   constructor(options: Debugger.IOptions) {
   constructor(options: Debugger.IOptions) {
     super({ direction: 'left-to-right' });
     super({ direction: 'left-to-right' });
+    this.title.label = 'Debugger';
+
     this.model = new Debugger.Model(options);
     this.model = new Debugger.Model(options);
 
 
     this.sidebar = new DebuggerSidebar(this.model);
     this.sidebar = new DebuggerSidebar(this.model);
-
-    this.title.label = 'Debugger';
     this.model.sidebar = this.sidebar;
     this.model.sidebar = this.sidebar;
 
 
+    this.editors = new TabPanel();
+
     this.addClass('jp-Debugger');
     this.addClass('jp-Debugger');
   }
   }
 
 
+  readonly editors: TabPanel;
   readonly model: Debugger.Model;
   readonly model: Debugger.Model;
   readonly sidebar: DebuggerSidebar;
   readonly sidebar: DebuggerSidebar;