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