blob: 2bfcf6cde195049a38a50b8b0d0daa108b57f495 [file] [log] [blame]
deboer3b38f3e2007-03-28 04:33:16 +00001/*******************************************************************************
2 * Copyright (c) 2007 IBM Corporation 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 * IBM Corporation - Initial API and implementation
10 *******************************************************************************/
deboer5382ce72007-04-25 04:24:24 +000011package org.eclipse.wst.server.preview.internal;
deboer3b38f3e2007-03-28 04:33:16 +000012
deboer3b38f3e2007-03-28 04:33:16 +000013import org.eclipse.equinox.app.IApplication;
14import org.eclipse.equinox.app.IApplicationContext;
deboer3b38f3e2007-03-28 04:33:16 +000015
16public class PreviewApplication implements IApplication {
deboerafd05742007-03-29 03:17:33 +000017 protected PreviewStarter starter;
deboer3b38f3e2007-03-28 04:33:16 +000018
19 public Object start(IApplicationContext appContext) throws Exception {
deboerafd05742007-03-29 03:17:33 +000020 starter = new PreviewStarter(null);
21 starter.run();
deboer3b38f3e2007-03-28 04:33:16 +000022 return EXIT_OK;
23 }
24
25 public void stop() {
deboerafd05742007-03-29 03:17:33 +000026 starter.stop();
deboer3b38f3e2007-03-28 04:33:16 +000027 }
28}