|
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 * View adapter |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.engine; |
|
20 |
|
21 import com.nokia.tracebuilder.model.TraceObject; |
|
22 |
|
23 /** |
|
24 * View adapter implements the view interface. |
|
25 * |
|
26 */ |
|
27 public class ViewAdapter implements TraceBuilderView { |
|
28 |
|
29 /** |
|
30 * Actions interface |
|
31 */ |
|
32 private TraceBuilderActions actions; |
|
33 |
|
34 /** |
|
35 * Dialogs interface |
|
36 */ |
|
37 private TraceBuilderDialogs dialogs; |
|
38 |
|
39 /** |
|
40 * Property dialog interface |
|
41 */ |
|
42 private TraceObjectPropertyDialog propertyDialog; |
|
43 |
|
44 /* |
|
45 * (non-Javadoc) |
|
46 * |
|
47 * @see com.nokia.tracebuilder.engine.TraceBuilderView# |
|
48 * createPropertyDialog() |
|
49 */ |
|
50 public TraceObjectPropertyDialog getPropertyDialog() { |
|
51 if (propertyDialog == null) { |
|
52 propertyDialog = new PropertyDialogAdapter(); |
|
53 } |
|
54 return propertyDialog; |
|
55 } |
|
56 |
|
57 /* |
|
58 * (non-Javadoc) |
|
59 * |
|
60 * @see com.nokia.tracebuilder.engine.TraceBuilderView#getActions() |
|
61 */ |
|
62 public TraceBuilderActions getActions() { |
|
63 if (actions == null) { |
|
64 actions = new ActionsAdapter(); |
|
65 } |
|
66 return actions; |
|
67 } |
|
68 |
|
69 /* |
|
70 * (non-Javadoc) |
|
71 * |
|
72 * @see com.nokia.tracebuilder.engine.TraceBuilderView#getConfiguration() |
|
73 */ |
|
74 public TraceBuilderConfiguration getConfiguration() { |
|
75 // This can be null, the configuration delegate checks it |
|
76 return null; |
|
77 } |
|
78 |
|
79 /* |
|
80 * (non-Javadoc) |
|
81 * |
|
82 * @see com.nokia.tracebuilder.engine.TraceBuilderView#getDialogs() |
|
83 */ |
|
84 public TraceBuilderDialogs getDialogs() { |
|
85 if (dialogs == null) { |
|
86 dialogs = new DialogsAdapter(); |
|
87 } |
|
88 return dialogs; |
|
89 } |
|
90 |
|
91 /* |
|
92 * (non-Javadoc) |
|
93 * |
|
94 * @see com.nokia.tracebuilder.engine.TraceBuilderView#hasFocus() |
|
95 */ |
|
96 public boolean hasFocus() { |
|
97 return false; |
|
98 } |
|
99 |
|
100 /* |
|
101 * (non-Javadoc) |
|
102 * |
|
103 * @see com.nokia.tracebuilder.engine.TraceBuilderView# |
|
104 * runAsyncOperation(java.lang.Runnable) |
|
105 */ |
|
106 public void runAsyncOperation(Runnable runnable) { |
|
107 } |
|
108 |
|
109 /* |
|
110 * (non-Javadoc) |
|
111 * |
|
112 * @see com.nokia.tracebuilder.engine.TraceBuilderView# |
|
113 * selectLocation(com.nokia.tracebuilder.engine.TraceLocation) |
|
114 */ |
|
115 public void selectLocation(TraceLocation location) { |
|
116 } |
|
117 |
|
118 /* |
|
119 * (non-Javadoc) |
|
120 * |
|
121 * @see com.nokia.tracebuilder.engine.TraceBuilderView# |
|
122 * selectObject(com.nokia.tracebuilder.model.TraceObject) |
|
123 */ |
|
124 public void selectObject(TraceObject object) { |
|
125 } |
|
126 |
|
127 /* |
|
128 * (non-Javadoc) |
|
129 * |
|
130 * @see com.nokia.tracebuilder.engine.TraceBuilderView#setFocus() |
|
131 */ |
|
132 public void setFocus() { |
|
133 } |
|
134 |
|
135 /* |
|
136 * (non-Javadoc) |
|
137 * |
|
138 * @see com.nokia.tracebuilder.engine.TraceBuilderView# |
|
139 * refresh() |
|
140 */ |
|
141 public void refresh() { |
|
142 } |
|
143 |
|
144 /* (non-Javadoc) |
|
145 * @see com.nokia.tracebuilder.engine.TraceBuilderView#expandTraceGroupsBranch() |
|
146 */ |
|
147 public void expandTraceGroupsBranch() { |
|
148 } |
|
149 |
|
150 } |