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%2FIProject.java;fp=bundles%2Forg.simantics.project%2Fsrc%2Forg%2Fsimantics%2Fproject%2FIProject.java;h=a85aa059c8584a729e832b730b3eb8e9c48ea8de;hp=0c8dd36115d8839efa28e1b856c40f1f862af259;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.project/src/org/simantics/project/IProject.java b/bundles/org.simantics.project/src/org/simantics/project/IProject.java index 0c8dd3611..a85aa059c 100644 --- a/bundles/org.simantics.project/src/org/simantics/project/IProject.java +++ b/bundles/org.simantics.project/src/org/simantics/project/IProject.java @@ -1,88 +1,88 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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.simantics.db.Resource; -import org.simantics.db.Session; -import org.simantics.project.exception.ProjectException; -import org.simantics.project.features.IProjectFeature; -import org.simantics.utils.Container; -import org.simantics.utils.datastructures.disposable.IDisposable; -import org.simantics.utils.datastructures.hints.IHintContext; - -/** - * - * - * @author Tuukka Lehtonen - */ -public interface IProject extends IDisposable, IHintContext, Container { - - /** - * @return the session this project is related to. - */ - Session getSession(); - - /** - * @return the features used with this IProject. Depending on - * whether the the project is activated or not, the features will be - * either configured or unconfigured. - * @see #activate() - * @see #deactivate() - */ - IProjectFeature[] getFeatures(); - - /** - * Activates the project. - * - *

- * This implies invoking all {@link IProjectFeature#configure()} handlers - * that are attached to this project. The invocation order is the same as in - * which {@link #getFeatures()} returns the features. If the project has - * already been activated, this should be a null operation. - *

- *

- * This method may only be invoked outside of any transaction. This allows - * the {@link IProjectFeature} handlers to perform arbitrary read and/or - * write requests into the database. - *

- */ - void activate() throws ProjectException; - - /** - * Deactivates the project. - * - *

- * A deactivated project can be activated again later, as long as it isn't - * disposed. - *

- * - *

- * This implies invoking all {@link IProjectFeature#deconfigure()} handlers - * that are attached to this project. The invocation order is the reverse of - * the activation order. If the project is already inactive, this should be - * a null operation. - *

- * - *

- * Project disposal also implies deactivation. - *

- */ - void deactivate() throws ProjectException; - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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.simantics.db.Resource; +import org.simantics.db.Session; +import org.simantics.project.exception.ProjectException; +import org.simantics.project.features.IProjectFeature; +import org.simantics.utils.Container; +import org.simantics.utils.datastructures.disposable.IDisposable; +import org.simantics.utils.datastructures.hints.IHintContext; + +/** + * + * + * @author Tuukka Lehtonen + */ +public interface IProject extends IDisposable, IHintContext, Container { + + /** + * @return the session this project is related to. + */ + Session getSession(); + + /** + * @return the features used with this IProject. Depending on + * whether the the project is activated or not, the features will be + * either configured or unconfigured. + * @see #activate() + * @see #deactivate() + */ + IProjectFeature[] getFeatures(); + + /** + * Activates the project. + * + *

+ * This implies invoking all {@link IProjectFeature#configure()} handlers + * that are attached to this project. The invocation order is the same as in + * which {@link #getFeatures()} returns the features. If the project has + * already been activated, this should be a null operation. + *

+ *

+ * This method may only be invoked outside of any transaction. This allows + * the {@link IProjectFeature} handlers to perform arbitrary read and/or + * write requests into the database. + *

+ */ + void activate() throws ProjectException; + + /** + * Deactivates the project. + * + *

+ * A deactivated project can be activated again later, as long as it isn't + * disposed. + *

+ * + *

+ * This implies invoking all {@link IProjectFeature#deconfigure()} handlers + * that are attached to this project. The invocation order is the reverse of + * the activation order. If the project is already inactive, this should be + * a null operation. + *

+ * + *

+ * Project disposal also implies deactivation. + *

+ */ + void deactivate() throws ProjectException; + +}