summaryrefslogtreecommitdiffstats
path: root/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java')
-rw-r--r--plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java133
1 files changed, 133 insertions, 0 deletions
diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java
new file mode 100644
index 0000000..8643309
--- /dev/null
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java
@@ -0,0 +1,133 @@
1/*****************************************************************************
2 * Copyright (c) 2009 Ken Gilmer
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Ken Gilmer - initial API and implementation
10 *******************************************************************************/
11package org.yocto.bc.ui.filesystem;
12
13import java.io.File;
14import java.io.InputStream;
15import java.io.OutputStream;
16import java.net.URI;
17
18import org.eclipse.core.filesystem.IFileInfo;
19import org.eclipse.core.filesystem.IFileStore;
20import org.eclipse.core.filesystem.IFileSystem;
21import org.eclipse.core.filesystem.provider.FileInfo;
22import org.eclipse.core.runtime.CoreException;
23import org.eclipse.core.runtime.IPath;
24import org.eclipse.core.runtime.IProgressMonitor;
25
26public class OEIgnoreFile implements IFileStore {
27
28 private final File file;
29
30 public OEIgnoreFile(File file) {
31 this.file = file;
32 }
33
34 public IFileInfo[] childInfos(int options, IProgressMonitor monitor) throws CoreException {
35
36 return new IFileInfo[0];
37 }
38
39 public String[] childNames(int options, IProgressMonitor monitor) throws CoreException {
40 return new String[0];
41 }
42
43 public IFileStore[] childStores(int options, IProgressMonitor monitor) throws CoreException {
44
45 return new IFileStore[0];
46 }
47
48 public void copy(IFileStore destination, int options, IProgressMonitor monitor) throws CoreException {
49 // TODO Auto-generated method stub
50
51 }
52
53 public void delete(int options, IProgressMonitor monitor) throws CoreException {
54 // TODO Auto-generated method stub
55
56 }
57
58 public IFileInfo fetchInfo() {
59 // TODO Auto-generated method stub
60 return new FileInfo(file.getName());
61 }
62
63 public IFileInfo fetchInfo(int options, IProgressMonitor monitor) throws CoreException {
64 return new FileInfo(file.getName());
65 }
66
67 public Object getAdapter(Class adapter) {
68 // TODO Auto-generated method stub
69 return null;
70 }
71
72 public IFileStore getChild(IPath path) {
73 // TODO Auto-generated method stub
74 return null;
75 }
76
77
78
79 public IFileStore getChild(String name) {
80 return null;
81 }
82
83 public IFileSystem getFileSystem() {
84 // TODO Auto-generated method stub
85 return OEFileSystem.getInstance();
86 }
87
88 public String getName() {
89 return file.getName();
90 }
91
92 public IFileStore getParent() {
93 // TODO Auto-generated method stub
94 return null;
95 }
96
97 public boolean isParentOf(IFileStore other) {
98 // TODO Auto-generated method stub
99 return false;
100 }
101
102 public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException {
103 return null;
104 }
105
106 public void move(IFileStore destination, int options, IProgressMonitor monitor) throws CoreException {
107 }
108
109 public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException {
110 return null;
111 }
112
113 public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException {
114 return null;
115 }
116
117 public void putInfo(IFileInfo info, int options, IProgressMonitor monitor) throws CoreException {
118 }
119
120 public File toLocalFile(int options, IProgressMonitor monitor) throws CoreException {
121 return file;
122 }
123
124 public URI toURI() {
125 return file.toURI();
126 }
127
128 public IFileStore getFileStore(IPath path) {
129 return null;
130 }
131
132
133}