|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.etools.iseries.projects.core.ResourceUtil
public class ResourceUtil
Utility functions to manipulate IResource handles in the Workspace
| Constructor Summary | |
|---|---|
ResourceUtil()
|
|
| Method Summary | |
|---|---|
static void |
copyFile(IFile fromFile,
IFile toFile,
IProgressMonitor monitor)
Copy one individual IFile. |
static void |
ensureDirectoryExists(IPath filePath,
IProject project,
IProgressMonitor monitor)
Make sure that the all of the containing directories exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceUtil()
| Method Detail |
|---|
public static void ensureDirectoryExists(IPath filePath,
IProject project,
IProgressMonitor monitor)
throws CoreException
filePath - - the IPath of the file whose directories are being createdproject - = the IProject that this this path is in reference tomonitor - - a IProgressMonitor to reflect progress
CoreException
public static void copyFile(IFile fromFile,
IFile toFile,
IProgressMonitor monitor)
throws CoreException
IFile. If the target file exists, simply
override its contents, otherwise create it and any necessary parent directories.
fromFile - toFile -
CoreException - if anything goes wrong with the replace or copy
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||