|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.event.JxEventSource
org.jtool.jxplatform.repository.JxProjectRepository
Stores information about each project within the workspace.
| Field Summary |
| Fields inherited from class org.jtool.jxplatform.event.JxEventSource |
alertListeners, changedListeners, logListeners |
| Method Summary | |
JxCompilationUnit[] |
createXML()
Creates DOM document objects from all of the compilation units stored in this repository. |
JxCompilationUnit |
createXML(org.eclipse.jdt.core.ICompilationUnit cu)
Creates a DOM document object from a compilation unit. |
JxCompilationUnit |
createXML(org.eclipse.core.resources.IFile file)
Creates a DOM document object from a file resource. |
void |
delete()
Deletes information stored in this repository. |
boolean |
fullBuild()
Compiles and builds every file within this project. |
JxCompilationUnit |
get(org.eclipse.jdt.core.ICompilationUnit cu)
Returns a compilation unit containing a DOM document object generated from it. |
JxCompilationUnit |
get(java.lang.String pathname)
Returns a compilation unit containing the DOM document object generated from it. |
JxCompilationUnit[] |
getCompilationUnits()
Obtains all compilation units stored in this repository. |
org.w3c.dom.Document[] |
getDocuments()
Obtains all DOM document objects stored in this repository. |
org.eclipse.jdt.core.IJavaProject |
getJavaProject()
Returns a Java project corresponding to this repository. |
org.eclipse.core.resources.IProject |
getProject()
Returns a project corresponding to this repository. |
java.lang.String |
getProjectDir()
Returns the directory name of the project corresponding to this repository. |
java.lang.String |
getProjectName()
Returns the name of a project corresponding to this repository. |
java.lang.String |
getRelativePath(java.lang.String pathname)
Returns a path name relative to a given path name. |
TypeInformation |
getTypeInformation()
Returns type information about source code within this project. |
boolean |
incrementalBuild()
Compiles and incrementally builds every file within this project. |
org.w3c.dom.Document |
parse(JxCompilationUnit unit)
Parses source code and generates DOM document object. |
void |
refresh()
Refreshes compilation unit information stored in this repository. |
void |
update()
Updates information of all compilation units in this project. |
| Methods inherited from class org.jtool.jxplatform.event.JxEventSource |
addChangedEventListener, addEventListener, addEventListener, fire, fire, fire, removeChangedEventListener, removeEventListener, removeEventListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void delete()
public org.eclipse.jdt.core.IJavaProject getJavaProject()
public org.eclipse.core.resources.IProject getProject()
public java.lang.String getProjectDir()
public java.lang.String getProjectName()
public TypeInformation getTypeInformation()
public JxCompilationUnit get(org.eclipse.jdt.core.ICompilationUnit cu)
cu - A compilation unit to be retrieved.
null
if the retrived compilation unit does not exists in this repository.public JxCompilationUnit get(java.lang.String pathname)
pathname - The pathname of a compilation unit to be retrieved.
null
if the retrived compilation unit does not exists in this repository.public java.lang.String getRelativePath(java.lang.String pathname)
pathname - A path name.
public void refresh()
public JxCompilationUnit[] getCompilationUnits()
public org.w3c.dom.Document[] getDocuments()
public JxCompilationUnit createXML(org.eclipse.core.resources.IFile file)
file - A file resource.
null if such information cannot be found.public JxCompilationUnit createXML(org.eclipse.jdt.core.ICompilationUnit cu)
cu - A compilation unit.
null if such information cannot be found.public JxCompilationUnit[] createXML()
JxCompilationUnit#getDocument() == null if the created DOM document object is invalid.
JxException - If the creation fails.public org.w3c.dom.Document parse(JxCompilationUnit unit)
unit - A compilation unit.
true if the binding succeeds, otherwise false.public boolean fullBuild()
true if the build has succeed, otherwise false.public boolean incrementalBuild()
true if the build has succeed, otherwise false.public void update()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||