diff options
Diffstat (limited to 'tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/128e.html')
-rw-r--r-- | tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/128e.html | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/128e.html b/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/128e.html deleted file mode 100644 index 1cdff11e..00000000 --- a/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/128e.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="17b.html">org.eclipse.wst.jsdt.internal.ui.text.java.hover</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">AbstractJavaEditorTextHover.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>AbstractJavaEditorTextHover.java</TD><TD CLASS="h">0% (0/2)</TD><TD CLASS="h">0% (0/12)</TD><TD CLASS="h">0% (0/175)</TD><TD CLASS="h">0% (0/54)</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">AbstractJavaEditorTextHover</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/10)</TD><TD CLASS="h">0% (0/158)</TD><TD CLASS="h">0% (0/52)</TD></TR><TR><TD CLASS="f"><A HREF="#0">AbstractJavaEditorTextHover (): void</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 CLASS="o"><TD CLASS="f"><A HREF="#2">getCodeAssist (): ICodeAssist</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/26)</TD><TD CLASS="h">0% (0/8)</TD></TR><TR><TD CLASS="f"><A HREF="#3">getEditor (): IEditorPart</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 CLASS="o"><TD CLASS="f"><A HREF="#4">getHoverControlCreator (): IInformationControlCreator</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/5)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR><TD CLASS="f"><A HREF="#5">getHoverInfo (IJavaScriptElement []): String</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/2)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#6">getHoverInfo (ITextViewer, IRegion): String</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/37)</TD><TD CLASS="h">0% (0/14)</TD></TR><TR><TD CLASS="f"><A HREF="#7">getHoverRegion (ITextViewer, int): IRegion</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/5)</TD><TD CLASS="h">0% (0/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#8">getStyleSheet (): String</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/20)</TD><TD CLASS="h">0% (0/7)</TD></TR><TR><TD CLASS="f"><A HREF="#9">loadStyleSheet (): String</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/53)</TD><TD CLASS="h">0% (0/16)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#a">setEditor (IEditorPart): void</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/4)</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="#4">AbstractJavaEditorTextHover$1</A></TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/2)</TD><TD CLASS="h">0% (0/17)</TD><TD CLASS="h">0% (0/3)</TD></TR><TR><TD CLASS="f"><A HREF="#4">AbstractJavaEditorTextHover$1 (AbstractJavaEditorTextHover): 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="#d">createInformationControl (Shell): IInformationControl</A></TD><TD> </TD><TD CLASS="h">0% (0/1)</TD><TD CLASS="h">0% (0/11)</TD><TD CLASS="h">0% (0/1)</TD></TR></TABLE><P></P><TABLE CLASS="s" CELLSPACING="0" WIDTH="100%"><TR CLASS="z"><TD CLASS="l">1</TD><TD>/*******************************************************************************</TD></TR><TR><TD CLASS="l">2</TD><TD> * Copyright (c) 2000, 2008 IBM Corporation and others.</TD></TR><TR><TD CLASS="l">3</TD><TD> * All rights reserved. This program and the accompanying materials</TD></TR><TR><TD CLASS="l">4</TD><TD> * are made available under the terms of the Eclipse Public License v1.0</TD></TR><TR><TD CLASS="l">5</TD><TD> * which accompanies this distribution, and is available at</TD></TR><TR><TD CLASS="l">6</TD><TD> * http://www.eclipse.org/legal/epl-v10.html</TD></TR><TR><TD CLASS="l">7</TD><TD> *</TD></TR><TR><TD CLASS="l">8</TD><TD> * Contributors:</TD></TR><TR><TD CLASS="l">9</TD><TD> * IBM Corporation - initial API and implementation</TD></TR><TR><TD CLASS="l">10</TD><TD> *******************************************************************************/</TD></TR><TR><TD CLASS="l">11</TD><TD>package org.eclipse.wst.jsdt.internal.ui.text.java.hover;</TD></TR><TR><TD CLASS="l">12</TD><TD> </TD></TR><TR><TD CLASS="l">13</TD><TD>import java.io.BufferedReader;</TD></TR><TR><TD CLASS="l">14</TD><TD>import java.io.IOException;</TD></TR><TR><TD CLASS="l">15</TD><TD>import java.io.InputStreamReader;</TD></TR><TR><TD CLASS="l">16</TD><TD>import java.net.URL;</TD></TR><TR><TD CLASS="l">17</TD><TD> </TD></TR><TR><TD CLASS="l">18</TD><TD>import org.eclipse.core.runtime.FileLocator;</TD></TR><TR><TD CLASS="l">19</TD><TD>import org.eclipse.core.runtime.Platform;</TD></TR><TR><TD CLASS="l">20</TD><TD>import org.eclipse.wst.jsdt.internal.ui.text.html.HTMLPrinter;</TD></TR><TR><TD CLASS="l">21</TD><TD>import org.eclipse.wst.jsdt.internal.ui.text.html.HTMLTextPresenter;</TD></TR><TR><TD CLASS="l">22</TD><TD>import org.eclipse.jface.resource.JFaceResources;</TD></TR><TR><TD CLASS="l">23</TD><TD>import org.eclipse.jface.text.DefaultInformationControl;</TD></TR><TR><TD CLASS="l">24</TD><TD>import org.eclipse.jface.text.IInformationControl;</TD></TR><TR><TD CLASS="l">25</TD><TD>import org.eclipse.jface.text.IInformationControlCreator;</TD></TR><TR><TD CLASS="l">26</TD><TD>import org.eclipse.jface.text.IRegion;</TD></TR><TR><TD CLASS="l">27</TD><TD>import org.eclipse.jface.text.ITextHoverExtension;</TD></TR><TR><TD CLASS="l">28</TD><TD>import org.eclipse.jface.text.ITextViewer;</TD></TR><TR><TD CLASS="l">29</TD><TD>import org.eclipse.swt.SWT;</TD></TR><TR><TD CLASS="l">30</TD><TD>import org.eclipse.swt.graphics.FontData;</TD></TR><TR><TD CLASS="l">31</TD><TD>import org.eclipse.swt.widgets.Shell;</TD></TR><TR><TD CLASS="l">32</TD><TD>import org.eclipse.ui.IEditorInput;</TD></TR><TR><TD CLASS="l">33</TD><TD>import org.eclipse.ui.IEditorPart;</TD></TR><TR><TD CLASS="l">34</TD><TD>import org.eclipse.ui.editors.text.EditorsUI;</TD></TR><TR><TD CLASS="l">35</TD><TD>import org.eclipse.wst.jsdt.core.ICodeAssist;</TD></TR><TR><TD CLASS="l">36</TD><TD>import org.eclipse.wst.jsdt.core.IJavaScriptElement;</TD></TR><TR><TD CLASS="l">37</TD><TD>import org.eclipse.wst.jsdt.core.JavaScriptModelException;</TD></TR><TR><TD CLASS="l">38</TD><TD>import org.eclipse.wst.jsdt.internal.ui.JavaScriptPlugin;</TD></TR><TR><TD CLASS="l">39</TD><TD>import org.eclipse.wst.jsdt.internal.ui.javaeditor.IClassFileEditorInput;</TD></TR><TR><TD CLASS="l">40</TD><TD>import org.eclipse.wst.jsdt.internal.ui.javaeditor.WorkingCopyManager;</TD></TR><TR><TD CLASS="l">41</TD><TD>import org.eclipse.wst.jsdt.internal.ui.text.JavaWordFinder;</TD></TR><TR><TD CLASS="l">42</TD><TD>import org.eclipse.wst.jsdt.ui.PreferenceConstants;</TD></TR><TR><TD CLASS="l">43</TD><TD>import org.eclipse.wst.jsdt.ui.text.java.hover.IJavaEditorTextHover;</TD></TR><TR><TD CLASS="l">44</TD><TD>import org.osgi.framework.Bundle;</TD></TR><TR><TD CLASS="l">45</TD><TD> </TD></TR><TR><TD CLASS="l">46</TD><TD>/**</TD></TR><TR><TD CLASS="l"><A NAME="0">47</A></TD><TD> * Abstract class for providing hover information for Java elements.</TD></TR><TR><TD CLASS="l">48</TD><TD> *</TD></TR><TR><TD CLASS="l">49</TD><TD> * </TD></TR><TR><TD CLASS="l">50</TD><TD> */</TD></TR><TR CLASS="z"><TD CLASS="l">51</TD><TD>public abstract class AbstractJavaEditorTextHover implements IJavaEditorTextHover, ITextHoverExtension {</TD></TR><TR><TD CLASS="l">52</TD><TD> /**</TD></TR><TR><TD CLASS="l">53</TD><TD> * The style sheet (css).</TD></TR><TR><TD CLASS="l">54</TD><TD> * </TD></TR><TR><TD CLASS="l">55</TD><TD> */</TD></TR><TR><TD CLASS="l">56</TD><TD> private static String fgStyleSheet;</TD></TR><TR><TD CLASS="l">57</TD><TD> private IEditorPart fEditor;</TD></TR><TR><TD CLASS="l">58</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="a">59</A></TD><TD> /*</TD></TR><TR><TD CLASS="l">60</TD><TD> * @see IJavaEditorTextHover#setEditor(IEditorPart)</TD></TR><TR><TD CLASS="l">61</TD><TD> */</TD></TR><TR><TD CLASS="l">62</TD><TD> public void setEditor(IEditorPart editor) {</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="3">63</A></TD><TD> fEditor= editor;</TD></TR><TR CLASS="z"><TD CLASS="l">64</TD><TD> }</TD></TR><TR><TD CLASS="l">65</TD><TD> </TD></TR><TR><TD CLASS="l">66</TD><TD> protected IEditorPart getEditor() {</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="2">67</A></TD><TD> return fEditor;</TD></TR><TR><TD CLASS="l">68</TD><TD> }</TD></TR><TR><TD CLASS="l">69</TD><TD> </TD></TR><TR><TD CLASS="l">70</TD><TD> protected ICodeAssist getCodeAssist() {</TD></TR><TR CLASS="z"><TD CLASS="l">71</TD><TD> if (fEditor != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">72</TD><TD> IEditorInput input= fEditor.getEditorInput();</TD></TR><TR CLASS="z"><TD CLASS="l">73</TD><TD> if (input instanceof IClassFileEditorInput) {</TD></TR><TR CLASS="z"><TD CLASS="l">74</TD><TD> IClassFileEditorInput cfeInput= (IClassFileEditorInput) input;</TD></TR><TR CLASS="z"><TD CLASS="l">75</TD><TD> return cfeInput.getClassFile();</TD></TR><TR><TD CLASS="l">76</TD><TD> }</TD></TR><TR><TD CLASS="l">77</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">78</TD><TD> WorkingCopyManager manager= JavaScriptPlugin.getDefault().getWorkingCopyManager();</TD></TR><TR CLASS="z"><TD CLASS="l">79</TD><TD> return manager.getWorkingCopy(input, false);</TD></TR><TR><TD CLASS="l">80</TD><TD> }</TD></TR><TR><TD CLASS="l">81</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">82</TD><TD> return null;</TD></TR><TR><TD CLASS="l">83</TD><TD> }</TD></TR><TR><TD CLASS="l">84</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="7">85</A></TD><TD> /*</TD></TR><TR><TD CLASS="l">86</TD><TD> * @see ITextHover#getHoverRegion(ITextViewer, int)</TD></TR><TR><TD CLASS="l">87</TD><TD> */</TD></TR><TR><TD CLASS="l">88</TD><TD> public IRegion getHoverRegion(ITextViewer textViewer, int offset) {</TD></TR><TR CLASS="z"><TD CLASS="l">89</TD><TD> return JavaWordFinder.findWord(textViewer.getDocument(), offset);</TD></TR><TR><TD CLASS="l">90</TD><TD> }</TD></TR><TR><TD CLASS="l">91</TD><TD> </TD></TR><TR><TD CLASS="l">92</TD><TD> /*</TD></TR><TR><TD CLASS="l">93</TD><TD> * @see ITextHover#getHoverInfo(ITextViewer, IRegion)</TD></TR><TR><TD CLASS="l">94</TD><TD> */</TD></TR><TR><TD CLASS="l">95</TD><TD> public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {</TD></TR><TR><TD CLASS="l">96</TD><TD> </TD></TR><TR><TD CLASS="l">97</TD><TD> /*</TD></TR><TR><TD CLASS="l"><A NAME="6">98</A></TD><TD> * The region should be a word region an not of length 0.</TD></TR><TR><TD CLASS="l">99</TD><TD> * This check is needed because codeSelect(...) also finds</TD></TR><TR><TD CLASS="l">100</TD><TD> * the Java element if the offset is behind the word.</TD></TR><TR><TD CLASS="l">101</TD><TD> */</TD></TR><TR CLASS="z"><TD CLASS="l">102</TD><TD> if (hoverRegion.getLength() == 0)</TD></TR><TR CLASS="z"><TD CLASS="l">103</TD><TD> return null;</TD></TR><TR><TD CLASS="l">104</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">105</TD><TD> ICodeAssist resolve= getCodeAssist();</TD></TR><TR CLASS="z"><TD CLASS="l">106</TD><TD> if (resolve != null) {</TD></TR><TR><TD CLASS="l">107</TD><TD> try {</TD></TR><TR CLASS="z"><TD CLASS="l">108</TD><TD> IJavaScriptElement[] result= resolve.codeSelect(hoverRegion.getOffset(), hoverRegion.getLength());</TD></TR><TR CLASS="z"><TD CLASS="l">109</TD><TD> if (result == null)</TD></TR><TR CLASS="z"><TD CLASS="l">110</TD><TD> return null;</TD></TR><TR><TD CLASS="l">111</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">112</TD><TD> int nResults= result.length;</TD></TR><TR CLASS="z"><TD CLASS="l">113</TD><TD> if (nResults == 0)</TD></TR><TR CLASS="z"><TD CLASS="l">114</TD><TD> return null;</TD></TR><TR><TD CLASS="l">115</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">116</TD><TD> return getHoverInfo(result);</TD></TR><TR><TD CLASS="l">117</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">118</TD><TD> } catch (JavaScriptModelException x) {</TD></TR><TR CLASS="z"><TD CLASS="l">119</TD><TD> return null;</TD></TR><TR><TD CLASS="l">120</TD><TD> }</TD></TR><TR><TD CLASS="l">121</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">122</TD><TD> return null;</TD></TR><TR><TD CLASS="l">123</TD><TD> }</TD></TR><TR><TD CLASS="l">124</TD><TD> </TD></TR><TR><TD CLASS="l">125</TD><TD> /**</TD></TR><TR><TD CLASS="l">126</TD><TD> * Provides hover information for the given Java elements.</TD></TR><TR><TD CLASS="l">127</TD><TD> *</TD></TR><TR><TD CLASS="l">128</TD><TD> * @param javaElements the Java elements for which to provide hover information</TD></TR><TR><TD CLASS="l"><A NAME="5">129</A></TD><TD> * @return the hover information string</TD></TR><TR><TD CLASS="l">130</TD><TD> * </TD></TR><TR><TD CLASS="l">131</TD><TD> */</TD></TR><TR><TD CLASS="l">132</TD><TD> protected String getHoverInfo(IJavaScriptElement[] javaElements) {</TD></TR><TR CLASS="z"><TD CLASS="l">133</TD><TD> return null;</TD></TR><TR><TD CLASS="l">134</TD><TD> }</TD></TR><TR><TD CLASS="l">135</TD><TD> </TD></TR><TR><TD CLASS="l">136</TD><TD> /*</TD></TR><TR><TD CLASS="l"><A NAME="4">137</A></TD><TD> * @see ITextHoverExtension#getHoverControlCreator()</TD></TR><TR><TD CLASS="l">138</TD><TD> * </TD></TR><TR><TD CLASS="l"><A NAME="d">139</A></TD><TD> */</TD></TR><TR><TD CLASS="l">140</TD><TD> public IInformationControlCreator getHoverControlCreator() {</TD></TR><TR CLASS="z"><TD CLASS="l">141</TD><TD> return new IInformationControlCreator() {</TD></TR><TR><TD CLASS="l">142</TD><TD> public IInformationControl createInformationControl(Shell parent) {</TD></TR><TR CLASS="z"><TD CLASS="l">143</TD><TD> return new DefaultInformationControl(parent, SWT.NONE, new HTMLTextPresenter(true), EditorsUI.getTooltipAffordanceString());</TD></TR><TR><TD CLASS="l">144</TD><TD> }</TD></TR><TR><TD CLASS="l"><A NAME="8">145</A></TD><TD> };</TD></TR><TR><TD CLASS="l">146</TD><TD> }</TD></TR><TR><TD CLASS="l">147</TD><TD> </TD></TR><TR><TD CLASS="l">148</TD><TD> protected static String getStyleSheet() {</TD></TR><TR CLASS="z"><TD CLASS="l">149</TD><TD> if (fgStyleSheet == null)</TD></TR><TR CLASS="z"><TD CLASS="l">150</TD><TD> fgStyleSheet= loadStyleSheet();</TD></TR><TR CLASS="z"><TD CLASS="l">151</TD><TD> String css= fgStyleSheet;</TD></TR><TR CLASS="z"><TD CLASS="l">152</TD><TD> if (css != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">153</TD><TD> FontData fontData= JFaceResources.getFontRegistry().getFontData(PreferenceConstants.APPEARANCE_JAVADOC_FONT)[0];</TD></TR><TR CLASS="z"><TD CLASS="l">154</TD><TD> css= HTMLPrinter.convertTopLevelFont(css, fontData);</TD></TR><TR><TD CLASS="l">155</TD><TD> }</TD></TR><TR><TD CLASS="l">156</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="9">157</A></TD><TD> return css;</TD></TR><TR><TD CLASS="l">158</TD><TD> }</TD></TR><TR><TD CLASS="l">159</TD><TD> </TD></TR><TR><TD CLASS="l">160</TD><TD> private static String loadStyleSheet() {</TD></TR><TR CLASS="z"><TD CLASS="l">161</TD><TD> Bundle bundle= Platform.getBundle(JavaScriptPlugin.getPluginId());</TD></TR><TR CLASS="z"><TD CLASS="l">162</TD><TD> URL styleSheetURL= bundle.getEntry("/JavadocHoverStyleSheet.css"); //$NON-NLS-1$</TD></TR><TR CLASS="z"><TD CLASS="l">163</TD><TD> if (styleSheetURL != null) {</TD></TR><TR><TD CLASS="l">164</TD><TD> try {</TD></TR><TR CLASS="z"><TD CLASS="l">165</TD><TD> styleSheetURL= FileLocator.toFileURL(styleSheetURL);</TD></TR><TR CLASS="z"><TD CLASS="l">166</TD><TD> BufferedReader reader= new BufferedReader(new InputStreamReader(styleSheetURL.openStream()));</TD></TR><TR CLASS="z"><TD CLASS="l">167</TD><TD> StringBuffer buffer= new StringBuffer(200);</TD></TR><TR CLASS="z"><TD CLASS="l">168</TD><TD> String line= reader.readLine();</TD></TR><TR CLASS="z"><TD CLASS="l">169</TD><TD> while (line != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">170</TD><TD> buffer.append(line);</TD></TR><TR CLASS="z"><TD CLASS="l">171</TD><TD> buffer.append('\n');</TD></TR><TR CLASS="z"><TD CLASS="l">172</TD><TD> line= reader.readLine();</TD></TR><TR><TD CLASS="l">173</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">174</TD><TD> return buffer.toString();</TD></TR><TR CLASS="z"><TD CLASS="l">175</TD><TD> } catch (IOException ex) {</TD></TR><TR CLASS="z"><TD CLASS="l">176</TD><TD> JavaScriptPlugin.log(ex);</TD></TR><TR CLASS="z"><TD CLASS="l">177</TD><TD> return ""; //$NON-NLS-1$</TD></TR><TR><TD CLASS="l">178</TD><TD> }</TD></TR><TR><TD CLASS="l">179</TD><TD> }</TD></TR><TR CLASS="z"><TD CLASS="l">180</TD><TD> return null;</TD></TR><TR><TD CLASS="l">181</TD><TD> }</TD></TR><TR><TD CLASS="l">182</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="17b.html">org.eclipse.wst.jsdt.internal.ui.text.java.hover</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 |