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