Improve package tangle index for LTTng 2.0 control design
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / dialogs / ImportFileInfo.java
CommitLineData
291cbdbf
BH
1/**********************************************************************
2 * Copyright (c) 2012 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 **********************************************************************/
12package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs;
13
14import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
15
16/**
17 * <b><u>ImportFileInfo</u></b>
18 * <p>
19 * Helper class for storing information about a remote file to import.
20 * </p>
21 */
22public class ImportFileInfo {
23
24 // ------------------------------------------------------------------------
25 // Attributes
26 // ------------------------------------------------------------------------
27 private IRemoteFile fRemoteFile;
28 private String fLocalTraceName;
29 private boolean fIsOverwrite;
30
31 // ------------------------------------------------------------------------
32 // Constructors
33 // ------------------------------------------------------------------------
34 public ImportFileInfo(IRemoteFile file, String traceName, boolean isOverwrite) {
35 fRemoteFile = file;
36 fLocalTraceName = traceName;
37 fIsOverwrite = isOverwrite;
38 }
39
40 // ------------------------------------------------------------------------
41 // Accessors
42 // ------------------------------------------------------------------------
43 /**
44 * @return name of traces after importing
45 */
46 public String getLocalTraceName() {
47 return fLocalTraceName;
48 }
49 /**
50 * Sets the local trace name
51 * @param importTraceName - local name of trace to set (name after importing)
52 */
53 public void setLocalTraceName(String importTraceName) {
54 this.fLocalTraceName = importTraceName;
55 }
56 /**
57 * @return true if local trace should be overwritten if a trace with the same name already exists.
58 */
59 public boolean isOverwrite() {
60 return fIsOverwrite;
61 }
62 /**
63 * Sets the overwrite flag.
64 * @param isOverwrite
65 */
66 public void setOverwrite(boolean isOverwrite) {
67 this.fIsOverwrite = isOverwrite;
68 }
69 /**
70 * @return the remote file implementation.
71 */
72 public IRemoteFile getImportFile() {
73 return fRemoteFile;
74 }
75 /**
76 * Sets the remote file implementation
77 * @param the remote file implementation.
78 */
79 public void setRemoteFile(IRemoteFile remoteFile) {
80 fRemoteFile = remoteFile;
81 }
82}
83
This page took 0.029169 seconds and 5 git commands to generate.