1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
5
<title>DataViewersFind</title>
7
<body style="color: rgb(0, 0, 0); background-color: rgb(204, 255, 255);"
8
alink="#ee0000" link="#0000ee" vlink="#551a8b">
9
<div style="text-align: center;">
10
<h3><span style="color: rgb(204, 0, 0);">DATA VIEWERS FIND <br>
12
<div style="text-align: left;"><small>The package
13
"org.eclipse.linuxtools.dataviewers.findreplace" added into the plugin
14
"org.eclipse.linuxtools.dataviewers" allows to enable the "FIND" action of the standard
15
workbench adapting to the dataviewers.<br>
16
If the developer want to use this new feature, he has to create an
17
instance of the interface</small><span style="font-weight: bold;"> I</span><span
18
style="font-weight: bold;">STFindReplaceTarget</span><small>.<br>
19
The interface </small><big><small><span style="font-weight: bold;">I</span><span
20
style="font-weight: bold;">STFindReplaceTarget</span></small><small><small>
21
adapts the original IFindReplaceTarget to the dataviewers. In
22
particular way, it uses the class </small><big><small><span
23
style="font-weight: bold;">ViewerCell</span><small> to get the
24
searched string position into the dataviewer.</small><br>
26
<small>There are two classes that implement ISTFindReplaceTarget:<br>
27
</small></small></big></small></big>
29
<li><small>STTableFindReplaceTarget and extends AbstractSTTableViewer<br>
31
<li><small>STTreeFindReplaceTarget and extends AbstractSTTreeViewer</small></li>
34
<div style="text-align: left;"><small>Both have to extend an
35
AbstractSTViewer because the "FIND" targert work on a viewer.<br>
36
When a developer want to use the "FIND", he has to create your customer
37
data viewer extending:<br>
40
<li><small> STTableFindReplaceTarget for the
41
AbstractSTTableViewer</small><br>
47
<li><small>STTreeFindReplaceTarget for the AbstractSTTreeViewer</small><br>
50
<div style="text-align: center;">
51
<h3><span style="color: rgb(204, 0, 0);">Briefly</span></h3>
52
<div style="text-align: left;"><small>In order to enable the "FIND"
53
action, the developer has to:<br>
56
<li><small><small><span style="font-weight: bold; font-style: italic;">create
57
an instance of ISTFindReplaceTarget doing the overrideing of
58
createSTFindReplaceTarget() into the AbstractSTDataView</span></small></small></li>
59
<li><small><small><span style="font-weight: bold; font-style: italic;">extend
60
your custom viewer with STTableFindReplaceTarget or
61
STTreeFindReplaceTargert</span></small></small></li>