From c7da892cb23d50d4d85746c9a0b6b14bf570989d Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 13:23:09 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- .../org/yocto/bc/ui/filesystem/OEIgnoreFile.java | 135 +++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java (limited to 'plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java') 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 @@ +/***************************************************************************** + * Copyright (c) 2013 Ken Gilmer, Intel Corporation + * 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 + * Ioana Grigoropol (Intel) - adapt class for remote support + *******************************************************************************/ +package org.yocto.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; +import org.yocto.bc.ui.model.YoctoHostFile; + +public class OEIgnoreFile implements IFileStore { + + private final YoctoHostFile file; + + public OEIgnoreFile(YoctoHostFile 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.toLocalFile(); + } + + public URI toURI() { + return file.toURI(); + } + + public IFileStore getFileStore(IPath path) { + return null; + } + + +} -- cgit v1.2.3-54-g00ecf