Package com.iizigo.app
Class EclipseIFolder
java.lang.Object
com.iizigo.app.EclipseIFolder
- All Implemented Interfaces:
IIDirectory
,IIResource
The Eclipse folder wrapper.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares two resources.Get the Java canonical File.Gets the full path to the resource.getName()
Gets the name of the resource.int
hashCode()
The hash code.boolean
Checks if this resource is a directory.listDirectory
(Object monitor) Lists the contents of the directory.toString()
Resource String representation is the file name.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.iizix.app.builder.IIResource
equals
Constructor Details
EclipseIFolder
public EclipseIFolder(org.eclipse.core.resources.IFolder ifolder) Constructs a file.
Method Details
getFullPath
Gets the full path to the resource.- Specified by:
getFullPath
in interfaceIIResource
- Throws:
IOException
- For I/O errors.
getFile
Get the Java canonical File.- Specified by:
getFile
in interfaceIIResource
- Parameters:
monitor
- The IProgressMonitor, null for none.- Returns:
- a File in canonical form.
- Throws:
IOException
- For I/O errors.
listDirectory
Lists the contents of the directory.- Specified by:
listDirectory
in interfaceIIDirectory
- Parameters:
monitor
- The IProgressMonitor, null for none.- Throws:
IOException
- For directory errors.
isDirectory
public boolean isDirectory()Checks if this resource is a directory.- Specified by:
isDirectory
in interfaceIIResource
- Returns:
- true.
getName
Gets the name of the resource.- Specified by:
getName
in interfaceIIResource
- Returns:
- The name of the resource (also includes the file extension).
equals
Compares two resources.hashCode
public int hashCode()The hash code.toString
Resource String representation is the file name.