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 private boolean fIsKernel
;
43 // ------------------------------------------------------------------------
45 // ------------------------------------------------------------------------
47 * Standard constructor
50 * A remote file reference
54 * global overwrite flag
56 * <code>true</code> if it is a kernel trace else
59 public ImportFileInfo(IRemoteFile file
, String traceName
, boolean isOverwrite
, boolean isKernel
) {
61 fLocalTraceName
= traceName
;
62 fIsOverwrite
= isOverwrite
;
66 // ------------------------------------------------------------------------
68 // ------------------------------------------------------------------------
70 * @return name of traces after importing
72 public String
getLocalTraceName() {
73 return fLocalTraceName
;
77 * Sets the local trace name
79 * @param importTraceName
80 * - local name of trace to set (name after importing)
82 public void setLocalTraceName(String importTraceName
) {
83 this.fLocalTraceName
= importTraceName
;
86 * @return true if local trace should be overwritten if a trace with the same name already exists.
88 public boolean isOverwrite() {
92 * Sets the overwrite flag.
93 * @param isOverwrite If the Overwrite checkbox is checked or not
95 public void setOverwrite(boolean isOverwrite
) {
96 this.fIsOverwrite
= isOverwrite
;
100 * @return the remote file implementation.
102 public IRemoteFile
getImportFile() {
107 * Sets the remote file implementation
110 * The remote file implementation.
112 public void setRemoteFile(IRemoteFile remoteFile
) {
113 fRemoteFile
= remoteFile
;
117 * Returns whether it is a kernel trace or not
119 * @return <code>true</code> if it is a kernel trace else <code>false</code>
121 public boolean isKernel() {
126 * Sets whether it is a kernel trace or not
129 * <code>true</code> for kernel trace else <code>false</code>
131 public void setKernel(boolean isKernel
) {
132 fIsKernel
= isKernel
;
This page took 0.0324 seconds and 5 git commands to generate.