|
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 * Interface to change the currently active source context |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.engine; |
|
20 |
|
21 import com.nokia.tracebuilder.source.SourceContext; |
|
22 |
|
23 /** |
|
24 * Interface to the currently active source context |
|
25 * |
|
26 */ |
|
27 public interface SourceContextManager { |
|
28 |
|
29 /** |
|
30 * Gets the active source context |
|
31 * |
|
32 * @return the context |
|
33 */ |
|
34 public SourceContext getContext(); |
|
35 |
|
36 /** |
|
37 * Sets the active source context |
|
38 * |
|
39 * @param context |
|
40 * the context |
|
41 */ |
|
42 public void setContext(SourceContext context); |
|
43 |
|
44 /** |
|
45 * Checks if the instrumenter is running |
|
46 * |
|
47 * @return true if instrumenter is running, false otherwise |
|
48 */ |
|
49 public boolean isInstrumenting(); |
|
50 |
|
51 /** |
|
52 * Sets the instrumenting flag |
|
53 * |
|
54 * @param flag |
|
55 * the new flag value |
|
56 */ |
|
57 public void setInstrumenting(boolean flag); |
|
58 |
|
59 /** |
|
60 * Checks if the auto-converter is running |
|
61 * |
|
62 * @return true if converter is running, false otherwise |
|
63 */ |
|
64 public boolean isConverting(); |
|
65 |
|
66 /** |
|
67 * Sets the auto-converter flag |
|
68 * |
|
69 * @param flag |
|
70 * the new flag value |
|
71 */ |
|
72 public void setConverting(boolean flag); |
|
73 |
|
74 /** |
|
75 * Gets the ID of instrumenter |
|
76 * |
|
77 * @return the instrumenter ID |
|
78 */ |
|
79 public String getInstrumenterID(); |
|
80 |
|
81 /** |
|
82 * Sets the ID of the instrumenter |
|
83 * |
|
84 * @param id |
|
85 * the instrumenter ID |
|
86 */ |
|
87 public void setInstrumenterID(String id); |
|
88 |
|
89 } |