1 /*******************************************************************************
\r
2 * Copyright (c) 2015 Association for Decentralized Information Management
\r
3 * in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * Semantum Oy - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.startup;
\r
14 import org.simantics.CancelStartupException;
\r
15 import org.simantics.PlatformException;
\r
18 * Plug-ins can register a startup extension will be activated and consulted
\r
19 * during the Simantics platform startup. The extension must provide an
\r
20 * implementation of this interface.
\r
22 * @author Tuukka Lehtonen
\r
25 public interface IStartup {
\r
28 * Will be called in the platform startup thread, i.e. the UI thread during
\r
29 * workbench initialization.
\r
32 * Can throw any {@link PlatformException}, such as
\r
33 * {@link CancelStartupException} to prevent the platform from starting up
\r
36 public void preStartup() throws PlatformException;
\r