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