trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/engine/rules/InstrumenterTemplateBase.java
equal
deleted
inserted
replaced
|
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 * Base class for instrumenter templates |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.engine.rules; |
|
20 |
|
21 import com.nokia.tracebuilder.engine.TracePropertyDialogTemplate; |
|
22 |
|
23 /** |
|
24 * Base class for instrumenter templates |
|
25 * |
|
26 */ |
|
27 public abstract class InstrumenterTemplateBase implements |
|
28 TracePropertyDialogTemplate { |
|
29 |
|
30 /* |
|
31 * (non-Javadoc) |
|
32 * |
|
33 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#isIDEnabled() |
|
34 */ |
|
35 public boolean isIDEnabled() { |
|
36 return false; |
|
37 } |
|
38 |
|
39 /* |
|
40 * (non-Javadoc) |
|
41 * |
|
42 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#isNameEnabled() |
|
43 */ |
|
44 public boolean isNameEnabled() { |
|
45 return true; |
|
46 } |
|
47 |
|
48 /* |
|
49 * (non-Javadoc) |
|
50 * |
|
51 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#isValueEnabled() |
|
52 */ |
|
53 public boolean isValueEnabled() { |
|
54 return true; |
|
55 } |
|
56 |
|
57 /* |
|
58 * (non-Javadoc) |
|
59 * |
|
60 * @see com.nokia.tracebuilder.engine.TraceObjectPropertyDialogTemplate#isTargetEnabled() |
|
61 */ |
|
62 public boolean isTargetEnabled() { |
|
63 return true; |
|
64 } |
|
65 |
|
66 /* |
|
67 * (non-Javadoc) |
|
68 * |
|
69 * @see com.nokia.tracebuilder.engine.TracePropertyDialogTemplate#getText(java.lang.String) |
|
70 */ |
|
71 public String getText(String groupName) { |
|
72 return getValue(); |
|
73 } |
|
74 |
|
75 } |