blob: 2df7d36d6d9987d9823938d078313921d8c18b96 (
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
58
59
60
61
62
63
64
|
/*******************************************************************************
* Copyright (c) 2014, 2015 Wind River Systems, 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:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.tcf.filesystem.core.interfaces.runtime;
import java.io.File;
import java.util.List;
import org.eclipse.tcf.protocol.IChannel;
import org.eclipse.tcf.services.IFileSystem.DirEntry;
import org.eclipse.tcf.te.tcf.core.model.interfaces.IModel;
import org.eclipse.tcf.te.tcf.filesystem.core.interfaces.IConfirmCallback;
import org.eclipse.tcf.te.tcf.filesystem.core.interfaces.IOperation;
import org.eclipse.tcf.te.tcf.filesystem.core.interfaces.IResultOperation;
import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNodeProvider;
/**
* A model dealing with the file system at runtime.
*/
public interface IRuntimeModel extends IModel, IPeerNodeProvider {
static class Delegate {
public boolean filterRoot(DirEntry entry) {
return true;
}
}
/**
* Returns the channel of this runtime model
*/
public IChannel getChannel();
/**
* Returns the root node of this model.
*/
public IFSTreeNode getRoot();
/**
* Returns the delegate that is used for customized behavior.
*/
public Delegate getDelegate();
/**
* Returns an operation for restoring nodes from a path
*/
public IResultOperation<IFSTreeNode> operationRestoreFromPath(String path);
/**
* Returns an operation for downloading multiple nodes to a destination
*/
public IOperation operationDownload(List<IFSTreeNode> nodes, File destination, IConfirmCallback confirmCallback);
/**
* Returns an operation for restoring nodes from a path
*/
public IResultOperation<IFSTreeNode[]> operationRestoreFavorites();
}
|