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.java135
1 files changed, 135 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..2434347
--- /dev/null
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java
@@ -0,0 +1,135 @@
1/*****************************************************************************
2 * Copyright (c) 2013 Ken Gilmer, Intel Corporation
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 * Ioana Grigoropol (Intel) - adapt class for remote support
11 *******************************************************************************/
12package org.yocto.bc.ui.filesystem;
13
14import java.io.File;
15import java.io.InputStream;
16import java.io.OutputStream;
17import java.net.URI;
18
19import org.eclipse.core.filesystem.IFileInfo;
20import org.eclipse.core.filesystem.IFileStore;
21import org.eclipse.core.filesystem.IFileSystem;
22import org.eclipse.core.filesystem.provider.FileInfo;
23import org.eclipse.core.runtime.CoreException;
24import org.eclipse.core.runtime.IPath;
25import org.eclipse.core.runtime.IProgressMonitor;
26import org.yocto.bc.ui.model.YoctoHostFile;
27
28public class OEIgnoreFile implements IFileStore {
29
30 private final YoctoHostFile file;
31
32 public OEIgnoreFile(YoctoHostFile file) {
33 this.file = file;
34 }
35
36 public IFileInfo[] childInfos(int options, IProgressMonitor monitor) throws CoreException {
37
38 return new IFileInfo[0];
39 }
40
41 public String[] childNames(int options, IProgressMonitor monitor) throws CoreException {
42 return new String[0];
43 }
44
45 public IFileStore[] childStores(int options, IProgressMonitor monitor) throws CoreException {
46
47 return new IFileStore[0];
48 }
49
50 public void copy(IFileStore destination, int options, IProgressMonitor monitor) throws CoreException {
51 // TODO Auto-generated method stub
52
53 }
54
55 public void delete(int options, IProgressMonitor monitor) throws CoreException {
56 // TODO Auto-generated method stub
57
58 }
59
60 public IFileInfo fetchInfo() {
61 // TODO Auto-generated method stub
62 return new FileInfo(file.getName());
63 }
64
65 public IFileInfo fetchInfo(int options, IProgressMonitor monitor) throws CoreException {
66 return new FileInfo(file.getName());
67 }
68
69 public Object getAdapter(Class adapter) {
70 // TODO Auto-generated method stub
71 return null;
72 }
73
74 public IFileStore getChild(IPath path) {
75 // TODO Auto-generated method stub
76 return null;
77 }
78
79
80
81 public IFileStore getChild(String name) {
82 return null;
83 }
84
85 public IFileSystem getFileSystem() {
86 // TODO Auto-generated method stub
87 return OEFileSystem.getInstance();
88 }
89
90 public String getName() {
91 return file.getName();
92 }
93
94 public IFileStore getParent() {
95 // TODO Auto-generated method stub
96 return null;
97 }
98
99 public boolean isParentOf(IFileStore other) {
100 // TODO Auto-generated method stub
101 return false;
102 }
103
104 public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException {
105 return null;
106 }
107
108 public void move(IFileStore destination, int options, IProgressMonitor monitor) throws CoreException {
109 }
110
111 public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException {
112 return null;
113 }
114
115 public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException {
116 return null;
117 }
118
119 public void putInfo(IFileInfo info, int options, IProgressMonitor monitor) throws CoreException {
120 }
121
122 public File toLocalFile(int options, IProgressMonitor monitor) throws CoreException {
123 return file.toLocalFile();
124 }
125
126 public URI toURI() {
127 return file.toURI();
128 }
129
130 public IFileStore getFileStore(IPath path) {
131 return null;
132 }
133
134
135}