package org.csstudio.sns.product;

//import org.csstudio.utility.speech.Annunciator;
//import org.csstudio.utility.speech.FreeTTSAnnunciator;
import org.eclipse.swt.graphics.Point;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;

/** Configure the workbench window.
 *  @author Kay Kasemir
 */
public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor
{

    public ApplicationWorkbenchWindowAdvisor(
                    IWorkbenchWindowConfigurer configurer)
    {
        super(configurer);
    }
    
    /** Set initial workbench window size and title */
    @Override
    public void preWindowOpen()
    {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setInitialSize(new Point(1024, 768));
        configurer.setShowMenuBar(true);
        configurer.setShowPerspectiveBar(true);
        configurer.setShowCoolBar(true);
        configurer.setShowFastViewBars(true);
        configurer.setShowProgressIndicator(true);
        configurer.setShowStatusLine(true);
        configurer.setTitle(Messages.Window_Title);
    }

    // TODO What to do about this gimmick?
//    @Override
//	public void postWindowOpen()
//    {
//    	Annunciator talk;
//		try
//		{
//			talk = new FreeTTSAnnunciator();
//	    	talk.say("Welcome to SNS Control System Studio");
//	    	talk.close();
//		}
//		catch (Exception e)
//		{
//			e.printStackTrace();
//		}
//		super.postWindowOpen();
//	}

	@Override
    public ActionBarAdvisor createActionBarAdvisor(
                    IActionBarConfigurer configurer)
    {
        return new ApplicationActionBarAdvisor(configurer);
    }
}

@@ -32,115 +32,8 @@
 t;%0A%0A
-//import org.csstudio.utility.speech.Annunciator;%0A//import org.csstudio.utility.speech.FreeTTSAnnunciator;%0A
 impo
@@ -1159,366 +1159,8 @@
  %7D%0A%0A
-    // TODO What to do about this gimmick?%0A//    @Override%0A//%09public void postWindowOpen()%0A//    %7B%0A//    %09Annunciator talk;%0A//%09%09try%0A//%09%09%7B%0A//%09%09%09talk = new FreeTTSAnnunciator();%0A//%09    %09talk.say(%22Welcome to SNS Control System Studio%22);%0A//%09    %09talk.close();%0A//%09%09%7D%0A//%09%09catch (Exception e)%0A//%09%09%7B%0A//%09%09%09e.printStackTrace();%0A//%09%09%7D%0A//%09%09super.postWindowOpen();%0A//%09%7D%0A%0A
 %09@Ov

remove gimmick