KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > dolphin > rcp > DolphinWorkbenchWindowAdvisor


1
2 /*
3 * Copyright (C) 2005 Bourgeon Jérôme, Macherel Bruno
4 *
5 * This file is part of Dolphin
6 *
7 * Dolphin : An open source J2EE Deployment Tool JSR-88 compliant
8 * Contact: ishmael-dev@objectweb.org
9 *
10 * Dolphin is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or any later version.
14 *
15 * Dolphin is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with Dolphin; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 * USA
24 */

25 package org.objectweb.dolphin.rcp;
26
27 import org.eclipse.swt.graphics.Point;
28 import org.eclipse.ui.application.ActionBarAdvisor;
29 import org.eclipse.ui.application.IActionBarConfigurer;
30 import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
31 import org.eclipse.ui.application.WorkbenchWindowAdvisor;
32
33 /**
34  * The workbench Window Advisor of Dolphin
35  * @author Bourgeon Jérôme, Macherel Bruno
36  */

37 public class DolphinWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
38
39     /**
40      * Constructor
41      * @param configurer
42      */

43     public DolphinWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer){
44         super(configurer);
45     }
46
47     /**
48      * Initialize the IWorkbenchWindowConfigurer
49      * @param configurer
50      */

51     public void preWindowOpen(IWorkbenchWindowConfigurer configurer) {
52         // super.preWindowOpen(configurer);
53
configurer.setInitialSize(new Point(800, 600));
54         configurer.setShowCoolBar(true);
55         configurer.setShowStatusLine(true);
56 // configurer.setTitle(Messages.getString("DolphinTitle")); //$NON-NLS-1$
57
}
58
59    /**
60     * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#createActionBarAdvisor(org.eclipse.ui.application.IActionBarConfigurer)
61     */

62     public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer){
63        return new DolphinActionBarAdvisor(configurer);
64     }
65 }
66
Popular Tags