|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.ide.ui.resources.MTLProject
public class MTLProject
A MTL project represents a view of a project resource in terms of MTL elements. Each MTL project has a classpath, defining which folders contain source code and where templates are located. Each MTL project also has an output location. The extension of a template is '.mtl' and the extension of an output file is '.emtl'.
| Constructor Summary | |
|---|---|
MTLProject(org.eclipse.core.resources.IProject project)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<org.eclipse.emf.common.util.URI> |
getAccessibleOutputFiles()
Gets all the accessible output files (EMTL) of this project. |
org.eclipse.core.runtime.IPath |
getInputFilePath(org.eclipse.core.runtime.IPath fileEMTL)
Gets the input file path (MTL) for the given EMTL file path. |
java.util.List<org.eclipse.core.resources.IFile> |
getInputFiles()
Returns a list of existing MTL files (MTL files only) in this resource. |
org.eclipse.core.runtime.IPath |
getOutputFilePath(org.eclipse.core.resources.IFile fileMTL)
Gets the output file path (EMTL) for the given MTL file. |
java.util.List<org.eclipse.emf.common.util.URI> |
getOutputFiles()
Gets all the output files (EMTL) of this project. |
java.lang.String |
getPackageName(org.eclipse.core.resources.IFile fileMTL)
Gets the full name of the package which contains the MTL file. |
java.util.List<MTLProject> |
getRecursivelyAccessibleMTLProjects()
Gets all the accessible MTL projects. |
java.util.List<org.eclipse.core.runtime.IPath> |
getResolvedClasspath()
This is a helper method returning the resolved classpath for the project as a list of simple classpath entries. |
int |
hashCode()
|
org.eclipse.emf.ecore.resource.ResourceSet |
loadAccessibleOutputFiles()
Gets in a single resource set all the accessible AST resources (EMTL). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MTLProject(org.eclipse.core.resources.IProject project)
project - is the project| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
public java.util.List<org.eclipse.core.resources.IFile> getInputFiles()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException - contains a status object describing the cause of the exceptionpublic org.eclipse.core.runtime.IPath getOutputFilePath(org.eclipse.core.resources.IFile fileMTL)
fileMTL - is the MTL file
public org.eclipse.core.runtime.IPath getInputFilePath(org.eclipse.core.runtime.IPath fileEMTL)
fileEMTL - is the EMTL file path
public java.util.List<org.eclipse.core.runtime.IPath> getResolvedClasspath()
public java.lang.String getPackageName(org.eclipse.core.resources.IFile fileMTL)
fileMTL - is the MTL file
public java.util.List<org.eclipse.emf.common.util.URI> getOutputFiles()
public java.util.List<org.eclipse.emf.common.util.URI> getAccessibleOutputFiles()
public java.util.List<MTLProject> getRecursivelyAccessibleMTLProjects()
public org.eclipse.emf.ecore.resource.ResourceSet loadAccessibleOutputFiles()
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||