]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics/src/org/simantics/startup/IStartup.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics / src / org / simantics / startup / IStartup.java
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
8  *\r
9  * Contributors:\r
10  *     Semantum Oy - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.startup;\r
13 \r
14 import org.simantics.CancelStartupException;\r
15 import org.simantics.PlatformException;\r
16 \r
17 /**\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
21  * \r
22  * @author Tuukka Lehtonen\r
23  * @since 1.18.1\r
24  */\r
25 public interface IStartup {\r
26 \r
27     /**\r
28      * Will be called in the platform startup thread, i.e. the UI thread during\r
29      * workbench initialization.\r
30      * \r
31      * <p>\r
32      * Can throw any {@link PlatformException}, such as\r
33      * {@link CancelStartupException} to prevent the platform from starting up\r
34      * for some reason.\r
35      */\r
36     public void preStartup() throws PlatformException;\r
37 \r
38 }\r