org.eclipse.tigerstripe.workbench.project
Interface ITigerstripeModelProject

All Superinterfaces:
IAbstractTigerstripeProject, IWorkingCopy

public interface ITigerstripeModelProject
extends IAbstractTigerstripeProject

Handle on a Tigerstripe Project

Since:
0.3
Author:
Eric Dillon

Method Summary
 void addDependencies(IDependency[] dependencies, IProgressMonitor monitor)
           
 void addDependency(IDependency dependency, IProgressMonitor monitor)
           
 void addFacetReference(org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference facetRef)
           
 void addPluginConfig(IPluginConfig config)
           
 void addProjectDependencyChangeListener(IProjectDependencyChangeListener listener)
           
 void addReferencedProject(ITigerstripeModelProject project)
           
 void addReferencedProjects(ITigerstripeModelProject[] project)
           
 PluginRunStatus[] generate(IM1RunConfig config, IProgressMonitor monitor)
           
 org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference getActiveFacet()
           
 java.lang.String getAdvancedProperty(java.lang.String property)
           
 java.lang.String getAdvancedProperty(java.lang.String property, java.lang.String defaultValue)
           
 IArtifactManagerSession getArtifactManagerSession()
          Returns the artifact manager session for this Tigerstripe project.
 IDependency[] getDependencies()
           
 org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference[] getFacetReferences()
           
 org.eclipse.tigerstripe.workbench.internal.modelManager.ProjectModelManager getModelManager()
           
 IPluginConfig[] getPluginConfigs()
          Returns the Plugin references defined in this project
 ITigerstripeModelProject[] getReferencedProjects()
           
 boolean hasDependency(IDependency dep)
          Returns true if this project has the given dependency in its dependencies list
 boolean hasReference(ITigerstripeModelProject project)
           
 IDependency makeDependency(java.lang.String relativePath)
           
 org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference makeFacetReference(java.lang.String projectRelativePath)
           
 org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference makeFacetReference(java.net.URI facetURI)
           
 org.eclipse.tigerstripe.workbench.internal.api.contract.useCase.IUseCaseReference makeUseCaseReference(java.lang.String projectRelativePath)
           
 void removeDependencies(IDependency[] dependencies, IProgressMonitor monitor)
           
 void removeDependency(IDependency dependency, IProgressMonitor monitor)
           
 void removeFacetReference(org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference facetRef)
           
 void removePluginConfig(IPluginConfig config)
           
 void removeProjectDependencyChangeListener(IProjectDependencyChangeListener listener)
           
 void removeReferencedProject(ITigerstripeModelProject project)
           
 void removeReferencedProjects(ITigerstripeModelProject[] project)
           
 void resetActiveFacet()
           
 void setActiveFacet(org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference facet, IProgressMonitor monitor)
           
 void setAdvancedProperty(java.lang.String property, java.lang.String value)
           
 
Methods inherited from interface org.eclipse.tigerstripe.workbench.project.IAbstractTigerstripeProject
containsErrors, delete, exists, getFullPath, getLocation, getName, getProjectDetails, setProjectDetails
 
Methods inherited from interface org.eclipse.tigerstripe.workbench.IWorkingCopy
addOriginalChangeListener, commit, dispose, getOriginal, isDirty, isWorkingCopy, makeWorkingCopy, removeOriginalChangeListener
 

Method Detail

getModelManager

org.eclipse.tigerstripe.workbench.internal.modelManager.ProjectModelManager getModelManager()
                                                                                            throws TigerstripeException
Throws:
TigerstripeException

getArtifactManagerSession

IArtifactManagerSession getArtifactManagerSession()
                                                  throws TigerstripeException
Returns the artifact manager session for this Tigerstripe project.

Returns:
Throws:
TigerstripeException

generate

PluginRunStatus[] generate(IM1RunConfig config,
                           IProgressMonitor monitor)
                           throws TigerstripeException
Throws:
TigerstripeException

getDependencies

IDependency[] getDependencies()
                              throws TigerstripeException
Throws:
TigerstripeException

removeDependency

void removeDependency(IDependency dependency,
                      IProgressMonitor monitor)
                      throws WorkingCopyException,
                             TigerstripeException
Parameters:
dependency -
Throws:
TigerstripeException
WorkingCopyException

removeDependencies

void removeDependencies(IDependency[] dependencies,
                        IProgressMonitor monitor)
                        throws WorkingCopyException,
                               TigerstripeException
Parameters:
dependencies -
Throws:
TigerstripeException
WorkingCopyException

addDependency

void addDependency(IDependency dependency,
                   IProgressMonitor monitor)
                   throws WorkingCopyException,
                          TigerstripeException
Parameters:
dependency -
Throws:
TigerstripeException
WorkingCopyException

addDependencies

void addDependencies(IDependency[] dependencies,
                     IProgressMonitor monitor)
                     throws WorkingCopyException,
                            TigerstripeException
Parameters:
dependencies -
Throws:
TigerstripeException
WorkingCopyException

makeDependency

IDependency makeDependency(java.lang.String relativePath)
                           throws TigerstripeException
Throws:
TigerstripeException

makeFacetReference

org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference makeFacetReference(java.net.URI facetURI)
                                                                                                   throws TigerstripeException
Throws:
TigerstripeException

makeFacetReference

org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference makeFacetReference(java.lang.String projectRelativePath)
                                                                                                   throws TigerstripeException
Throws:
TigerstripeException

makeUseCaseReference

org.eclipse.tigerstripe.workbench.internal.api.contract.useCase.IUseCaseReference makeUseCaseReference(java.lang.String projectRelativePath)
                                                                                                       throws TigerstripeException
Throws:
TigerstripeException

addFacetReference

void addFacetReference(org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference facetRef)
                       throws TigerstripeException
Throws:
TigerstripeException

removeFacetReference

void removeFacetReference(org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference facetRef)
                          throws TigerstripeException
Throws:
TigerstripeException

getFacetReferences

org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference[] getFacetReferences()
                                                                                                     throws TigerstripeException
Throws:
TigerstripeException

hasDependency

boolean hasDependency(IDependency dep)
                      throws TigerstripeException
Returns true if this project has the given dependency in its dependencies list

Parameters:
dep -
Returns:
Throws:
TigerstripeException - if the dep is invalid or the project is invalid.

addReferencedProject

void addReferencedProject(ITigerstripeModelProject project)
                          throws WorkingCopyException,
                                 TigerstripeException
Throws:
WorkingCopyException
TigerstripeException

addReferencedProjects

void addReferencedProjects(ITigerstripeModelProject[] project)
                           throws WorkingCopyException,
                                  TigerstripeException
Throws:
WorkingCopyException
TigerstripeException

removeReferencedProject

void removeReferencedProject(ITigerstripeModelProject project)
                             throws WorkingCopyException,
                                    TigerstripeException
Throws:
WorkingCopyException
TigerstripeException

removeReferencedProjects

void removeReferencedProjects(ITigerstripeModelProject[] project)
                              throws WorkingCopyException,
                                     TigerstripeException
Throws:
WorkingCopyException
TigerstripeException

hasReference

boolean hasReference(ITigerstripeModelProject project)
                     throws WorkingCopyException,
                            TigerstripeException
Throws:
WorkingCopyException
TigerstripeException

setAdvancedProperty

void setAdvancedProperty(java.lang.String property,
                         java.lang.String value)
                         throws WorkingCopyException,
                                TigerstripeException
Throws:
WorkingCopyException
TigerstripeException

getPluginConfigs

IPluginConfig[] getPluginConfigs()
                                 throws TigerstripeException
Returns the Plugin references defined in this project

Returns:
Throws:
TigerstripeException

addPluginConfig

void addPluginConfig(IPluginConfig config)
                     throws TigerstripeException
Throws:
TigerstripeException

removePluginConfig

void removePluginConfig(IPluginConfig config)
                        throws TigerstripeException
Throws:
TigerstripeException

getReferencedProjects

ITigerstripeModelProject[] getReferencedProjects()
                                                 throws TigerstripeException
Throws:
TigerstripeException

setActiveFacet

void setActiveFacet(org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference facet,
                    IProgressMonitor monitor)
                    throws TigerstripeException
Throws:
TigerstripeException

resetActiveFacet

void resetActiveFacet()
                      throws TigerstripeException
Throws:
TigerstripeException

getActiveFacet

org.eclipse.tigerstripe.workbench.internal.api.contract.segment.IFacetReference getActiveFacet()
                                                                                               throws TigerstripeException
Throws:
TigerstripeException

getAdvancedProperty

java.lang.String getAdvancedProperty(java.lang.String property)
                                     throws TigerstripeException
Throws:
TigerstripeException

getAdvancedProperty

java.lang.String getAdvancedProperty(java.lang.String property,
                                     java.lang.String defaultValue)
                                     throws TigerstripeException
Throws:
TigerstripeException

addProjectDependencyChangeListener

void addProjectDependencyChangeListener(IProjectDependencyChangeListener listener)

removeProjectDependencyChangeListener

void removeProjectDependencyChangeListener(IProjectDependencyChangeListener listener)