]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.desktop.ui/src/org/simantics/desktop/ui/internal/DesktopProjectFeature.java
merged svn revision 33114 and added desktop and help plugins
[simantics/platform.git] / bundles / org.simantics.desktop.ui / src / org / simantics / desktop / ui / internal / DesktopProjectFeature.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.desktop.ui.internal;\r
12 \r
13 import org.simantics.project.ProjectKeys;\r
14 import org.simantics.project.exception.ProjectException;\r
15 import org.simantics.project.features.AbstractProjectFeature;\r
16 \r
17 public class DesktopProjectFeature extends AbstractProjectFeature {\r
18 \r
19     private static final String DEFAULT_PERSPECTIVE = "org.simantics.desktop.modelling.perspective";\r
20 \r
21     @Override\r
22     public void configure() throws ProjectException {\r
23         \r
24         Object existing = getProjectElement().getHint(ProjectKeys.DEFAULT_PERSPECTIVE);\r
25         if(existing == null)\r
26                 getProjectElement().setHint(ProjectKeys.DEFAULT_PERSPECTIVE, DEFAULT_PERSPECTIVE);\r
27 \r
28     }\r
29 \r
30     @Override\r
31     public void deconfigure() throws ProjectException {\r
32         \r
33     }\r
34 \r
35 }\r