~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to profiling/org.eclipse.linuxtools.dataviewers/doc/DataViewersFind.html

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2012-06-29 12:07:30 UTC
  • Revision ID: package-import@ubuntu.com-20120629120730-bfri1xys1i71dpn6
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
 
5
  <title>DataViewersFind</title>
 
6
</head>
 
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>
 
11
</span></h3>
 
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>&nbsp;
 
21
adapts&nbsp; the original IFindReplaceTarget to the dataviewers. In
 
22
particular way, it uses&nbsp; the class&nbsp; </small><big><small><span
 
23
 style="font-weight: bold;">ViewerCell</span><small> to get the
 
24
searched string position into the dataviewer.</small><br>
 
25
<br>
 
26
<small>There are two classes that implement ISTFindReplaceTarget:<br>
 
27
</small></small></big></small></big>
 
28
<ul>
 
29
  <li><small>STTableFindReplaceTarget and extends AbstractSTTableViewer<br>
 
30
    </small></li>
 
31
  <li><small>STTreeFindReplaceTarget and extends AbstractSTTreeViewer</small></li>
 
32
</ul>
 
33
</div>
 
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>
 
38
</small>
 
39
<ul>
 
40
  <li><small>&nbsp;STTableFindReplaceTarget for the
 
41
AbstractSTTableViewer</small><br>
 
42
  </li>
 
43
</ul>
 
44
<small>or<br>
 
45
</small>
 
46
<ul>
 
47
  <li><small>STTreeFindReplaceTarget for the AbstractSTTreeViewer</small><br>
 
48
  </li>
 
49
</ul>
 
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>
 
54
</small>
 
55
<ul>
 
56
  <li><small><small><span style="font-weight: bold; font-style: italic;">create
 
57
an instance of&nbsp; 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>
 
62
</ul>
 
63
</div>
 
64
<br>
 
65
</div>
 
66
</div>
 
67
</div>
 
68
</body>
 
69
</html>