-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
+/*******************************************************************************
+ * 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;\r
-import org.simantics.project.exception.ProjectException;\r
+import org.simantics.project.IProject;
+import org.simantics.project.exception.ProjectException;
/**
* Interface for project feature runtime classes. It can configure a project
* @see AbstractProjectFeature
* @see IProjectFeatureDescriptor
*/
-public interface IProjectFeature {\r
- /**\r
- * Configures this feature for its project. This is called during\r
- * {@link IProject#activate()} and should not be called directly by clients.\r
- * \r
- * <p>\r
- * Exceptions thrown by this method will be propagated back to the caller of\r
- * <code>IProject.activate</code>.\r
- * \r
- * @exception ProjectException if this method fails.\r
+public interface IProjectFeature {
+ /**
+ * Configures this feature for its project. This is called during
+ * {@link IProject#activate()} and should not be called directly by clients.
+ *
+ * <p>
+ * Exceptions thrown by this method will be propagated back to the caller of
+ * <code>IProject.activate</code>.
+ *
+ * @exception ProjectException if this method fails.
*/
void configure() throws ProjectException;
*
* @exception ProjectException if this method fails.
*/
- void deconfigure() throws ProjectException;\r
-\r
- /**\r
- * Returns the project to which this project feature applies. This method\r
- * may only be invoked from within {@link #configure()} and\r
- * {@link #deconfigure()}. At other times it is not guaranteed to return the\r
- * project.\r
- * \r
- * @return the project handle\r
+ 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();\r
-\r
- /**\r
- * Sets the project to which this feature applies. This method should not be\r
- * called directly by clients. It is only to be used internally by\r
- * {@link IProject#activate()} during project activation and more precisely\r
- * project feature configuration.\r
- * \r
- * @param project the project to which this feature applies\r
+ 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);\r
+ void setProjectElement(IProject project);
}