tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/project/TraceProjectAPI.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 * Interface to the properties of the trace API used by the currently open trace project |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracecompiler.project; |
|
20 |
|
21 import com.nokia.tracecompiler.model.Trace; |
|
22 import com.nokia.tracecompiler.model.TraceModelExtension; |
|
23 |
|
24 /** |
|
25 * Interface to the properties of the trace API used by the currently open trace |
|
26 * project |
|
27 * |
|
28 */ |
|
29 public interface TraceProjectAPI extends TraceModelExtension { |
|
30 |
|
31 /** |
|
32 * Formatting flags for formatTraceForExport |
|
33 */ |
|
34 public class TraceFormatFlags { |
|
35 |
|
36 /** |
|
37 * Formatting characters supported flag |
|
38 */ |
|
39 public boolean isFormattingSupported; |
|
40 } |
|
41 |
|
42 /** |
|
43 * Gets the name of this API |
|
44 * |
|
45 * @return the name |
|
46 */ |
|
47 public String getName(); |
|
48 |
|
49 /** |
|
50 * Formats a trace for into a string suitable for export |
|
51 * |
|
52 * @param trace |
|
53 * the trace to be formatted |
|
54 * @param flags |
|
55 * the formatting flags |
|
56 * @return the formatted text |
|
57 */ |
|
58 public String formatTraceForExport(Trace trace, TraceFormatFlags flags); |
|
59 |
|
60 } |