tmf-remote: Bug 460847: add model for remote fetching of traces
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.remote.ui / src / org / eclipse / tracecompass / internal / tmf / remote / ui / wizards / fetch / model / RemoteImportTraceFilesElement.java
1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.internal.tmf.remote.ui.wizards.fetch.model;
14
15 import org.eclipse.core.filesystem.IFileStore;
16 import org.eclipse.core.resources.IResource;
17 import org.eclipse.tracecompass.internal.tmf.ui.project.wizards.tracepkg.TracePackageElement;
18 import org.eclipse.tracecompass.internal.tmf.ui.project.wizards.tracepkg.TracePackageFilesElement;
19
20 /**
21 * An remote trace element representing the trace files of a trace.
22 *
23 * @author Bernd Hufmann
24 */
25 public class RemoteImportTraceFilesElement extends TracePackageFilesElement {
26
27 private final IFileStore fRemoteFile;
28
29 /**
30 * Constructs an instance of ExportTraceFilesElement when exporting
31 *
32 * @param parent
33 * the parent of this element, can be set to null
34 * @param resource
35 * the resource representing the trace file or folder in the
36 * workspace
37 */
38 public RemoteImportTraceFilesElement(TracePackageElement parent, IResource resource) {
39 super(parent, resource);
40 fRemoteFile = null;
41 }
42
43 /**
44 * Constructs an instance of ExportTraceFilesElement when importing
45 *
46 * @param parent
47 * the parent of this element, can be set to null
48 * @param fileName
49 * the name of the file to be imported
50 * @param remoteFile
51 * the remote file representing the trace
52 */
53 public RemoteImportTraceFilesElement(TracePackageElement parent, String fileName, IFileStore remoteFile) {
54 super(parent, fileName);
55 fRemoteFile = remoteFile;
56 }
57
58 /**
59 * Returns the remote file representing the trace
60 * @return the remote file
61 */
62 public IFileStore getRemoteFile() {
63 return fRemoteFile;
64 }
65 }
This page took 0.048422 seconds and 6 git commands to generate.