24bae8d4896c445d41142379a6a598dc73b0c977
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
;
17 * <b><u>ImportFileInfo</u></b>
19 * Helper class for storing information about a remote file to import.
22 public class ImportFileInfo
{
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
27 private IRemoteFile fRemoteFile
;
28 private String fLocalTraceName
;
29 private boolean fIsOverwrite
;
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
34 public ImportFileInfo(IRemoteFile file
, String traceName
, boolean isOverwrite
) {
36 fLocalTraceName
= traceName
;
37 fIsOverwrite
= isOverwrite
;
40 // ------------------------------------------------------------------------
42 // ------------------------------------------------------------------------
44 * @return name of traces after importing
46 public String
getLocalTraceName() {
47 return fLocalTraceName
;
50 * Sets the local trace name
51 * @param importTraceName - local name of trace to set (name after importing)
53 public void setLocalTraceName(String importTraceName
) {
54 this.fLocalTraceName
= importTraceName
;
57 * @return true if local trace should be overwritten if a trace with the same name already exists.
59 public boolean isOverwrite() {
63 * Sets the overwrite flag.
66 public void setOverwrite(boolean isOverwrite
) {
67 this.fIsOverwrite
= isOverwrite
;
70 * @return the remote file implementation.
72 public IRemoteFile
getImportFile() {
76 * Sets the remote file implementation
77 * @param the remote file implementation.
79 public void setRemoteFile(IRemoteFile remoteFile
) {
80 fRemoteFile
= remoteFile
;
This page took 0.035113 seconds and 4 git commands to generate.