Commit | Line | Data |
---|---|---|
73005152 | 1 | /********************************************************************** |
df0b8ff4 BH |
2 | * Copyright (c) 2005, 2006 IBM Corporation and others. |
3 | * Copyright (c) 2011, 2012 Ericsson. | |
4 | * | |
73005152 BH |
5 | * All rights reserved. This program and the accompanying materials |
6 | * are made available under the terms of the Eclipse Public License v1.0 | |
7 | * which accompanies this distribution, and is available at | |
8 | * http://www.eclipse.org/legal/epl-v10.html | |
73005152 BH |
9 | * |
10 | * Contributors: | |
11 | * IBM - Initial API and implementation | |
12 | * Bernd Hufmann - Updated for TMF | |
13 | **********************************************************************/ | |
14 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.provider; | |
15 | ||
df0b8ff4 | 16 | import org.eclipse.linuxtools.tmf.ui.views.uml2sd.dialogs.Criteria; |
73005152 BH |
17 | |
18 | /** | |
df0b8ff4 BH |
19 | * Interface for providing a find provider. |
20 | * | |
73005152 | 21 | * Sequence Diagram loaders which implement this class provide the actions for finding the sequence diagram. This |
df0b8ff4 BH |
22 | * interface also allow the implementor to set which action/feature are supported.<br> |
23 | * | |
24 | * Action provider are associated to a Sequence Diagram view by calling <code>SDView.setSDFindProvider()</code>.<br> | |
73005152 | 25 | * |
df0b8ff4 | 26 | * Note that either provider implementing ISDFindProvider or IExtendedFindProvider can be active in the SDView.<br> |
73005152 | 27 | * |
df0b8ff4 | 28 | * @version 1.0 |
73005152 BH |
29 | * @author sveyrier |
30 | * | |
31 | */ | |
32 | public interface ISDFindProvider extends ISDGraphNodeSupporter { | |
33 | ||
34 | /** | |
35 | * Called when the Find dialog box OK button is pressed | |
36 | * | |
37 | * @param toApply user selection made in the dialog box | |
38 | * @return true if the find got a non empty result | |
39 | */ | |
0d9a6d76 | 40 | public boolean find(Criteria toApply); |
73005152 BH |
41 | |
42 | /** | |
43 | * Called when dialog is closed | |
44 | */ | |
45 | public void cancel(); | |
46 | ||
47 | } |