diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:36:50 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 15:25:03 +0100 |
commit | 41ac47d732eed8392d60d0f6773e5a279d49b999 (patch) | |
tree | cf19d099db9cfdb8d73aa21c31e7aa1cc86ff860 /plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java | |
download | eclipse-poky-juno-41ac47d732eed8392d60d0f6773e5a279d49b999.tar.gz |
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
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.java | 133 |
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 | *******************************************************************************/ | ||
11 | package org.yocto.bc.ui.filesystem; | ||
12 | |||
13 | import java.io.File; | ||
14 | import java.io.InputStream; | ||
15 | import java.io.OutputStream; | ||
16 | import java.net.URI; | ||
17 | |||
18 | import org.eclipse.core.filesystem.IFileInfo; | ||
19 | import org.eclipse.core.filesystem.IFileStore; | ||
20 | import org.eclipse.core.filesystem.IFileSystem; | ||
21 | import org.eclipse.core.filesystem.provider.FileInfo; | ||
22 | import org.eclipse.core.runtime.CoreException; | ||
23 | import org.eclipse.core.runtime.IPath; | ||
24 | import org.eclipse.core.runtime.IProgressMonitor; | ||
25 | |||
26 | public 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 | } | ||