41
|
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.tracecompiler.engine;
|
|
20 |
|
|
21 |
import com.nokia.tracecompiler.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 auto-converter is running
|
|
46 |
*
|
|
47 |
* @return true if converter is running, false otherwise
|
|
48 |
*/
|
|
49 |
public boolean isConverting();
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Sets the auto-converter flag
|
|
53 |
*
|
|
54 |
* @param flag
|
|
55 |
* the new flag value
|
|
56 |
*/
|
|
57 |
public void setConverting(boolean flag);
|
|
58 |
|
|
59 |
}
|