testdev/ite/src/com.nokia.testfw.codegen.ui/src/com/nokia/testfw/codegen/ui/wizard/preview/ChangeElement.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.testfw.codegen.ui.wizard.preview; |
|
19 |
|
20 import com.nokia.testfw.codegen.ChangeFileContent; |
|
21 |
|
22 /** |
|
23 * Objects of this class describe changes in code that will be performed during |
|
24 * Test Case Wizard operation. Needed for change preview. |
|
25 * |
|
26 */ |
|
27 public class ChangeElement { |
|
28 |
|
29 public ChangeElement(ChangeFileContent changeContent) { |
|
30 oldElement = new StringInput(changeContent.getOldContent()); |
|
31 newElement = new StringInput(changeContent.getNewContent()); |
|
32 } |
|
33 |
|
34 private StringInput oldElement; |
|
35 private StringInput newElement; |
|
36 |
|
37 // private String oldLabel; |
|
38 // private String newLabel; |
|
39 |
|
40 /** |
|
41 * Gets new element |
|
42 * |
|
43 * @return new element |
|
44 */ |
|
45 public StringInput getNewElement() { |
|
46 return newElement; |
|
47 } |
|
48 |
|
49 /** |
|
50 * Gets old element |
|
51 * |
|
52 * @return old element |
|
53 */ |
|
54 public StringInput getOldElement() { |
|
55 return oldElement; |
|
56 } |
|
57 } |