tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/engine/rules/RulesEngineConfigurationListener.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 * Configuration listener |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler.engine.rules; |
|
20 |
|
21 import com.nokia.tracecompiler.engine.TraceCompilerEngineConfiguration; |
|
22 import com.nokia.tracecompiler.engine.TraceCompilerEngineConfigurationListener; |
|
23 import com.nokia.tracecompiler.engine.TraceCompilerEngineGlobals; |
|
24 |
|
25 /** |
|
26 * Configuration listener for rule engine monitors the trace formatting |
|
27 * |
|
28 */ |
|
29 final class RulesEngineConfigurationListener implements |
|
30 TraceCompilerEngineConfigurationListener { |
|
31 |
|
32 /** |
|
33 * Rules engine |
|
34 */ |
|
35 private RulesEngine engine; |
|
36 |
|
37 /** |
|
38 * Constructor |
|
39 * |
|
40 * @param engine |
|
41 * the rules engine |
|
42 */ |
|
43 RulesEngineConfigurationListener(RulesEngine engine) { |
|
44 this.engine = engine; |
|
45 } |
|
46 |
|
47 /* |
|
48 * (non-Javadoc) |
|
49 * |
|
50 * @see com.nokia.tracecompiler.engine.TraceCompilerConfigurationListener#configurationCreated() |
|
51 */ |
|
52 public void configurationCreated() { |
|
53 if (TraceCompilerEngineConfiguration.ALLOW_FORMAT_CHANGE) { |
|
54 engine.traceAPIChanged(TraceCompilerEngineGlobals.getConfiguration() |
|
55 .getText(TraceCompilerEngineConfiguration.FORMATTER_NAME)); |
|
56 } |
|
57 } |
|
58 } |