public class JReFrameworkerProject
extends java.lang.Object
Constructor and Description |
---|
JReFrameworkerProject(org.eclipse.core.resources.IProject project) |
Modifier and Type | Method and Description |
---|---|
void |
addTarget(java.io.File targetLibrary)
Adds a target from the JReFrameworker project
|
void |
addTarget(java.io.File targetLibrary,
java.lang.String relativeLibraryDirectory)
Adds a target with the given relative library directory
|
void |
clean() |
void |
disableJavaBuilder() |
void |
enableJavaBuilder() |
java.io.File |
getBinaryDirectory() |
java.io.File |
getBuildDirectory() |
BuildFile |
getBuildFile() |
org.eclipse.jdt.core.IJavaProject |
getJavaProject()
Returns the Eclipse project resource
|
org.eclipse.core.resources.IProject |
getProject()
Returns the Eclipse project resource
|
java.io.File |
getSourceDirectory() |
java.util.Set<java.lang.String> |
listTargets()
Lists the JReFrameworker project targets
|
void |
refresh() |
void |
removeTarget(java.lang.String target)
Removes a target from the JReFrameworker project
|
void |
restoreOriginalClasspathEntries()
Restores the original classpath entries of the project
|
void |
updateProjectLibrary(java.lang.String jarName,
java.io.File updatedLibrary)
Replaces the classpath jar entry with the given jar
|
public JReFrameworkerProject(org.eclipse.core.resources.IProject project)
public BuildFile getBuildFile()
public java.io.File getBuildDirectory()
public java.io.File getBinaryDirectory()
public java.io.File getSourceDirectory()
public org.eclipse.core.resources.IProject getProject()
public org.eclipse.jdt.core.IJavaProject getJavaProject()
public void clean() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void disableJavaBuilder() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void enableJavaBuilder() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public java.util.Set<java.lang.String> listTargets() throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public void addTarget(java.io.File targetLibrary) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, java.net.URISyntaxException, org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
java.net.URISyntaxException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public void addTarget(java.io.File targetLibrary, java.lang.String relativeLibraryDirectory) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, java.net.URISyntaxException, org.eclipse.core.runtime.CoreException
targetLibrary
- relativeLibraryDirectory
- javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
java.net.URISyntaxException
org.eclipse.core.runtime.CoreException
public void removeTarget(java.lang.String target) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public void refresh() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void updateProjectLibrary(java.lang.String jarName, java.io.File updatedLibrary) throws java.io.IOException, org.eclipse.core.runtime.CoreException
jarName
- updatedLibrary
- java.io.IOException
org.eclipse.core.runtime.CoreException
public void restoreOriginalClasspathEntries() throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.eclipse.core.runtime.CoreException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.eclipse.core.runtime.CoreException