Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/13d1.html')
-rw-r--r--tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/13d1.html1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/13d1.html b/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/13d1.html
deleted file mode 100644
index cca541eb..00000000
--- a/tests/org.eclipse.wst.xml.xpath2.processor.tests/coverageReport/_files/13d1.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="18c.html">org.eclipse.wst.jsdt.ui.actions</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">FindExceptionOccurrencesAction.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>FindExceptionOccurrencesAction.java</TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/8)</TD><TD CLASS="h">0%   (0/125)</TD><TD CLASS="h">0%   (0/32)</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">FindExceptionOccurrencesAction</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/8)</TD><TD CLASS="h">0%   (0/125)</TD><TD CLASS="h">0%   (0/32)</TD></TR><TR><TD CLASS="f"><A HREF="#1">FindExceptionOccurrencesAction (IWorkbenchSite): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/15)</TD><TD CLASS="h">0%   (0/5)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#0">FindExceptionOccurrencesAction (JavaEditor): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/16)</TD><TD CLASS="h">0%   (0/4)</TD></TR><TR><TD CLASS="f"><A HREF="#3">getEditorInput (JavaEditor): IJavaScriptElement</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/15)</TD><TD CLASS="h">0%   (0/4)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">getMember (IStructuredSelection): IMember</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><TD CLASS="f"><A HREF="#5">run (ITextSelection): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/36)</TD><TD CLASS="h">0%   (0/10)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#6">selectionChanged (IStructuredSelection): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/10)</TD><TD CLASS="h">0%   (0/2)</TD></TR><TR><TD CLASS="f"><A HREF="#7">selectionChanged (ITextSelection): 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 CLASS="o"><TD CLASS="f"><A HREF="#8">showMessage (Shell, JavaEditor, String): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/30)</TD><TD CLASS="h">0%   (0/5)</TD></TR></TABLE><P></P><TABLE CLASS="s" CELLSPACING="0" WIDTH="100%"><TR><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.ui.actions;</TD></TR><TR><TD CLASS="l">12</TD><TD> </TD></TR><TR><TD CLASS="l">13</TD><TD>import org.eclipse.jface.text.ITextSelection;</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.swt.widgets.Shell;</TD></TR><TR><TD CLASS="l">16</TD><TD>import org.eclipse.ui.IEditorInput;</TD></TR><TR><TD CLASS="l">17</TD><TD>import org.eclipse.ui.IWorkbenchSite;</TD></TR><TR><TD CLASS="l">18</TD><TD>import org.eclipse.ui.PlatformUI;</TD></TR><TR><TD CLASS="l">19</TD><TD>import org.eclipse.ui.texteditor.IEditorStatusLine;</TD></TR><TR><TD CLASS="l">20</TD><TD>import org.eclipse.wst.jsdt.core.IJavaScriptElement;</TD></TR><TR><TD CLASS="l">21</TD><TD>import org.eclipse.wst.jsdt.core.IMember;</TD></TR><TR><TD CLASS="l">22</TD><TD>import org.eclipse.wst.jsdt.core.JavaScriptModelException;</TD></TR><TR><TD CLASS="l">23</TD><TD>import org.eclipse.wst.jsdt.internal.ui.IJavaHelpContextIds;</TD></TR><TR><TD CLASS="l">24</TD><TD>import org.eclipse.wst.jsdt.internal.ui.JavaScriptPlugin;</TD></TR><TR><TD CLASS="l">25</TD><TD>import org.eclipse.wst.jsdt.internal.ui.actions.ActionMessages;</TD></TR><TR><TD CLASS="l">26</TD><TD>import org.eclipse.wst.jsdt.internal.ui.actions.ActionUtil;</TD></TR><TR><TD CLASS="l">27</TD><TD>import org.eclipse.wst.jsdt.internal.ui.javaeditor.IClassFileEditorInput;</TD></TR><TR><TD CLASS="l">28</TD><TD>import org.eclipse.wst.jsdt.internal.ui.javaeditor.JavaEditor;</TD></TR><TR><TD CLASS="l">29</TD><TD>import org.eclipse.wst.jsdt.internal.ui.search.ExceptionOccurrencesFinder;</TD></TR><TR><TD CLASS="l">30</TD><TD>import org.eclipse.wst.jsdt.internal.ui.search.FindOccurrencesEngine;</TD></TR><TR><TD CLASS="l">31</TD><TD> </TD></TR><TR><TD CLASS="l">32</TD><TD>/**</TD></TR><TR><TD CLASS="l">33</TD><TD> * Action to find all originators of a exception (e.g. method invocations, </TD></TR><TR><TD CLASS="l">34</TD><TD> * class casts, ...) for a given exception.</TD></TR><TR><TD CLASS="l">35</TD><TD> * &lt;p&gt; </TD></TR><TR><TD CLASS="l">36</TD><TD> * This class may be instantiated; it is not intended to be subclassed.</TD></TR><TR><TD CLASS="l">37</TD><TD> * &lt;/p&gt;</TD></TR><TR><TD CLASS="l">38</TD><TD> * </TD></TR><TR><TD CLASS="l">39</TD><TD> *</TD></TR><TR><TD CLASS="l">40</TD><TD> * Provisional API: This class/interface is part of an interim API that is still under development and expected to</TD></TR><TR><TD CLASS="l">41</TD><TD> * change significantly before reaching stability. It is being made available at this early stage to solicit feedback</TD></TR><TR><TD CLASS="l">42</TD><TD> * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken</TD></TR><TR><TD CLASS="l">43</TD><TD> * (repeatedly) as the API evolves.</TD></TR><TR><TD CLASS="l">44</TD><TD> */</TD></TR><TR><TD CLASS="l">45</TD><TD>public class FindExceptionOccurrencesAction extends SelectionDispatchAction {</TD></TR><TR><TD CLASS="l">46</TD><TD>        </TD></TR><TR><TD CLASS="l">47</TD><TD>        private JavaEditor fEditor;</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>         * Note: This constructor is for internal use only. Clients should not call this constructor.</TD></TR><TR><TD CLASS="l"><A NAME="0">51</A></TD><TD>         * </TD></TR><TR><TD CLASS="l">52</TD><TD>         * @param editor the JavaScript editor</TD></TR><TR><TD CLASS="l">53</TD><TD>         */</TD></TR><TR><TD CLASS="l">54</TD><TD>        public FindExceptionOccurrencesAction(JavaEditor editor) {</TD></TR><TR CLASS="z"><TD CLASS="l">55</TD><TD>                this(editor.getEditorSite());</TD></TR><TR CLASS="z"><TD CLASS="l">56</TD><TD>                fEditor= editor;</TD></TR><TR CLASS="z"><TD CLASS="l">57</TD><TD>                setEnabled(getEditorInput(editor) != null);</TD></TR><TR CLASS="z"><TD CLASS="l">58</TD><TD>        }</TD></TR><TR><TD CLASS="l">59</TD><TD>        </TD></TR><TR><TD CLASS="l">60</TD><TD>        /**</TD></TR><TR><TD CLASS="l">61</TD><TD>         * Creates a new &lt;code&gt;FindExceptionOccurrencesAction&lt;/code&gt;. The action </TD></TR><TR><TD CLASS="l">62</TD><TD>         * requires that the selection provided by the site's selection provider is of type </TD></TR><TR><TD CLASS="l">63</TD><TD>         * &lt;code&gt;IStructuredSelection&lt;/code&gt;.</TD></TR><TR><TD CLASS="l"><A NAME="1">64</A></TD><TD>         * </TD></TR><TR><TD CLASS="l">65</TD><TD>         * @param site the site providing context information for this action</TD></TR><TR><TD CLASS="l">66</TD><TD>         */</TD></TR><TR><TD CLASS="l">67</TD><TD>        public FindExceptionOccurrencesAction(IWorkbenchSite site) {</TD></TR><TR CLASS="z"><TD CLASS="l">68</TD><TD>                super(site);</TD></TR><TR CLASS="z"><TD CLASS="l">69</TD><TD>                setText(ActionMessages.FindExceptionOccurrences_text); </TD></TR><TR CLASS="z"><TD CLASS="l">70</TD><TD>                setToolTipText(ActionMessages.FindExceptionOccurrences_toolTip); </TD></TR><TR CLASS="z"><TD CLASS="l">71</TD><TD>                PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.FIND_EXCEPTION_OCCURRENCES);</TD></TR><TR CLASS="z"><TD CLASS="l">72</TD><TD>        }</TD></TR><TR><TD CLASS="l">73</TD><TD>        </TD></TR><TR><TD CLASS="l">74</TD><TD>        //---- Text Selection ----------------------------------------------------------------------</TD></TR><TR><TD CLASS="l">75</TD><TD>        </TD></TR><TR><TD CLASS="l"><A NAME="7">76</A></TD><TD>        /**</TD></TR><TR><TD CLASS="l">77</TD><TD>         * {@inheritDoc}</TD></TR><TR><TD CLASS="l">78</TD><TD>         */</TD></TR><TR><TD CLASS="l">79</TD><TD>        public void selectionChanged(ITextSelection selection) {</TD></TR><TR CLASS="z"><TD CLASS="l">80</TD><TD>        }</TD></TR><TR><TD CLASS="l">81</TD><TD>        </TD></TR><TR><TD CLASS="l">82</TD><TD>        /**</TD></TR><TR><TD CLASS="l">83</TD><TD>         * {@inheritDoc}</TD></TR><TR><TD CLASS="l"><A NAME="6">84</A></TD><TD>         * </TD></TR><TR><TD CLASS="l">85</TD><TD>         * </TD></TR><TR><TD CLASS="l">86</TD><TD>         */</TD></TR><TR><TD CLASS="l">87</TD><TD>        public void selectionChanged(IStructuredSelection selection) {</TD></TR><TR CLASS="z"><TD CLASS="l">88</TD><TD>                setEnabled(getMember(selection) != null);</TD></TR><TR CLASS="z"><TD CLASS="l">89</TD><TD>        }</TD></TR><TR><TD CLASS="l">90</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="5">91</A></TD><TD>        /* (non-JavaDoc)</TD></TR><TR><TD CLASS="l">92</TD><TD>         * Method declared in SelectionDispatchAction.</TD></TR><TR><TD CLASS="l">93</TD><TD>         */</TD></TR><TR><TD CLASS="l">94</TD><TD>        public final void run(ITextSelection ts) {</TD></TR><TR CLASS="z"><TD CLASS="l">95</TD><TD>                IJavaScriptElement input= getEditorInput(fEditor);</TD></TR><TR CLASS="z"><TD CLASS="l">96</TD><TD>                if (!ActionUtil.isProcessable(getShell(), input))</TD></TR><TR CLASS="z"><TD CLASS="l">97</TD><TD>                        return;</TD></TR><TR CLASS="z"><TD CLASS="l">98</TD><TD>                FindOccurrencesEngine engine= FindOccurrencesEngine.create(input, new ExceptionOccurrencesFinder());</TD></TR><TR><TD CLASS="l">99</TD><TD>                try {</TD></TR><TR CLASS="z"><TD CLASS="l">100</TD><TD>                        String result= engine.run(ts.getOffset(), ts.getLength());</TD></TR><TR CLASS="z"><TD CLASS="l">101</TD><TD>                        if (result != null)</TD></TR><TR CLASS="z"><TD CLASS="l">102</TD><TD>                                showMessage(getShell(), fEditor, result);</TD></TR><TR CLASS="z"><TD CLASS="l">103</TD><TD>                } catch (JavaScriptModelException e) {</TD></TR><TR CLASS="z"><TD CLASS="l">104</TD><TD>                        JavaScriptPlugin.log(e);</TD></TR><TR><TD CLASS="l"><A NAME="3">105</A></TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">106</TD><TD>        }</TD></TR><TR><TD CLASS="l">107</TD><TD> </TD></TR><TR><TD CLASS="l">108</TD><TD>        private static IJavaScriptElement getEditorInput(JavaEditor editor) {</TD></TR><TR CLASS="z"><TD CLASS="l">109</TD><TD>                IEditorInput input= editor.getEditorInput();</TD></TR><TR CLASS="z"><TD CLASS="l">110</TD><TD>                if (input instanceof IClassFileEditorInput)</TD></TR><TR CLASS="z"><TD CLASS="l">111</TD><TD>                        return ((IClassFileEditorInput)input).getClassFile();</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="8">112</A></TD><TD>                return  JavaScriptPlugin.getDefault().getWorkingCopyManager().getWorkingCopy(input);</TD></TR><TR><TD CLASS="l">113</TD><TD>        } </TD></TR><TR><TD CLASS="l">114</TD><TD>                </TD></TR><TR><TD CLASS="l">115</TD><TD>        private static void showMessage(Shell shell, JavaEditor editor, String msg) {</TD></TR><TR CLASS="z"><TD CLASS="l">116</TD><TD>                IEditorStatusLine statusLine= (IEditorStatusLine) editor.getAdapter(IEditorStatusLine.class);</TD></TR><TR CLASS="z"><TD CLASS="l">117</TD><TD>                if (statusLine != null) </TD></TR><TR CLASS="z"><TD CLASS="l">118</TD><TD>                        statusLine.setMessage(true, msg, null); </TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="4">119</A></TD><TD>                shell.getDisplay().beep();</TD></TR><TR CLASS="z"><TD CLASS="l">120</TD><TD>        }</TD></TR><TR><TD CLASS="l">121</TD><TD>        </TD></TR><TR><TD CLASS="l">122</TD><TD>        private IMember getMember(IStructuredSelection selection) {</TD></TR><TR CLASS="z"><TD CLASS="l">123</TD><TD>                return null;</TD></TR><TR><TD CLASS="l">124</TD><TD>        }</TD></TR><TR><TD CLASS="l">125</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="18c.html">org.eclipse.wst.jsdt.ui.actions</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

Back to the top