@@ -71,8 +71,8 @@ export class NotebookShell extends Widget implements JupyterFrontEnd.IShell {
7171const leftHandler = this . _leftHandler ;
7272const rightHandler = this . _rightHandler ;
7373
74- this . leftPanel . id = 'jp-left-stack' ;
75- this . rightPanel . id = 'jp-right-stack' ;
74+ leftHandler . panel . id = 'jp-left-stack' ;
75+ rightHandler . panel . id = 'jp-right-stack' ;
7676
7777// Hide the side panels by default.
7878leftHandler . hide ( ) ;
@@ -164,32 +164,20 @@ export class NotebookShell extends Widget implements JupyterFrontEnd.IShell {
164164return this . _rightHandler ;
165165}
166166
167- /**
168- * Shortcut to get the left area handler's stacked panel
169- */
170- get leftPanel ( ) :Panel {
171- return this . _leftHandler . panel ;
172- }
173-
174- /**
175- * Shortcut to get the right area handler's stacked panel
176- */
177- get rightPanel ( ) :Panel {
178- return this . _rightHandler . panel ;
179- }
180-
181167/**
182168 * Is the left sidebar visible?
183169 */
184170get leftCollapsed ( ) :boolean {
185- return ! ( this . _leftHandler . isVisible && this . leftPanel . isVisible ) ;
171+ return ! ( this . _leftHandler . isVisible && this . _leftHandler . panel . isVisible ) ;
186172}
187173
188174/**
189175 * Is the right sidebar visible?
190176 */
191177get rightCollapsed ( ) :boolean {
192- return ! ( this . _rightHandler . isVisible && this . rightPanel . isVisible ) ;
178+ return ! (
179+ this . _rightHandler . isVisible && this . _rightHandler . panel . isVisible
180+ ) ;
193181}
194182
195183/**
@@ -308,7 +296,7 @@ export class NotebookShell extends Widget implements JupyterFrontEnd.IShell {
308296 * Expand the left panel to show the sidebar with its widget.
309297 */
310298expandLeft ( id ?:string ) :void {
311- this . leftPanel . show ( ) ;
299+ this . _leftHandler . panel . show ( ) ;
312300this . _leftHandler . expand ( id ) ; // Show the current widget, if any
313301this . _onLayoutModified ( ) ;
314302}
@@ -318,15 +306,15 @@ export class NotebookShell extends Widget implements JupyterFrontEnd.IShell {
318306 */
319307collapseLeft ( ) :void {
320308this . _leftHandler . collapse ( ) ;
321- this . leftPanel . hide ( ) ;
309+ this . _leftHandler . panel . hide ( ) ;
322310this . _onLayoutModified ( ) ;
323311}
324312
325313/**
326314 * Expand the right panel to show the sidebar with its widget.
327315 */
328316expandRight ( id ?:string ) :void {
329- this . rightPanel . show ( ) ;
317+ this . _rightHandler . panel . show ( ) ;
330318this . _rightHandler . expand ( id ) ; // Show the current widget, if any
331319this . _onLayoutModified ( ) ;
332320}
@@ -336,7 +324,7 @@ export class NotebookShell extends Widget implements JupyterFrontEnd.IShell {
336324 */
337325collapseRight ( ) :void {
338326this . _rightHandler . collapse ( ) ;
339- this . rightPanel . hide ( ) ;
327+ this . _rightHandler . panel . hide ( ) ;
340328this . _onLayoutModified ( ) ;
341329}
342330
@@ -414,7 +402,6 @@ export class SideBarHandler {
414402
415403this . _current = null ;
416404this . _lastCurrent = null ;
417- this . _menuEntryLabel = `${ area [ 0 ] . toUpperCase ( ) } ${ area . slice ( 1 ) } Sidebar` ;
418405
419406this . _widgetPanel = new StackedPanel ( ) ;
420407this . _widgetPanel . widgetRemoved . connect ( this . _onWidgetRemoved , this ) ;
@@ -450,13 +437,6 @@ export class SideBarHandler {
450437return this . _area ;
451438}
452439
453- /**
454- * Get the menu entry label of the side panel
455- */
456- get menuEntryLabel ( ) :string {
457- return this . _menuEntryLabel ;
458- }
459-
460440/**
461441 * Whether the panel is visible
462442 */
@@ -636,7 +616,6 @@ export class SideBarHandler {
636616private _current :Widget | null ;
637617private _lastCurrent :Widget | null ;
638618private _updated :Signal < SideBarHandler , void > = new Signal ( this ) ;
639- private _menuEntryLabel :string ;
640619private _widgetAdded :Signal < SideBarHandler , Widget > = new Signal ( this ) ;
641620private _widgetRemoved :Signal < SideBarHandler , Widget > = new Signal ( this ) ;
642621}