diff options
Diffstat (limited to 'tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1aab.html')
-rw-r--r-- | tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1aab.html | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1aab.html b/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1aab.html deleted file mode 100644 index ba6c2c05..00000000 --- a/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/1aab.html +++ /dev/null @@ -1 +0,0 @@ -<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;} TD.bt {border-width:1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" CELLSPACING="0" WIDTH="100%"><TR><TH CLASS="tl"><A HREF="http://www.eclemma.org/">EMMA</A> Coverage Report (generated Tue Jun 09 19:59:05 GMT 2009)</TH></TR><TR><TD CLASS="nv">[<A HREF="../xslUnitTestCoverage.html">all classes</A>][<A HREF="2d2.html">org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">OutputPropertyDialog.java</SPAN>]</H2><TABLE CELLSPACING="0" WIDTH="100%"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>OutputPropertyDialog.java</TD><TD CLASS="h">0% (0/6)</TD><TD CLASS="h">0% (0/19)</TD><TD CLASS="h">0% (0/347)</TD><TD CLASS="h">0% (0/61)</TD></TR></TABLE><H3>COVERAGE BREAKDOWN BY CLASS AND METHOD</H3><TABLE CLASS="cn" CELLSPACING="0" WIDTH="100%"><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">OutputPropertyDialog</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/7)</TD><TD CLASS="h">0% (0/256)</TD><TD CLASS="h">0% (0/44)</TD></TR><TR><TD CLASS="f"><A HREF="#1">OutputPropertyDialog (Shell, LaunchProperties): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/86)</TD><TD CLASS="h">0% (0/13)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#2">access$0 (OutputPropertyDialog): List</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/3)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR><TD CLASS="f"><A HREF="#3">access$1 (OutputPropertyDialog, List): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/4)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">access$2 (OutputPropertyDialog): Text</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/3)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR><TD CLASS="f"><A HREF="#0">access$3 (OutputPropertyDialog, int): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/4)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#6">createDialogArea (Composite): Control</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/153)</TD><TD CLASS="h">0% (0/28)</TD></TR><TR><TD CLASS="f"><A HREF="#7">getOutpuProperties (): List</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/3)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">OutputPropertyDialog$1</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/4)</TD><TD CLASS="h">0% (0/15)</TD><TD CLASS="h">0% (0/5)</TD></TR><TR><TD CLASS="f"><A HREF="#0">OutputPropertyDialog$1 (OutputPropertyDialog): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/6)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#a">dispose (): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR><TD CLASS="f"><A HREF="#b">getElements (Object): Object []</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/7)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#c">inputChanged (Viewer, Object, Object): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">OutputPropertyDialog$2</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/2)</TD><TD CLASS="h">0% (0/12)</TD><TD CLASS="h">0% (0/4)</TD></TR><TR><TD CLASS="f"><A HREF="#0">OutputPropertyDialog$2 (OutputPropertyDialog): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/6)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#f">getText (Object): String</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/6)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">OutputPropertyDialog$3</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/2)</TD><TD CLASS="h">0% (0/18)</TD><TD CLASS="h">0% (0/5)</TD></TR><TR><TD CLASS="f"><A HREF="#0">OutputPropertyDialog$3 (OutputPropertyDialog): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/6)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#12">compare (Viewer, Object, Object): int</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/12)</TD><TD CLASS="h">0% (0/3)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">OutputPropertyDialog$4</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/2)</TD><TD CLASS="h">0% (0/35)</TD><TD CLASS="h">0% (0/9)</TD></TR><TR><TD CLASS="f"><A HREF="#0">OutputPropertyDialog$4 (OutputPropertyDialog): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/6)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#15">selectionChanged (SelectionChangedEvent): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/29)</TD><TD CLASS="h">0% (0/7)</TD></TR><TR><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD><TD CLASS="bt"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">OutputPropertyDialog$5</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/2)</TD><TD CLASS="h">0% (0/11)</TD><TD CLASS="h">0% (0/4)</TD></TR><TR><TD CLASS="f"><A HREF="#0">OutputPropertyDialog$5 (OutputPropertyDialog): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/6)</TD><TD CLASS="h">0% (0/2)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#18">doubleClick (DoubleClickEvent): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/5)</TD><TD CLASS="h">0% (0/2)</TD></TR></TABLE><P></P><TABLE CLASS="s" CELLSPACING="0" WIDTH="100%"><TR CLASS="z"><TD CLASS="l"><A NAME="0">1</A></TD><TD>package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;</TD></TR><TR><TD CLASS="l">2</TD><TD> </TD></TR><TR><TD CLASS="l">3</TD><TD>import java.util.ArrayList;</TD></TR><TR><TD CLASS="l">4</TD><TD>import java.util.HashSet;</TD></TR><TR><TD CLASS="l">5</TD><TD>import java.util.List;</TD></TR><TR><TD CLASS="l">6</TD><TD>import java.util.Set;</TD></TR><TR><TD CLASS="l">7</TD><TD> </TD></TR><TR><TD CLASS="l">8</TD><TD>import org.eclipse.jface.dialogs.IDialogConstants;</TD></TR><TR><TD CLASS="l">9</TD><TD>import org.eclipse.jface.dialogs.StatusDialog;</TD></TR><TR><TD CLASS="l">10</TD><TD>import org.eclipse.jface.viewers.DoubleClickEvent;</TD></TR><TR><TD CLASS="l">11</TD><TD>import org.eclipse.jface.viewers.IDoubleClickListener;</TD></TR><TR><TD CLASS="l">12</TD><TD>import org.eclipse.jface.viewers.ISelectionChangedListener;</TD></TR><TR><TD CLASS="l">13</TD><TD>import org.eclipse.jface.viewers.IStructuredContentProvider;</TD></TR><TR><TD CLASS="l">14</TD><TD>import org.eclipse.jface.viewers.IStructuredSelection;</TD></TR><TR><TD CLASS="l">15</TD><TD>import org.eclipse.jface.viewers.LabelProvider;</TD></TR><TR><TD CLASS="l">16</TD><TD>import org.eclipse.jface.viewers.SelectionChangedEvent;</TD></TR><TR><TD CLASS="l">17</TD><TD>import org.eclipse.jface.viewers.StructuredSelection;</TD></TR><TR><TD CLASS="l">18</TD><TD>import org.eclipse.jface.viewers.TableViewer;</TD></TR><TR><TD CLASS="l">19</TD><TD>import org.eclipse.jface.viewers.Viewer;</TD></TR><TR><TD CLASS="l">20</TD><TD>import org.eclipse.jface.viewers.ViewerSorter;</TD></TR><TR><TD CLASS="l">21</TD><TD>import org.eclipse.swt.SWT;</TD></TR><TR><TD CLASS="l">22</TD><TD>import org.eclipse.swt.layout.GridData;</TD></TR><TR><TD CLASS="l">23</TD><TD>import org.eclipse.swt.layout.GridLayout;</TD></TR><TR><TD CLASS="l">24</TD><TD>import org.eclipse.swt.widgets.Composite;</TD></TR><TR><TD CLASS="l">25</TD><TD>import org.eclipse.swt.widgets.Control;</TD></TR><TR><TD CLASS="l">26</TD><TD>import org.eclipse.swt.widgets.Label;</TD></TR><TR><TD CLASS="l">27</TD><TD>import org.eclipse.swt.widgets.Shell;</TD></TR><TR><TD CLASS="l">28</TD><TD>import org.eclipse.swt.widgets.Table;</TD></TR><TR><TD CLASS="l">29</TD><TD>import org.eclipse.swt.widgets.Text;</TD></TR><TR><TD CLASS="l">30</TD><TD>import org.eclipse.wst.xsl.jaxp.launching.IOutputProperty;</TD></TR><TR><TD CLASS="l">31</TD><TD>import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;</TD></TR><TR><TD CLASS="l">32</TD><TD>import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;</TD></TR><TR><TD CLASS="l">33</TD><TD>import org.eclipse.wst.xsl.jaxp.launching.LaunchProperties;</TD></TR><TR><TD CLASS="l">34</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="4">35</A></TD><TD>public class OutputPropertyDialog extends StatusDialog</TD></TR><TR><TD CLASS="l"><A NAME="2">36</A></TD><TD>{</TD></TR><TR><TD CLASS="l"><A NAME="3">37</A></TD><TD> private Table table;</TD></TR><TR><TD CLASS="l">38</TD><TD> private TableViewer tViewer;</TD></TR><TR CLASS="z"><TD CLASS="l">39</TD><TD> private Text text;</TD></TR><TR CLASS="z"><TD CLASS="l">40</TD><TD> private List<IOutputProperty> properties = new ArrayList<IOutputProperty>();</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="1">41</A></TD><TD> private List<IOutputProperty> selectedProperties = new ArrayList<IOutputProperty>();</TD></TR><TR><TD CLASS="l">42</TD><TD> </TD></TR><TR><TD CLASS="l">43</TD><TD> public OutputPropertyDialog(Shell parent, LaunchProperties launchProperties)</TD></TR><TR><TD CLASS="l">44</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">45</TD><TD> super(parent);</TD></TR><TR CLASS="z"><TD CLASS="l">46</TD><TD> setTitle("Select Output Properties");</TD></TR><TR><TD CLASS="l">47</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">48</TD><TD> Set<String> propertySet = new HashSet<String>();</TD></TR><TR CLASS="z"><TD CLASS="l">49</TD><TD> for (String att : launchProperties.getProperties().keySet())</TD></TR><TR><TD CLASS="l">50</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">51</TD><TD> propertySet.add(att);</TD></TR><TR><TD CLASS="l">52</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">53</TD><TD> for (IProcessorType type : JAXPRuntime.getProcessorTypes())</TD></TR><TR><TD CLASS="l">54</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">55</TD><TD> for (IOutputProperty property : type.getOutputProperties())</TD></TR><TR><TD CLASS="l">56</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">57</TD><TD> if (!propertySet.contains(property.getURI()))</TD></TR><TR><TD CLASS="l">58</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">59</TD><TD> propertySet.add(property.getURI());</TD></TR><TR CLASS="z"><TD CLASS="l">60</TD><TD> properties.add(property);</TD></TR><TR><TD CLASS="l">61</TD><TD> }</TD></TR><TR><TD CLASS="l">62</TD><TD> }</TD></TR><TR><TD CLASS="l">63</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">64</TD><TD> }</TD></TR><TR><TD CLASS="l"><A NAME="6">65</A></TD><TD> </TD></TR><TR><TD CLASS="l">66</TD><TD> @Override</TD></TR><TR><TD CLASS="l">67</TD><TD> protected Control createDialogArea(Composite parent)</TD></TR><TR><TD CLASS="l">68</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">69</TD><TD> Composite comp = new Composite(parent,SWT.NONE);</TD></TR><TR CLASS="z"><TD CLASS="l">70</TD><TD> GridData gd = new GridData(SWT.FILL,SWT.FILL,true,true);</TD></TR><TR CLASS="z"><TD CLASS="l">71</TD><TD> gd.widthHint = 400;</TD></TR><TR CLASS="z"><TD CLASS="l">72</TD><TD> comp.setLayoutData(gd);</TD></TR><TR CLASS="z"><TD CLASS="l">73</TD><TD> comp.setLayout(new GridLayout());</TD></TR><TR><TD CLASS="l">74</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">75</TD><TD> Label label = new Label(comp,SWT.NONE);</TD></TR><TR CLASS="z"><TD CLASS="l">76</TD><TD> label.setText("Select one or more output properties for the transformation.");</TD></TR><TR><TD CLASS="l">77</TD><TD> </TD></TR><TR><TD CLASS="l">78</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">79</TD><TD> table = new Table(comp,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);</TD></TR><TR CLASS="z"><TD CLASS="l">80</TD><TD> table.setHeaderVisible(false);</TD></TR><TR CLASS="z"><TD CLASS="l">81</TD><TD> gd = new GridData(SWT.FILL,SWT.FILL,true,true);</TD></TR><TR CLASS="z"><TD CLASS="l">82</TD><TD> gd.verticalIndent = 10;</TD></TR><TR CLASS="z"><TD CLASS="l">83</TD><TD> gd.heightHint = 200;</TD></TR><TR CLASS="z"><TD CLASS="l">84</TD><TD> table.setLayoutData(gd);</TD></TR><TR><TD CLASS="l">85</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">86</TD><TD> tViewer = new TableViewer(table);</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="b">87</A></TD><TD> tViewer.setContentProvider(new IStructuredContentProvider()</TD></TR><TR><TD CLASS="l">88</TD><TD> {</TD></TR><TR><TD CLASS="l">89</TD><TD> public Object[] getElements(Object inputElement)</TD></TR><TR><TD CLASS="l">90</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">91</TD><TD> return properties.toArray(new IOutputProperty[0]);</TD></TR><TR><TD CLASS="l"><A NAME="a">92</A></TD><TD> }</TD></TR><TR><TD CLASS="l">93</TD><TD> </TD></TR><TR><TD CLASS="l">94</TD><TD> public void dispose()</TD></TR><TR><TD CLASS="l">95</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="c">96</A></TD><TD> }</TD></TR><TR><TD CLASS="l">97</TD><TD> </TD></TR><TR><TD CLASS="l">98</TD><TD> public void inputChanged(Viewer viewer, Object oldInput, Object newInput)</TD></TR><TR><TD CLASS="l">99</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">100</TD><TD> }</TD></TR><TR><TD CLASS="l">101</TD><TD> });</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="f">102</A></TD><TD> tViewer.setLabelProvider(new LabelProvider(){</TD></TR><TR><TD CLASS="l">103</TD><TD> @Override</TD></TR><TR><TD CLASS="l">104</TD><TD> public String getText(Object element)</TD></TR><TR><TD CLASS="l">105</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">106</TD><TD> IOutputProperty property = (IOutputProperty)element;</TD></TR><TR CLASS="z"><TD CLASS="l">107</TD><TD> return property.getURI();</TD></TR><TR><TD CLASS="l">108</TD><TD> }</TD></TR><TR><TD CLASS="l">109</TD><TD> });</TD></TR><TR CLASS="z"><TD CLASS="l">110</TD><TD> tViewer.setSorter(new ViewerSorter()</TD></TR><TR><TD CLASS="l"><A NAME="12">111</A></TD><TD> {</TD></TR><TR><TD CLASS="l">112</TD><TD> @Override</TD></TR><TR><TD CLASS="l">113</TD><TD> public int compare(Viewer viewer, Object e1, Object e2)</TD></TR><TR><TD CLASS="l">114</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">115</TD><TD> IOutputProperty a1 = (IOutputProperty) e1;</TD></TR><TR CLASS="z"><TD CLASS="l">116</TD><TD> IOutputProperty a2 = (IOutputProperty) e2;</TD></TR><TR CLASS="z"><TD CLASS="l">117</TD><TD> return a1.getURI().compareTo(a2.getURI());</TD></TR><TR><TD CLASS="l">118</TD><TD> }</TD></TR><TR><TD CLASS="l"><A NAME="15">119</A></TD><TD> });</TD></TR><TR CLASS="z"><TD CLASS="l">120</TD><TD> tViewer.addSelectionChangedListener(new ISelectionChangedListener(){</TD></TR><TR><TD CLASS="l">121</TD><TD> public void selectionChanged(SelectionChangedEvent event)</TD></TR><TR><TD CLASS="l">122</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">123</TD><TD> IStructuredSelection sel = (IStructuredSelection)event.getSelection();</TD></TR><TR CLASS="z"><TD CLASS="l">124</TD><TD> selectedProperties = sel.toList();</TD></TR><TR CLASS="z"><TD CLASS="l">125</TD><TD> if (sel.isEmpty())</TD></TR><TR CLASS="z"><TD CLASS="l">126</TD><TD> text.setText("");</TD></TR><TR><TD CLASS="l">127</TD><TD> else</TD></TR><TR><TD CLASS="l">128</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">129</TD><TD> IOutputProperty property = (IOutputProperty)sel.getFirstElement(); </TD></TR><TR CLASS="z"><TD CLASS="l">130</TD><TD> text.setText(property.getDescription());</TD></TR><TR><TD CLASS="l">131</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">132</TD><TD> }</TD></TR><TR><TD CLASS="l"><A NAME="18">133</A></TD><TD> });</TD></TR><TR CLASS="z"><TD CLASS="l">134</TD><TD> tViewer.addDoubleClickListener(new IDoubleClickListener(){</TD></TR><TR><TD CLASS="l">135</TD><TD> public void doubleClick(DoubleClickEvent event)</TD></TR><TR><TD CLASS="l">136</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">137</TD><TD> buttonPressed(IDialogConstants.OK_ID);</TD></TR><TR CLASS="z"><TD CLASS="l">138</TD><TD> }</TD></TR><TR><TD CLASS="l">139</TD><TD> });</TD></TR><TR CLASS="z"><TD CLASS="l">140</TD><TD> tViewer.setInput(properties);</TD></TR><TR><TD CLASS="l">141</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">142</TD><TD> text = new Text(comp,SWT.BORDER | SWT.WRAP | SWT.READ_ONLY | SWT.V_SCROLL);</TD></TR><TR CLASS="z"><TD CLASS="l">143</TD><TD> text.setEditable(false);</TD></TR><TR CLASS="z"><TD CLASS="l">144</TD><TD> gd = new GridData(SWT.FILL,SWT.FILL,true,false);</TD></TR><TR CLASS="z"><TD CLASS="l">145</TD><TD> gd.heightHint = 80;</TD></TR><TR CLASS="z"><TD CLASS="l">146</TD><TD> text.setLayoutData(gd);</TD></TR><TR><TD CLASS="l">147</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">148</TD><TD> if (properties.size() > 0)</TD></TR><TR><TD CLASS="l">149</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">150</TD><TD> tViewer.setSelection(new StructuredSelection(tViewer.getElementAt(0)), true);</TD></TR><TR><TD CLASS="l">151</TD><TD> }</TD></TR><TR><TD CLASS="l">152</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">153</TD><TD> return comp;</TD></TR><TR><TD CLASS="l"><A NAME="7">154</A></TD><TD> }</TD></TR><TR><TD CLASS="l">155</TD><TD> </TD></TR><TR><TD CLASS="l">156</TD><TD> public List<IOutputProperty> getOutpuProperties()</TD></TR><TR><TD CLASS="l">157</TD><TD> {</TD></TR><TR CLASS="z"><TD CLASS="l">158</TD><TD> return selectedProperties;</TD></TR><TR><TD CLASS="l">159</TD><TD> }</TD></TR><TR><TD CLASS="l">160</TD><TD>}</TD></TR></TABLE><P></P><TABLE CLASS="hdft" CELLSPACING="0" WIDTH="100%"><TR><TD CLASS="nv">[<A HREF="../xslUnitTestCoverage.html">all classes</A>][<A HREF="2d2.html">org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://www.eclemma.org/support.html">EMMA 2.0.5312 EclEmma Fix 1</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>
\ No newline at end of file |