//
//  DefaultXalWindow.java
//  xal
//
//  Created by Thomas Pelaia on 7/18/06.
//  Copyright 2006 Oak Ridge National Lab. All rights reserved.
//

package xal.application;


/** provides a default implementation of the XAL window */
public class DefaultXalWindow extends XalWindow {
    /** serialization ID */
    private static final long serialVersionUID = 1L;
    
    /** Constructor */
    public DefaultXalWindow( final XalDocument aDocument ) {
		super( aDocument );
    }	
    
	
    /**
	 * Indicates whether or not to display the toolbar.
	 * @return true to display the toolbar and false to hide it
     */
    public boolean usesToolbar() {
        return true;
    }
}

@@ -376,104 +376,411 @@
 /** 
-Constructor */%0A    public DefaultXalWindow( final XalDocument aDocument ) %7B%0A%09%09super( aDocument )
+indicates whether to display a toolbar */%0A    private final boolean DISPLAYS_TOOLBAR;%0A    %0A    %0A    /** Constructor */%0A    public DefaultXalWindow( final XalDocument aDocument ) %7B%0A%09%09this( aDocument, true );%0A    %7D%09%0A    %0A    %0A    /** Constructor */%0A    public DefaultXalWindow( final XalDocument aDocument, final boolean displaysToolbar ) %7B%0A%09%09super( aDocument );%0A        DISPLAYS_TOOLBAR = displaysToolbar
 ;%0A  
@@ -971,20 +971,32 @@
  return 
-true
+DISPLAYS_TOOLBAR
 ;%0A    %7D%0A

Make the toolbar optional for the default XAL window.