X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.project%2Fsrc%2Forg%2Fsimantics%2Fproject%2Ffeatures%2FIProjectFeature.java;h=513949b3ca055ad6dd3734a692216ef3642ea75c;hb=eef8022b52cb287487d543cb64a71a367e2ee251;hp=5f85704660f17709ba24714a70a7f7ee3d5a1ace;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.project/src/org/simantics/project/features/IProjectFeature.java b/bundles/org.simantics.project/src/org/simantics/project/features/IProjectFeature.java index 5f8570466..513949b3c 100644 --- a/bundles/org.simantics.project/src/org/simantics/project/features/IProjectFeature.java +++ b/bundles/org.simantics.project/src/org/simantics/project/features/IProjectFeature.java @@ -1,18 +1,18 @@ -/******************************************************************************* - * 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 - *******************************************************************************/ +/******************************************************************************* + * 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.features; -import org.simantics.project.IProject; -import org.simantics.project.exception.ProjectException; +import org.simantics.project.IProject; +import org.simantics.project.exception.ProjectException; /** * Interface for project feature runtime classes. It can configure a project @@ -37,16 +37,16 @@ import org.simantics.project.exception.ProjectException; * @see AbstractProjectFeature * @see IProjectFeatureDescriptor */ -public interface IProjectFeature { - /** - * Configures this feature for its project. This is called during - * {@link IProject#activate()} and should not be called directly by clients. - * - *
- * Exceptions thrown by this method will be propagated back to the caller of
- * IProject.activate
.
- *
- * @exception ProjectException if this method fails.
+public interface IProjectFeature {
+ /**
+ * Configures this feature for its project. This is called during
+ * {@link IProject#activate()} and should not be called directly by clients.
+ *
+ *
+ * Exceptions thrown by this method will be propagated back to the caller of
+ * IProject.activate
.
+ *
+ * @exception ProjectException if this method fails.
*/
void configure() throws ProjectException;
@@ -62,26 +62,26 @@ public interface IProjectFeature {
*
* @exception ProjectException if this method fails.
*/
- void deconfigure() throws ProjectException;
-
- /**
- * Returns the project to which this project feature applies. This method
- * may only be invoked from within {@link #configure()} and
- * {@link #deconfigure()}. At other times it is not guaranteed to return the
- * project.
- *
- * @return the project handle
+ void deconfigure() throws ProjectException;
+
+ /**
+ * Returns the project to which this project feature applies. This method
+ * may only be invoked from within {@link #configure()} and
+ * {@link #deconfigure()}. At other times it is not guaranteed to return the
+ * project.
+ *
+ * @return the project handle
*/
- IProject getProjectElement();
-
- /**
- * Sets the project to which this feature applies. This method should not be
- * called directly by clients. It is only to be used internally by
- * {@link IProject#activate()} during project activation and more precisely
- * project feature configuration.
- *
- * @param project the project to which this feature applies
+ IProject getProjectElement();
+
+ /**
+ * Sets the project to which this feature applies. This method should not be
+ * called directly by clients. It is only to be used internally by
+ * {@link IProject#activate()} during project activation and more precisely
+ * project feature configuration.
+ *
+ * @param project the project to which this feature applies
*/
- void setProjectElement(IProject project);
+ void setProjectElement(IProject project);
}