public class InternalCHESSProjectSupport
extends java.lang.Object
Constructor and Description |
---|
InternalCHESSProjectSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
addNature(org.eclipse.core.resources.IProject project)
Adds the nature.
|
static org.eclipse.core.resources.IProject |
createBaseProject(java.lang.String projectName,
java.net.URI location)
Creates the base project.
|
static void |
fileCopy(java.io.InputStream in,
java.io.FileOutputStream out)
File copy.
|
static void |
getBundleContents(org.eclipse.core.runtime.Plugin activator,
java.lang.String path,
java.util.List<java.lang.String> collectedPaths)
Gets the bundle contents.
|
static org.eclipse.core.resources.IFile |
getIFileFromAbsolutePath(java.lang.String path)
Gets the i file from absolute path.
|
static java.lang.String |
getNameWithoutExtension(org.eclipse.core.resources.IFile inputFile)
Gets the name without extension.
|
static java.lang.String |
getPluginInstallLocation(java.lang.String pluginId)
Gets the plugin install location.
|
static org.eclipse.core.runtime.IPath |
toPath(java.net.URI uri)
This is a copy of org.eclipse.core.internal.utils.FileUtil.
|
public static void addNature(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
project
- the projectorg.eclipse.core.runtime.CoreException
- the core exceptionpublic static org.eclipse.core.resources.IProject createBaseProject(java.lang.String projectName, java.net.URI location)
projectName
- the project namelocation
- the locationpublic static org.eclipse.core.runtime.IPath toPath(java.net.URI uri)
Note this method differs from URIUtil in its handling of relative URIs as being relative to path variables.
uri
- the uripublic static java.lang.String getPluginInstallLocation(java.lang.String pluginId) throws java.lang.Exception
pluginId
- the plugin idjava.lang.Exception
- the exceptionpublic static java.lang.String getNameWithoutExtension(org.eclipse.core.resources.IFile inputFile)
inputFile
- the input filepublic static void fileCopy(java.io.InputStream in, java.io.FileOutputStream out) throws java.io.IOException
in
- the inout
- the outjava.io.IOException
- Signals that an I/O exception has occurred.public static void getBundleContents(org.eclipse.core.runtime.Plugin activator, java.lang.String path, java.util.List<java.lang.String> collectedPaths)
activator
- the activatorpath
- the pathcollectedPaths
- the collected pathspublic static org.eclipse.core.resources.IFile getIFileFromAbsolutePath(java.lang.String path)
path
- the path