FileDocCategorySizeDatePackage
IFolderWrapper.javaAPI DocAndroid 1.5 API2029Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.resources.manager.files

IFolderWrapper

public class IFolderWrapper extends Object implements IAbstractFolder
An implementation of {@link IAbstractFolder} on top of an {@link IFolder} object.

Fields Summary
private org.eclipse.core.resources.IFolder
mFolder
Constructors Summary
public IFolderWrapper(org.eclipse.core.resources.IFolder folder)

        mFolder = folder;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if (obj instanceof IFolderWrapper) {
            return mFolder.equals(((IFolderWrapper)obj).mFolder);
        }
        
        if (obj instanceof IFolder) {
            return mFolder.equals(obj);
        }

        return super.equals(obj);
    
public org.eclipse.core.resources.IFoldergetIFolder()

        return mFolder;
    
public java.lang.StringgetName()

        return mFolder.getName();
    
public booleanhasFile(java.lang.String name)

        try {
            IResource[] files = mFolder.members();
            for (IResource file : files) {
                if (name.equals(file.getName())) {
                    return true;
                }
            }
        } catch (CoreException e) {
            // we'll return false below.
        }

        return false;
    
public inthashCode()

        return mFolder.hashCode();