srcanaapps/apiquerytool/com.nokia.s60tools.apiquery/src/com/nokia/s60tools/apiquery/shared/services/QueryServices.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 */ |
|
17 |
|
18 package com.nokia.s60tools.apiquery.shared.services; |
|
19 |
|
20 import com.nokia.s60tools.apiquery.shared.exceptions.QueryOperationFailedException; |
|
21 import com.nokia.s60tools.apiquery.ui.views.main.MainView; |
|
22 |
|
23 public class QueryServices { |
|
24 |
|
25 /** |
|
26 * Enables the starting of API queries |
|
27 * also from the other plug-ins that should |
|
28 * not know anything about internal UI components. |
|
29 * However, this method must be called from an UI thread, or |
|
30 * use <code>Display.getDefault().asyncExec(...)</code> method |
|
31 * and pass runnable as parameter in order to schedule |
|
32 * query request to UI thread. |
|
33 * @param queryType Query type. |
|
34 * @param queryString Query string. |
|
35 * @throws QueryOperationFailedException |
|
36 */ |
|
37 public static void runAPIQuery(int queryType, String queryString) throws QueryOperationFailedException{ |
|
38 MainView.runAPIQueryFromExternalClass(queryType, |
|
39 queryString, false); |
|
40 } |
|
41 |
|
42 } |