]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.project/src/org/simantics/project/HeadlessApplication.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.project / src / org / simantics / project / HeadlessApplication.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.project;\r
12 \r
13 import org.eclipse.core.runtime.Platform;\r
14 import org.eclipse.equinox.app.IApplication;\r
15 import org.eclipse.equinox.app.IApplicationContext;\r
16 \r
17 public class HeadlessApplication implements IApplication {\r
18 \r
19         @Override\r
20         public Object start(IApplicationContext context) throws Exception {\r
21         System.out.println("configuration: " + Platform.getConfigurationLocation().getURL());\r
22         System.out.println("install: " + Platform.getInstallLocation().getURL());\r
23         System.out.println("instance: " + Platform.getInstanceLocation().getURL());\r
24         System.out.println("user: " + Platform.getUserLocation().getURL());\r
25         \r
26         return IApplication.EXIT_OK;\r
27         }\r
28 \r
29         @Override\r
30         public void stop() {\r
31                 // TODO Auto-generated method stub\r
32 \r
33         }\r
34 \r
35 }\r
36 \r