blob: 7d570877618861cd1d74b3ed73c4edcb88f03859 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/****************************************************************************
* Copyright (c) 2007 Composent, Inc. and others.
* 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:
* Composent, Inc. - initial API and implementation
*****************************************************************************/
package org.eclipse.ecf.internal.provider.filetransfer.efs;
import org.eclipse.core.filesystem.IFileInfo;
import org.eclipse.ecf.filetransfer.IRemoteFile;
import org.eclipse.ecf.filetransfer.IRemoteFileInfo;
import org.eclipse.ecf.filetransfer.identity.IFileID;
/**
*
*/
public class EFSRemoteFile implements IRemoteFile {
private final IFileID fileID;
private final EFSRemoteFileInfo remoteFileInfo;
/**
* @param fileID
* @param remoteFile
*/
public EFSRemoteFile(IFileID fileID, IFileInfo remoteFile) {
this.fileID = fileID;
this.remoteFileInfo = new EFSRemoteFileInfo(remoteFile);
}
/* (non-Javadoc)
* @see org.eclipse.ecf.filetransfer.IRemoteFile#getID()
*/
public IFileID getID() {
return fileID;
}
/* (non-Javadoc)
* @see org.eclipse.ecf.filetransfer.IRemoteFile#getInfo()
*/
public IRemoteFileInfo getInfo() {
return remoteFileInfo;
}
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/
public Object getAdapter(Class adapter) {
return null;
}
}
|