com.adobe.flexbuilder.codemodel.project
Interface IProjectManager


public interface IProjectManager

The project manager is the main access point for code model projects. It also keeps track of open documents and their paths.


Method Summary
 org.eclipse.jface.text.IDocument getDocumentForPath(org.eclipse.core.runtime.IPath path)
          Returns the open document for this path.
 IProject getLastProject()
          Retrieve the last project retrieved with a getProjectForXXX call.
 org.eclipse.core.runtime.IPath getPathForDocument(org.eclipse.jface.text.IDocument doc)
          Returns path for this open document.
 IProject getProjectFor(org.eclipse.core.resources.IProject eclipseProject)
          Returns the code model project for a particular Eclipse project.
 IProject getProjectFor(IProjectSpecification projectSpec)
          Returns the code model project for a particular project specification.
 IProject getProjectForDocument(org.eclipse.jface.text.IDocument doc)
          Returns the Code Model project containing the specified open document.
 IProject getProjectForFile(org.eclipse.core.runtime.IPath filePath)
          Returns the Code Model project for the project that contains the specified file.
 

Method Detail

getProjectFor

public IProject getProjectFor(org.eclipse.core.resources.IProject eclipseProject)
Returns the code model project for a particular Eclipse project.

Parameters:
eclipseProject - the Eclipse project
Returns:
the corresponding code model project

getProjectFor

public IProject getProjectFor(IProjectSpecification projectSpec)
Returns the code model project for a particular project specification.

Parameters:
projectSpec - the project specification
Returns:
the corresponding code model project

getProjectForDocument

public IProject getProjectForDocument(org.eclipse.jface.text.IDocument doc)
Returns the Code Model project containing the specified open document.

Parameters:
doc - the document
Returns:
the corresponding code model project

getProjectForFile

public IProject getProjectForFile(org.eclipse.core.runtime.IPath filePath)
Returns the Code Model project for the project that contains the specified file.

Parameters:
filePath - The path to the file.
Returns:
The Code Model project.

getLastProject

public IProject getLastProject()
Retrieve the last project retrieved with a getProjectForXXX call.

Returns:
last project retrieved with a getProjectForXXX call.

getPathForDocument

public org.eclipse.core.runtime.IPath getPathForDocument(org.eclipse.jface.text.IDocument doc)
Returns path for this open document.

Parameters:
doc - open document
Returns:
path for the open document

getDocumentForPath

public org.eclipse.jface.text.IDocument getDocumentForPath(org.eclipse.core.runtime.IPath path)
Returns the open document for this path.

Parameters:
path - path
Returns:
open document (if there is one)