1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
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
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.project.features.registry;
14 import java.util.Collection;
16 import org.eclipse.core.runtime.CoreException;
17 import org.simantics.project.features.IProjectFeature;
20 * @author Tuukka Lehtonen
22 public interface IProjectFeatureExtension {
25 * @return id of this extension
30 * @return label of this extension
35 * @return description of this extension
37 String getDescription();
40 * Informs whether this project feature should be published to users in UI's
41 * that visualize user selectable project features in some manner.
43 * For example top level project features should always be published in
44 * order to give Simantics Project Manager users the possibility to select
45 * the feature to be used in their project.
47 * @return <code>true</code> if the extension is published
49 boolean isPublished();
54 Collection<ProjectFeatureReference> requires();
59 Collection<InjectedDependency> injections();
64 Collection<GroupReference> installGroups();
67 * @return a new instance of the IProjectFeature described by this extension
69 IProjectFeature newInstance() throws CoreException;