|
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 * Listener interface for trace model change notifications |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler.model; |
|
20 |
|
21 /** |
|
22 * Listener interface for trace model change notifications |
|
23 * |
|
24 */ |
|
25 public interface TraceModelListener { |
|
26 |
|
27 /** |
|
28 * Object name has been updated |
|
29 */ |
|
30 int NAME = 1; |
|
31 |
|
32 /** |
|
33 * Object ID has been updated |
|
34 */ |
|
35 int ID = 2; |
|
36 |
|
37 /** |
|
38 * Trace text has been updated |
|
39 */ |
|
40 int TRACE = 3; |
|
41 |
|
42 /** |
|
43 * Parameter type has been updated |
|
44 */ |
|
45 int TYPE = 4; |
|
46 |
|
47 /** |
|
48 * Notification which is fired when a trace object has been added |
|
49 * |
|
50 * @param owner |
|
51 * the owner of the object |
|
52 * @param object |
|
53 * the object |
|
54 */ |
|
55 public void objectAdded(TraceObject owner, TraceObject object); |
|
56 |
|
57 /** |
|
58 * Notification that is fired a trace object is removed from the model |
|
59 * |
|
60 * @param owner |
|
61 * the owner of the object |
|
62 * @param object |
|
63 * the removed object |
|
64 * @throws TraceCompilerException |
|
65 */ |
|
66 public void objectRemoved(TraceObject owner, TraceObject object) throws TraceCompilerException; |
|
67 |
|
68 /** |
|
69 * Notifies that the one of the properties of an object have been updated |
|
70 * |
|
71 * @param object |
|
72 * the object which was updated |
|
73 * @param property |
|
74 * the property that was updated |
|
75 * @throws TraceCompilerException |
|
76 */ |
|
77 public void propertyUpdated(TraceObject object, int property) throws TraceCompilerException; |
|
78 |
|
79 /** |
|
80 * Notifies that object creation is complete |
|
81 * |
|
82 * @param object |
|
83 * the object |
|
84 * @throws TraceCompilerException |
|
85 */ |
|
86 public void objectCreationComplete(TraceObject object) throws TraceCompilerException; |
|
87 } |