aboutsummaryrefslogtreecommitdiffstats
path: root/org.openembedded.bc.ui/src/org/openembedded/bc/ui/filesystem/OEIgnoreFile.java
diff options
context:
space:
mode:
authorKen Gilmer <kgilmer@gmail.com>2010-05-18 21:53:22 -0400
committerKen Gilmer <kgilmer@gmail.com>2010-05-18 21:53:22 -0400
commita7e84830627e50adac5c81ae4dad69aa350933fb (patch)
tree219aa86f4d5f03b29d7bc56f8cdba2702d67082c /org.openembedded.bc.ui/src/org/openembedded/bc/ui/filesystem/OEIgnoreFile.java
parente27a6dcce13930bfa711a6e72992597a8d1d07c5 (diff)
downloadeclipsetools-a7e84830627e50adac5c81ae4dad69aa350933fb.tar.gz
eclipsetools-a7e84830627e50adac5c81ae4dad69aa350933fb.tar.bz2
eclipsetools-a7e84830627e50adac5c81ae4dad69aa350933fb.zip
org.openembedded.bc.ui: initial commit
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.java133
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;
+ }
+
+
+}