KickJava   Java API By Example, From Geeks To Geeks.

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


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.ui.application.IWorkbenchWindowConfigurer;
28 import org.eclipse.ui.application.WorkbenchAdvisor;
29 import org.eclipse.ui.application.WorkbenchWindowAdvisor;
30 import org.objectweb.dolphin.configuration.ConfigurationPerspective;
31
32 /**
33  * The workbench Advisor of Dolphin
34  * @author Bourgeon Jérôme, Macherel Bruno
35  */

36 public class DolphinWorkbenchAdvisor extends WorkbenchAdvisor {
37
38     /**
39      * @see org.eclipse.ui.application.WorkbenchAdvisor#getInitialWindowPerspectiveId()
40      */

41     public String JavaDoc getInitialWindowPerspectiveId() {
42         return ConfigurationPerspective.ID_PERSPECTIVE;
43     }
44
45     /**
46      * @see org.eclipse.ui.application.WorkbenchAdvisor#createWorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer)
47      */

48     public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer){
49         return new DolphinWorkbenchWindowAdvisor(configurer);
50     }
51
52 }
Popular Tags