trace/tracebuilder/com.nokia.tracebuilder.view/src/com/nokia/tracebuilder/view/TraceObjectListWrapper.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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 * Wrapper for list of TraceObject instances |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.view; |
|
20 |
|
21 /** |
|
22 * Wrapper for list of TraceObject instances |
|
23 * |
|
24 */ |
|
25 abstract class TraceObjectListWrapper extends ListWrapper { |
|
26 |
|
27 /** |
|
28 * Constructor |
|
29 * |
|
30 * @param parent |
|
31 * parent wrapper |
|
32 * @param updater |
|
33 * the update notifier |
|
34 */ |
|
35 TraceObjectListWrapper(WrapperBase parent, WrapperUpdater updater) { |
|
36 super(parent, updater); |
|
37 } |
|
38 |
|
39 /** |
|
40 * Hides this object from view |
|
41 * |
|
42 * @return the wrapper that needs to be refreshed |
|
43 */ |
|
44 WrapperBase hideFromView() { |
|
45 WrapperBase parent = getParent(); |
|
46 if (parent instanceof TraceObjectWrapper) { |
|
47 ((TraceObjectWrapper) parent).hide(this); |
|
48 } |
|
49 return parent; |
|
50 } |
|
51 |
|
52 } |