|
1 /* |
|
2 * Copyright (c) 2007-2010 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 implemented by the some view of Trace Viewer to show up and create dialogs |
|
17 * |
|
18 */ |
|
19 package com.nokia.traceviewer.engine; |
|
20 |
|
21 /** |
|
22 * Interface implemented by the some view of Trace Viewer to show up and create |
|
23 * dialogs |
|
24 * |
|
25 */ |
|
26 public interface TraceViewerDialogInterface { |
|
27 |
|
28 /** |
|
29 * Enum containing the names for TraceViewer dialogs |
|
30 */ |
|
31 public enum Dialog { |
|
32 |
|
33 /** |
|
34 * Filter dialog |
|
35 */ |
|
36 FILTER, |
|
37 |
|
38 /** |
|
39 * Advanced filter dialog |
|
40 */ |
|
41 ADVANCEDFILTER, |
|
42 |
|
43 /** |
|
44 * Search dialog |
|
45 */ |
|
46 SEARCH, |
|
47 |
|
48 /** |
|
49 * Color dialog |
|
50 */ |
|
51 COLOR, |
|
52 |
|
53 /** |
|
54 * Count lines dialog |
|
55 */ |
|
56 COUNTLINES, |
|
57 |
|
58 /** |
|
59 * Variable tracing dialog |
|
60 */ |
|
61 VARIABLETRACING, |
|
62 |
|
63 /** |
|
64 * Variable Tracing history dialog |
|
65 */ |
|
66 VARIBLETRACINGHISTORY, |
|
67 |
|
68 /** |
|
69 * Trace activation dialog |
|
70 */ |
|
71 TRACEACTIVATION, |
|
72 |
|
73 /** |
|
74 * Log dialog |
|
75 */ |
|
76 LOG, |
|
77 |
|
78 /** |
|
79 * Trigger dialog |
|
80 */ |
|
81 TRIGGER, |
|
82 |
|
83 /** |
|
84 * ProgressBar dialog |
|
85 */ |
|
86 PROGRESSBAR; |
|
87 } |
|
88 |
|
89 /** |
|
90 * Enum containing the preference pages for TraceViewer |
|
91 */ |
|
92 public enum TVPreferencePage { |
|
93 |
|
94 /** |
|
95 * General preference pages |
|
96 */ |
|
97 GENERAL, |
|
98 |
|
99 /** |
|
100 * Advanced preference page |
|
101 */ |
|
102 ADVANCED, |
|
103 |
|
104 /** |
|
105 * Configurations preference page |
|
106 */ |
|
107 CONFIGURATIONS, |
|
108 |
|
109 /** |
|
110 * Connection preference page |
|
111 */ |
|
112 CONNECTION; |
|
113 } |
|
114 |
|
115 /** |
|
116 * Shows an error message |
|
117 * |
|
118 * @param error |
|
119 * error string |
|
120 */ |
|
121 |
|
122 public void showErrorMessage(String error); |
|
123 |
|
124 /** |
|
125 * Shows an information message to user |
|
126 * |
|
127 * @param message |
|
128 * the message to show |
|
129 */ |
|
130 public void showInformationMessage(String message); |
|
131 |
|
132 /** |
|
133 * Shows confirmation dialog with ok and cancel choices |
|
134 * |
|
135 * @param message |
|
136 * message to show |
|
137 * @return true if user clicked ok, false if cancel |
|
138 */ |
|
139 public boolean showConfirmationDialog(String message); |
|
140 |
|
141 /** |
|
142 * Opens project preference page |
|
143 * |
|
144 * @param page |
|
145 * the page name |
|
146 * @return true if user pressed OK from the dialog, false otherwise |
|
147 */ |
|
148 public boolean openPreferencePage(TVPreferencePage page); |
|
149 |
|
150 /** |
|
151 * Creates a TraceViewer dialog |
|
152 * |
|
153 * @param name |
|
154 * name for the dialog |
|
155 * @return the newly created dialog |
|
156 */ |
|
157 public TraceViewerDialog createDialog(Dialog name); |
|
158 } |