|
1 /* |
|
2 * Copyright (c) 2008 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 * Template for "this" pointer parameter. |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.engine.rules; |
|
20 |
|
21 import java.util.List; |
|
22 |
|
23 import com.nokia.tracebuilder.engine.TraceParameterPropertyDialogTemplate; |
|
24 import com.nokia.tracebuilder.model.TraceModelExtension; |
|
25 import com.nokia.tracebuilder.model.TraceParameter; |
|
26 |
|
27 /** |
|
28 * Template for "this" pointer parameter. |
|
29 * |
|
30 */ |
|
31 final class ThisPointerParameterTemplate implements |
|
32 TraceParameterPropertyDialogTemplate { |
|
33 |
|
34 /** |
|
35 * Parameter name |
|
36 */ |
|
37 static final String PARAMETER_NAME = "this"; //$NON-NLS-1$ |
|
38 |
|
39 /** |
|
40 * Title for the template |
|
41 */ |
|
42 static final String UI_TITLE = Messages |
|
43 .getString("ThisPointerParameterTemplate.Title"); //$NON-NLS-1$ |
|
44 |
|
45 /* |
|
46 * (non-Javadoc) |
|
47 * |
|
48 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#getTitle() |
|
49 */ |
|
50 public String getTitle() { |
|
51 return UI_TITLE; |
|
52 } |
|
53 |
|
54 /* |
|
55 * (non-Javadoc) |
|
56 * |
|
57 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#getName() |
|
58 */ |
|
59 public String getName() { |
|
60 return PARAMETER_NAME; |
|
61 } |
|
62 |
|
63 /* |
|
64 * (non-Javadoc) |
|
65 * |
|
66 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#getValue() |
|
67 */ |
|
68 public String getValue() { |
|
69 return PARAMETER_NAME; |
|
70 } |
|
71 |
|
72 /* |
|
73 * (non-Javadoc) |
|
74 * |
|
75 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#getType() |
|
76 */ |
|
77 public String getType() { |
|
78 return TraceParameter.HEX32; |
|
79 } |
|
80 |
|
81 /* |
|
82 * (non-Javadoc) |
|
83 * |
|
84 * @see com.nokia.tracebuilder.engine.TraceParameterPropertyDialogTemplate#isTypeEnabled() |
|
85 */ |
|
86 public boolean isTypeEnabled() { |
|
87 return false; |
|
88 } |
|
89 |
|
90 /* |
|
91 * (non-Javadoc) |
|
92 * |
|
93 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#isIDEnabled() |
|
94 */ |
|
95 public boolean isIDEnabled() { |
|
96 return true; |
|
97 } |
|
98 |
|
99 /* |
|
100 * (non-Javadoc) |
|
101 * |
|
102 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#isNameEnabled() |
|
103 */ |
|
104 public boolean isNameEnabled() { |
|
105 return false; |
|
106 } |
|
107 |
|
108 /* |
|
109 * (non-Javadoc) |
|
110 * |
|
111 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#isValueEnabled() |
|
112 */ |
|
113 public boolean isValueEnabled() { |
|
114 return false; |
|
115 } |
|
116 |
|
117 /* |
|
118 * (non-Javadoc) |
|
119 * |
|
120 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#isTargetEnabled() |
|
121 */ |
|
122 public boolean isTargetEnabled() { |
|
123 return true; |
|
124 } |
|
125 |
|
126 /* |
|
127 * (non-Javadoc) |
|
128 * |
|
129 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate# |
|
130 * createExtensions(java.util.List) |
|
131 */ |
|
132 public void createExtensions(List<TraceModelExtension> list) { |
|
133 } |
|
134 |
|
135 } |