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.CoreExceptionpublic void disableJavaBuilder()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic void enableJavaBuilder()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic java.util.Set<java.lang.String> listTargets()
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionpublic 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.CoreExceptionjava.net.URISyntaxExceptionjavax.xml.transform.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic 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.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionjava.net.URISyntaxExceptionorg.eclipse.core.runtime.CoreExceptionpublic 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.TransformerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic void refresh()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic void updateProjectLibrary(java.lang.String jarName,
java.io.File updatedLibrary)
throws java.io.IOException,
org.eclipse.core.runtime.CoreException
jarName - updatedLibrary - java.io.IOExceptionorg.eclipse.core.runtime.CoreExceptionpublic void restoreOriginalClasspathEntries()
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.eclipse.core.runtime.CoreException
org.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.eclipse.core.runtime.CoreException