X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.project%2Fsrc%2Forg%2Fsimantics%2Fproject%2FHeadlessApplication.java;fp=bundles%2Forg.simantics.project%2Fsrc%2Forg%2Fsimantics%2Fproject%2FHeadlessApplication.java;h=bc7db4e6b52a778b49bc213cf5f2c4ef04b9f96d;hp=8a2525c53346c155d566c2caf8de7bd511d63f2f;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.project/src/org/simantics/project/HeadlessApplication.java b/bundles/org.simantics.project/src/org/simantics/project/HeadlessApplication.java index 8a2525c53..bc7db4e6b 100644 --- a/bundles/org.simantics.project/src/org/simantics/project/HeadlessApplication.java +++ b/bundles/org.simantics.project/src/org/simantics/project/HeadlessApplication.java @@ -1,36 +1,36 @@ -/******************************************************************************* - * Copyright (c) 2007 VTT Technical Research Centre of Finland and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.project; - -import org.eclipse.core.runtime.Platform; -import org.eclipse.equinox.app.IApplication; -import org.eclipse.equinox.app.IApplicationContext; - -public class HeadlessApplication implements IApplication { - - @Override - public Object start(IApplicationContext context) throws Exception { - System.out.println("configuration: " + Platform.getConfigurationLocation().getURL()); - System.out.println("install: " + Platform.getInstallLocation().getURL()); - System.out.println("instance: " + Platform.getInstanceLocation().getURL()); - System.out.println("user: " + Platform.getUserLocation().getURL()); - - return IApplication.EXIT_OK; - } - - @Override - public void stop() { - // TODO Auto-generated method stub - - } - -} - +/******************************************************************************* + * Copyright (c) 2007 VTT Technical Research Centre of Finland and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.project; + +import org.eclipse.core.runtime.Platform; +import org.eclipse.equinox.app.IApplication; +import org.eclipse.equinox.app.IApplicationContext; + +public class HeadlessApplication implements IApplication { + + @Override + public Object start(IApplicationContext context) throws Exception { + System.out.println("configuration: " + Platform.getConfigurationLocation().getURL()); + System.out.println("install: " + Platform.getInstallLocation().getURL()); + System.out.println("instance: " + Platform.getInstanceLocation().getURL()); + System.out.println("user: " + Platform.getUserLocation().getURL()); + + return IApplication.EXIT_OK; + } + + @Override + public void stop() { + // TODO Auto-generated method stub + + } + +} +