]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics/src/org/simantics/startup/IStartup.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics / src / org / simantics / startup / IStartup.java
1 /*******************************************************************************
2  * Copyright (c) 2015 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     Semantum Oy - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.startup;
13
14 import org.simantics.CancelStartupException;
15 import org.simantics.PlatformException;
16
17 /**
18  * Plug-ins can register a startup extension will be activated and consulted
19  * during the Simantics platform startup. The extension must provide an
20  * implementation of this interface.
21  * 
22  * @author Tuukka Lehtonen
23  * @since 1.18.1
24  */
25 public interface IStartup {
26
27     /**
28      * Will be called in the platform startup thread, i.e. the UI thread during
29      * workbench initialization.
30      * 
31      * <p>
32      * Can throw any {@link PlatformException}, such as
33      * {@link CancelStartupException} to prevent the platform from starting up
34      * for some reason.
35      */
36     public void preStartup() throws PlatformException;
37
38 }