diff options
Diffstat (limited to 'org.openembedded.bc.ui/src/org/openembedded/bc/ui/filesystem/OEIgnoreFile.java')
-rw-r--r-- | org.openembedded.bc.ui/src/org/openembedded/bc/ui/filesystem/OEIgnoreFile.java | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/org.openembedded.bc.ui/src/org/openembedded/bc/ui/filesystem/OEIgnoreFile.java b/org.openembedded.bc.ui/src/org/openembedded/bc/ui/filesystem/OEIgnoreFile.java new file mode 100644 index 0000000..63d51b8 --- /dev/null +++ b/org.openembedded.bc.ui/src/org/openembedded/bc/ui/filesystem/OEIgnoreFile.java @@ -0,0 +1,133 @@ +/***************************************************************************** + * Copyright (c) 2009 Ken Gilmer + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Ken Gilmer - initial API and implementation + *******************************************************************************/ +package org.openembedded.bc.ui.filesystem; + +import java.io.File; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.URI; + +import org.eclipse.core.filesystem.IFileInfo; +import org.eclipse.core.filesystem.IFileStore; +import org.eclipse.core.filesystem.IFileSystem; +import org.eclipse.core.filesystem.provider.FileInfo; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; + +public class OEIgnoreFile implements IFileStore { + + private final File file; + + public OEIgnoreFile(File file) { + this.file = file; + } + + public IFileInfo[] childInfos(int options, IProgressMonitor monitor) throws CoreException { + + return new IFileInfo[0]; + } + + public String[] childNames(int options, IProgressMonitor monitor) throws CoreException { + return new String[0]; + } + + public IFileStore[] childStores(int options, IProgressMonitor monitor) throws CoreException { + + return new IFileStore[0]; + } + + public void copy(IFileStore destination, int options, IProgressMonitor monitor) throws CoreException { + // TODO Auto-generated method stub + + } + + public void delete(int options, IProgressMonitor monitor) throws CoreException { + // TODO Auto-generated method stub + + } + + public IFileInfo fetchInfo() { + // TODO Auto-generated method stub + return new FileInfo(file.getName()); + } + + public IFileInfo fetchInfo(int options, IProgressMonitor monitor) throws CoreException { + return new FileInfo(file.getName()); + } + + public Object getAdapter(Class adapter) { + // TODO Auto-generated method stub + return null; + } + + public IFileStore getChild(IPath path) { + // TODO Auto-generated method stub + return null; + } + + + + public IFileStore getChild(String name) { + return null; + } + + public IFileSystem getFileSystem() { + // TODO Auto-generated method stub + return OEFileSystem.getInstance(); + } + + public String getName() { + return file.getName(); + } + + public IFileStore getParent() { + // TODO Auto-generated method stub + return null; + } + + public boolean isParentOf(IFileStore other) { + // TODO Auto-generated method stub + return false; + } + + public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException { + return null; + } + + public void move(IFileStore destination, int options, IProgressMonitor monitor) throws CoreException { + } + + public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException { + return null; + } + + public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException { + return null; + } + + public void putInfo(IFileInfo info, int options, IProgressMonitor monitor) throws CoreException { + } + + public File toLocalFile(int options, IProgressMonitor monitor) throws CoreException { + return file; + } + + public URI toURI() { + return file.toURI(); + } + + public IFileStore getFileStore(IPath path) { + return null; + } + + +} |