@OpenApiAll public interface IProject extends Serviceable
| Modifier and Type | Method and Description |
|---|---|
void |
addProjectListener(com.nomagic.ci.persistence.ProjectListener projectListener)
Adds listener to project's listener list
|
java.lang.String |
getDescription()
Gets the project description.
|
<T extends com.nomagic.ci.persistence.features.IProjectFeature> |
getFeature(java.lang.Class<T> featureType)
Gets the installed feature by feature type.
|
com.nomagic.ci.persistence.features.FeatureDataManager |
getFeatureDataManager(com.nomagic.ci.persistence.features.IProjectFeatureDescriptor feature,
com.nomagic.ci.persistence.features.FeatureDataSetFilter... featureResourceFilters)
Gets feature data manager for given feature where feature data sets for managing are limited
to those defined by provided filters.
|
java.util.Set<java.lang.String> |
getInstalledFeatures()
Gets the set of feature names that has been installed in this project.
|
org.eclipse.emf.common.util.URI |
getLocationURI()
Gets the project URI.
|
java.lang.String |
getName()
Returns the project name
|
com.nomagic.ci.persistence.ProjectDescriptor |
getProjectDescriptor()
Returns project descriptor.
|
java.lang.String |
getProjectID()
Gets the project ID.
|
java.util.List<com.nomagic.ci.persistence.ProjectListener> |
getProjectListeners()
Gets all registered project listeners
|
com.nomagic.ci.persistence.IProjectRepository |
getProjectRepository()
Returns project repository where project is stored.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Gets the resource set used by this project.
|
void |
installFeatures(java.util.Set<java.lang.String> featureNames,
org.eclipse.core.runtime.IProgressMonitor monitor)
Installs given features to the primary project.
|
boolean |
isNew()
Determines, whether the project is new, that is, if it newer was saved before
|
boolean |
isReadOnly()
Returns repository state.
|
<T> void |
registerService(java.lang.Class<T> type,
T service)
Adds project specific service to the project.
|
void |
removeProjectListener(com.nomagic.ci.persistence.ProjectListener projectListener)
Removes listener from notified list
|
void |
setDescription(java.lang.String description)
Sets the project description
|
void |
setName(java.lang.String name)
Sets the project name
|
void |
uninstallFeatures(java.util.Set<java.lang.String> featureNames,
org.eclipse.core.runtime.IProgressMonitor monitor)
Remove data associated with the feature.
|
getServicecom.nomagic.ci.persistence.IProjectRepository getProjectRepository()
org.eclipse.emf.common.util.URI getLocationURI()
java.lang.String getProjectID()
boolean isReadOnly()
java.lang.String getName()
void setName(java.lang.String name)
name - the name to setjava.lang.String getDescription()
void setDescription(java.lang.String description)
description - project description stringcom.nomagic.ci.persistence.ProjectDescriptor getProjectDescriptor()
IProjectRepository.getProjectDescriptor(URI, IProgressMonitor),
but also return a descriptor if the project is new.<T extends com.nomagic.ci.persistence.features.IProjectFeature> T getFeature(java.lang.Class<T> featureType)
T - type of the featurefeatureType - feature classjava.util.Set<java.lang.String> getInstalledFeatures()
com.nomagic.ci.persistence.features.FeatureDataManager getFeatureDataManager(com.nomagic.ci.persistence.features.IProjectFeatureDescriptor feature,
@CheckForNull
com.nomagic.ci.persistence.features.FeatureDataSetFilter... featureResourceFilters)
feature - the featurefeatureResourceFilters - the feature data set filtervoid installFeatures(java.util.Set<java.lang.String> featureNames,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws com.nomagic.ci.persistence.PersistenceException
featureNames - names of the features to installmonitor - the progress monitor for the operationPersistenceExceptionvoid uninstallFeatures(java.util.Set<java.lang.String> featureNames,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws com.nomagic.ci.persistence.PersistenceException
featureNames - names of the features to un-installmonitor - the progress monitor for the operationPersistenceExceptionorg.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
boolean isNew()
true if project is new, otherwise falsevoid addProjectListener(com.nomagic.ci.persistence.ProjectListener projectListener)
projectListener - that should bevoid removeProjectListener(com.nomagic.ci.persistence.ProjectListener projectListener)
projectListener - projava.util.List<com.nomagic.ci.persistence.ProjectListener> getProjectListeners()
<T> void registerService(java.lang.Class<T> type,
T service)
registerService in interface Serviceabletype - service typeservice - service