Commit | Line | Data |
---|---|---|
72041d61 BH |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 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 | *******************************************************************************/ | |
12 | package org.eclipse.tracecompass.internal.tmf.ui.project.wizards.importtrace; | |
13 | ||
14 | /** | |
15 | * Enumeration for import conflict dialog | |
16 | * | |
17 | * @author Bernd Hufmann | |
18 | */ | |
19 | public enum ImportConfirmation { | |
20 | ||
21 | // ------------------------------------------------------------------------ | |
22 | // Enum definition | |
23 | // ------------------------------------------------------------------------ | |
24 | /** Single rename */ | |
25 | RENAME(Messages.ImportTraceWizard_ImportConfigurationRename), | |
26 | /** Rename all */ | |
27 | RENAME_ALL(Messages.ImportTraceWizard_ImportConfigurationRenameAll), | |
28 | /** Single overwrite */ | |
29 | OVERWRITE(Messages.ImportTraceWizard_ImportConfigurationOverwrite), | |
30 | /** Overwrite all */ | |
31 | OVERWRITE_ALL(Messages.ImportTraceWizard_ImportConfigurationOverwriteAll), | |
32 | /** Single skip */ | |
33 | SKIP(Messages.ImportTraceWizard_ImportConfigurationSkip), | |
34 | /** Skip all*/ | |
35 | SKIP_ALL(Messages.ImportTraceWizard_ImportConfigurationSkipAll), | |
36 | /** Default value*/ | |
37 | CONTINUE("CONTINUE"); //$NON-NLS-1$ | |
38 | ||
39 | // ------------------------------------------------------------------------ | |
40 | // Attributes | |
41 | // ------------------------------------------------------------------------ | |
42 | /** | |
43 | * Name of enum | |
44 | */ | |
45 | private final String fInName; | |
46 | ||
47 | // ------------------------------------------------------------------------ | |
48 | // Constuctor | |
49 | // ------------------------------------------------------------------------ | |
50 | /** | |
51 | * Private constructor | |
52 | * | |
53 | * @param name | |
54 | * the name of state | |
55 | */ | |
56 | private ImportConfirmation(String name) { | |
57 | fInName = name; | |
58 | } | |
59 | ||
60 | // ------------------------------------------------------------------------ | |
61 | // Accessors | |
62 | // ------------------------------------------------------------------------ | |
63 | /** | |
64 | * @return state name | |
65 | */ | |
66 | public String getInName() { | |
67 | return fInName; | |
68 | } | |
69 | } |