1 /**********************************************************************
2 * Copyright (c) 2012 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 **********************************************************************/
12 package org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.dialogs
;
14 import org
.eclipse
.rse
.subsystems
.files
.core
.subsystems
.IRemoteFile
;
18 * Helper class for storing information about a remote file to import.
21 * @author Bernd Hufmann
23 public class ImportFileInfo
{
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
29 * Remote file reference
31 private IRemoteFile fRemoteFile
;
35 private String fLocalTraceName
;
37 * Global overwrite flag
39 private boolean fIsOverwrite
;
41 // ------------------------------------------------------------------------
43 // ------------------------------------------------------------------------
45 * Standard constructor
46 * @param file A remote file reference
47 * @param traceName A trace name
48 * @param isOverwrite global overwrite flag
50 public ImportFileInfo(IRemoteFile file
, String traceName
, boolean isOverwrite
) {
52 fLocalTraceName
= traceName
;
53 fIsOverwrite
= isOverwrite
;
56 // ------------------------------------------------------------------------
58 // ------------------------------------------------------------------------
60 * @return name of traces after importing
62 public String
getLocalTraceName() {
63 return fLocalTraceName
;
66 * Sets the local trace name
67 * @param importTraceName - local name of trace to set (name after importing)
69 public void setLocalTraceName(String importTraceName
) {
70 this.fLocalTraceName
= importTraceName
;
73 * @return true if local trace should be overwritten if a trace with the same name already exists.
75 public boolean isOverwrite() {
79 * Sets the overwrite flag.
82 public void setOverwrite(boolean isOverwrite
) {
83 this.fIsOverwrite
= isOverwrite
;
86 * @return the remote file implementation.
88 public IRemoteFile
getImportFile() {
92 * Sets the remote file implementation
93 * @param the remote file implementation.
95 public void setRemoteFile(IRemoteFile remoteFile
) {
96 fRemoteFile
= remoteFile
;
This page took 0.043139 seconds and 5 git commands to generate.