1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.internal
.tmf
.remote
.ui
.wizards
.fetch
.model
;
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
;
21 * An remote trace element representing the trace files of a trace.
23 * @author Bernd Hufmann
25 public class RemoteImportTraceFilesElement
extends TracePackageFilesElement
{
27 private final IFileStore fRemoteFile
;
30 * Constructs an instance of ExportTraceFilesElement when exporting
33 * the parent of this element, can be set to null
35 * the resource representing the trace file or folder in the
38 public RemoteImportTraceFilesElement(TracePackageElement parent
, IResource resource
) {
39 super(parent
, resource
);
44 * Constructs an instance of ExportTraceFilesElement when importing
47 * the parent of this element, can be set to null
49 * the name of the file to be imported
51 * the remote file representing the trace
53 public RemoteImportTraceFilesElement(TracePackageElement parent
, String fileName
, IFileStore remoteFile
) {
54 super(parent
, fileName
);
55 fRemoteFile
= remoteFile
;
59 * Returns the remote file representing the trace
60 * @return the remote file
62 public IFileStore
getRemoteFile() {