blob: ad225b860f9706ad45cd06dfde6b274f758f9713 [file] [log] [blame]
<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 Fri Feb 20 18:44:54 GMT 2009)</TH></TR><TR><TD CLASS="nv">[<A HREF="../xslUnitTestCoverage.html">all classes</A>][<A HREF="a.html">org.eclipse.wst.sse.ui.internal.actions</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">ActionContributor.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>ActionContributor.java</TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/17)</TD><TD CLASS="h">0%   (0/441)</TD><TD CLASS="h">0%   (0/113)</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">ActionContributor</A></TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/17)</TD><TD CLASS="h">0%   (0/441)</TD><TD CLASS="h">0%   (0/113)</TD></TR><TR><TD CLASS="f"><A HREF="#0">&lt;static initializer&gt;</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/21)</TD><TD CLASS="h">0%   (0/3)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#2">ActionContributor (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/271)</TD><TD CLASS="h">0%   (0/60)</TD></TR><TR><TD CLASS="f"><A HREF="#3">addToMenu (IMenuManager): 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="#4">addToPopupMenu (IMenuManager): 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="#5">addToStatusLine (IStatusLineManager): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/7)</TD><TD CLASS="h">0%   (0/3)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#6">addToToolBar (IToolBarManager): 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="#7">contributeToMenu (IMenuManager): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/11)</TD><TD CLASS="h">0%   (0/4)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#8">contributeToPopupMenu (IMenuManager): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/8)</TD><TD CLASS="h">0%   (0/3)</TD></TR><TR><TD CLASS="f"><A HREF="#9">contributeToStatusLine (IStatusLineManager): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/14)</TD><TD CLASS="h">0%   (0/5)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#a">contributeToToolBar (IToolBarManager): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/11)</TD><TD CLASS="h">0%   (0/4)</TD></TR><TR><TD CLASS="f"><A HREF="#b">dispose (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/12)</TD><TD CLASS="h">0%   (0/5)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#c">getExtensionIDs (): 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><TD CLASS="f"><A HREF="#d">getTextEditor (IEditorPart): ITextEditor</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/33)</TD><TD CLASS="h">0%   (0/6)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#e">init (IActionBars, IWorkbenchPage): 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><TR><TD CLASS="f"><A HREF="#f">setActiveEditor (IEditorPart): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/35)</TD><TD CLASS="h">0%   (0/10)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#10">setViewerSpecificContributionsEnabled (boolean): 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="#11">updateToolbarActions (): void</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/7)</TD><TD CLASS="h">0%   (0/3)</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) 2001, 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> *     Jens Lukowski/Innoopract - initial renaming/restructuring</TD></TR><TR><TD CLASS="l">11</TD><TD> *     David Carver/STAR - [212330] can't contribute to the XML or any SSE based menu</TD></TR><TR><TD CLASS="l">12</TD><TD> *     </TD></TR><TR><TD CLASS="l">13</TD><TD> *******************************************************************************/</TD></TR><TR><TD CLASS="l">14</TD><TD>package org.eclipse.wst.sse.ui.internal.actions;</TD></TR><TR><TD CLASS="l">15</TD><TD> </TD></TR><TR><TD CLASS="l">16</TD><TD>//import java.util.ResourceBundle;</TD></TR><TR><TD CLASS="l">17</TD><TD> </TD></TR><TR><TD CLASS="l">18</TD><TD>import java.util.ResourceBundle;</TD></TR><TR><TD CLASS="l">19</TD><TD> </TD></TR><TR><TD CLASS="l">20</TD><TD>import org.eclipse.core.runtime.Platform;</TD></TR><TR><TD CLASS="l">21</TD><TD>import org.eclipse.jface.action.GroupMarker;</TD></TR><TR><TD CLASS="l">22</TD><TD>import org.eclipse.jface.action.IAction;</TD></TR><TR><TD CLASS="l">23</TD><TD>import org.eclipse.jface.action.IMenuManager;</TD></TR><TR><TD CLASS="l">24</TD><TD>import org.eclipse.jface.action.IStatusLineManager;</TD></TR><TR><TD CLASS="l">25</TD><TD>import org.eclipse.jface.action.IToolBarManager;</TD></TR><TR><TD CLASS="l">26</TD><TD>import org.eclipse.jface.action.MenuManager;</TD></TR><TR><TD CLASS="l">27</TD><TD>import org.eclipse.jface.action.Separator;</TD></TR><TR><TD CLASS="l">28</TD><TD>import org.eclipse.ui.IActionBars;</TD></TR><TR><TD CLASS="l">29</TD><TD>import org.eclipse.ui.IEditorPart;</TD></TR><TR><TD CLASS="l">30</TD><TD>import org.eclipse.ui.IWorkbenchPage;</TD></TR><TR><TD CLASS="l">31</TD><TD>import org.eclipse.ui.editors.text.TextEditorActionContributor;</TD></TR><TR><TD CLASS="l">32</TD><TD>import org.eclipse.ui.texteditor.ITextEditor;</TD></TR><TR><TD CLASS="l">33</TD><TD>import org.eclipse.ui.texteditor.ITextEditorActionConstants;</TD></TR><TR><TD CLASS="l">34</TD><TD>import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;</TD></TR><TR><TD CLASS="l">35</TD><TD>import org.eclipse.ui.texteditor.ITextEditorExtension;</TD></TR><TR><TD CLASS="l">36</TD><TD>import org.eclipse.ui.texteditor.RetargetTextEditorAction;</TD></TR><TR><TD CLASS="l">37</TD><TD>import org.eclipse.wst.sse.ui.internal.ExtendedEditorActionBuilder;</TD></TR><TR><TD CLASS="l">38</TD><TD>import org.eclipse.wst.sse.ui.internal.GotoAnnotationAction;</TD></TR><TR><TD CLASS="l">39</TD><TD>import org.eclipse.wst.sse.ui.internal.IExtendedContributor;</TD></TR><TR><TD CLASS="l">40</TD><TD>import org.eclipse.wst.sse.ui.internal.ISourceViewerActionBarContributor;</TD></TR><TR><TD CLASS="l">41</TD><TD>import org.eclipse.wst.sse.ui.internal.SSEUIMessages;</TD></TR><TR><TD CLASS="l">42</TD><TD>import org.eclipse.wst.sse.ui.internal.ui.OffsetStatusLineContributionItem;</TD></TR><TR><TD CLASS="l">43</TD><TD> </TD></TR><TR><TD CLASS="l">44</TD><TD>/**</TD></TR><TR><TD CLASS="l">45</TD><TD> * This class should not be used inside multi page editor's</TD></TR><TR><TD CLASS="l">46</TD><TD> * ActionBarContributor, since cascaded init() call from the</TD></TR><TR><TD CLASS="l">47</TD><TD> * ActionBarContributor will causes exception and it leads to lose whole</TD></TR><TR><TD CLASS="l">48</TD><TD> * toolbars.</TD></TR><TR><TD CLASS="l">49</TD><TD> * </TD></TR><TR><TD CLASS="l">50</TD><TD> * Instead, use SourcePageActionContributor for source page contributor of</TD></TR><TR><TD CLASS="l">51</TD><TD> * multi page editor.</TD></TR><TR><TD CLASS="l">52</TD><TD> * </TD></TR><TR><TD CLASS="l"><A NAME="0">53</A></TD><TD> * Note that this class is still valid for single page editor</TD></TR><TR><TD CLASS="l">54</TD><TD> */</TD></TR><TR CLASS="z"><TD CLASS="l">55</TD><TD>public class ActionContributor extends TextEditorActionContributor implements ISourceViewerActionBarContributor, IExtendedContributor {</TD></TR><TR><TD CLASS="l">56</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">57</TD><TD>        public static final boolean _showDebugStatus = &#34;true&#34;.equalsIgnoreCase(Platform.getDebugOption(&#34;org.eclipse.wst.sse.ui/actioncontributor/debugstatusfields&#34;)) || Platform.inDebugMode() || Platform.inDevelopmentMode(); //$NON-NLS-1$ //$NON-NLS-2$</TD></TR><TR><TD CLASS="l">58</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">59</TD><TD>        private static final String[] EDITOR_IDS = {&#34;org.eclipse.wst.sse.ui.StructuredTextEditor&#34;}; //$NON-NLS-1$</TD></TR><TR><TD CLASS="l">60</TD><TD> </TD></TR><TR><TD CLASS="l">61</TD><TD>        protected IExtendedContributor extendedContributor;</TD></TR><TR CLASS="z"><TD CLASS="l">62</TD><TD>        protected RetargetTextEditorAction fAddBlockComment = null;</TD></TR><TR><TD CLASS="l">63</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">64</TD><TD>        protected Separator fCommandsSeparator = null;</TD></TR><TR><TD CLASS="l">65</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">66</TD><TD>        private OffsetStatusLineContributionItem fDebugStatusOffset = null;</TD></TR><TR CLASS="z"><TD CLASS="l">67</TD><TD>        protected MenuManager fExpandSelectionToMenu = null;</TD></TR><TR CLASS="z"><TD CLASS="l">68</TD><TD>        protected GroupMarker fMenuAdditionsGroupMarker = null;</TD></TR><TR CLASS="z"><TD CLASS="l">69</TD><TD>        protected GotoAnnotationAction fNextAnnotation = null;</TD></TR><TR><TD CLASS="l">70</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">71</TD><TD>        protected GotoAnnotationAction fPreviousAnnotation = null;</TD></TR><TR CLASS="z"><TD CLASS="l">72</TD><TD>        protected RetargetTextEditorAction fRemoveBlockComment = null;</TD></TR><TR CLASS="z"><TD CLASS="l">73</TD><TD>        protected RetargetTextEditorAction fShiftLeft = null;</TD></TR><TR CLASS="z"><TD CLASS="l">74</TD><TD>        protected RetargetTextEditorAction fShiftRight = null;</TD></TR><TR CLASS="z"><TD CLASS="l">75</TD><TD>        protected RetargetTextEditorAction fStructureSelectEnclosingAction = null;</TD></TR><TR CLASS="z"><TD CLASS="l">76</TD><TD>        protected RetargetTextEditorAction fStructureSelectHistoryAction = null;</TD></TR><TR CLASS="z"><TD CLASS="l">77</TD><TD>        protected RetargetTextEditorAction fStructureSelectNextAction = null;</TD></TR><TR CLASS="z"><TD CLASS="l">78</TD><TD>        protected RetargetTextEditorAction fStructureSelectPreviousAction = null;</TD></TR><TR><TD CLASS="l">79</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">80</TD><TD>        protected RetargetTextEditorAction fToggleComment = null;</TD></TR><TR><TD CLASS="l">81</TD><TD>        protected RetargetTextEditorAction fToggleInsertModeAction;</TD></TR><TR CLASS="z"><TD CLASS="l">82</TD><TD>        protected GroupMarker fToolbarAdditionsGroupMarker = null;</TD></TR><TR CLASS="z"><TD CLASS="l">83</TD><TD>        protected Separator fToolbarSeparator = null;</TD></TR><TR><TD CLASS="l"><A NAME="2">84</A></TD><TD>        </TD></TR><TR CLASS="z"><TD CLASS="l">85</TD><TD>        protected RetargetTextEditorAction fGotoMatchingBracketAction = null;</TD></TR><TR><TD CLASS="l">86</TD><TD> </TD></TR><TR><TD CLASS="l">87</TD><TD>        public ActionContributor() {</TD></TR><TR CLASS="z"><TD CLASS="l">88</TD><TD>                super();</TD></TR><TR><TD CLASS="l">89</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">90</TD><TD>                ResourceBundle resourceBundle = SSEUIMessages.getResourceBundle();</TD></TR><TR><TD CLASS="l">91</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">92</TD><TD>                fCommandsSeparator = new Separator();</TD></TR><TR><TD CLASS="l">93</TD><TD> </TD></TR><TR><TD CLASS="l">94</TD><TD>                // edit commands</TD></TR><TR CLASS="z"><TD CLASS="l">95</TD><TD>                fStructureSelectEnclosingAction = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_STRUCTURE_SELECT_ENCLOSING + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">96</TD><TD>                fStructureSelectEnclosingAction.setActionDefinitionId(ActionDefinitionIds.STRUCTURE_SELECT_ENCLOSING);</TD></TR><TR><TD CLASS="l">97</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">98</TD><TD>                fStructureSelectNextAction = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_STRUCTURE_SELECT_NEXT + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">99</TD><TD>                fStructureSelectNextAction.setActionDefinitionId(ActionDefinitionIds.STRUCTURE_SELECT_NEXT);</TD></TR><TR><TD CLASS="l">100</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">101</TD><TD>                fStructureSelectPreviousAction = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_STRUCTURE_SELECT_PREVIOUS + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">102</TD><TD>                fStructureSelectPreviousAction.setActionDefinitionId(ActionDefinitionIds.STRUCTURE_SELECT_PREVIOUS);</TD></TR><TR><TD CLASS="l">103</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">104</TD><TD>                fStructureSelectHistoryAction = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_STRUCTURE_SELECT_HISTORY + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">105</TD><TD>                fStructureSelectHistoryAction.setActionDefinitionId(ActionDefinitionIds.STRUCTURE_SELECT_HISTORY);</TD></TR><TR><TD CLASS="l">106</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">107</TD><TD>                fExpandSelectionToMenu = new MenuManager(SSEUIMessages.ExpandSelectionToMenu_label); //$NON-NLS-1$</TD></TR><TR CLASS="z"><TD CLASS="l">108</TD><TD>                fExpandSelectionToMenu.add(fStructureSelectEnclosingAction);</TD></TR><TR CLASS="z"><TD CLASS="l">109</TD><TD>                fExpandSelectionToMenu.add(fStructureSelectNextAction);</TD></TR><TR CLASS="z"><TD CLASS="l">110</TD><TD>                fExpandSelectionToMenu.add(fStructureSelectPreviousAction);</TD></TR><TR CLASS="z"><TD CLASS="l">111</TD><TD>                fExpandSelectionToMenu.add(fStructureSelectHistoryAction);</TD></TR><TR><TD CLASS="l">112</TD><TD> </TD></TR><TR><TD CLASS="l">113</TD><TD>                // source commands</TD></TR><TR CLASS="z"><TD CLASS="l">114</TD><TD>                fShiftRight = new RetargetTextEditorAction(resourceBundle, ITextEditorActionConstants.SHIFT_RIGHT + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">115</TD><TD>                fShiftRight.setActionDefinitionId(ITextEditorActionDefinitionIds.SHIFT_RIGHT);</TD></TR><TR><TD CLASS="l">116</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">117</TD><TD>                fShiftLeft = new RetargetTextEditorAction(resourceBundle, ITextEditorActionConstants.SHIFT_LEFT + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">118</TD><TD>                fShiftLeft.setActionDefinitionId(ITextEditorActionDefinitionIds.SHIFT_LEFT);</TD></TR><TR><TD CLASS="l">119</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">120</TD><TD>                fToggleComment = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_TOGGLE_COMMENT + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">121</TD><TD>                fToggleComment.setActionDefinitionId(ActionDefinitionIds.TOGGLE_COMMENT);</TD></TR><TR><TD CLASS="l">122</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">123</TD><TD>                fAddBlockComment = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_ADD_BLOCK_COMMENT + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">124</TD><TD>                fAddBlockComment.setActionDefinitionId(ActionDefinitionIds.ADD_BLOCK_COMMENT);</TD></TR><TR><TD CLASS="l">125</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">126</TD><TD>                fRemoveBlockComment = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_REMOVE_BLOCK_COMMENT + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">127</TD><TD>                fRemoveBlockComment.setActionDefinitionId(ActionDefinitionIds.REMOVE_BLOCK_COMMENT);</TD></TR><TR><TD CLASS="l">128</TD><TD> </TD></TR><TR><TD CLASS="l">129</TD><TD>                // goto prev/next error</TD></TR><TR><TD CLASS="l">130</TD><TD>                // CMVC 249017 for JavaEditor consistancy</TD></TR><TR CLASS="z"><TD CLASS="l">131</TD><TD>                fPreviousAnnotation = new GotoAnnotationAction(&#34;Previous_annotation&#34;, false); //$NON-NLS-1$</TD></TR><TR CLASS="z"><TD CLASS="l">132</TD><TD>                fPreviousAnnotation.setActionDefinitionId(&#34;org.eclipse.ui.navigate.previous&#34;); //$NON-NLS-1$</TD></TR><TR><TD CLASS="l">133</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">134</TD><TD>                fNextAnnotation = new GotoAnnotationAction(&#34;Next_annotation&#34;, true); //$NON-NLS-1$</TD></TR><TR CLASS="z"><TD CLASS="l">135</TD><TD>                fNextAnnotation.setActionDefinitionId(&#34;org.eclipse.ui.navigate.next&#34;); //$NON-NLS-1$</TD></TR><TR><TD CLASS="l">136</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">137</TD><TD>                fGotoMatchingBracketAction = new RetargetTextEditorAction(resourceBundle, StructuredTextEditorActionConstants.ACTION_NAME_GOTO_MATCHING_BRACKET + StructuredTextEditorActionConstants.UNDERSCORE);</TD></TR><TR CLASS="z"><TD CLASS="l">138</TD><TD>                fGotoMatchingBracketAction.setActionDefinitionId(ActionDefinitionIds.GOTO_MATCHING_BRACKET);</TD></TR><TR><TD CLASS="l">139</TD><TD> </TD></TR><TR><TD CLASS="l">140</TD><TD>                // Read action extensions.</TD></TR><TR CLASS="z"><TD CLASS="l">141</TD><TD>                ExtendedEditorActionBuilder builder = new ExtendedEditorActionBuilder();</TD></TR><TR CLASS="z"><TD CLASS="l">142</TD><TD>                extendedContributor = builder.readActionExtensions(getExtensionIDs());</TD></TR><TR><TD CLASS="l">143</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">144</TD><TD>                fMenuAdditionsGroupMarker = new GroupMarker(StructuredTextEditorActionConstants.GROUP_NAME_MENU_ADDITIONS);</TD></TR><TR CLASS="z"><TD CLASS="l">145</TD><TD>                fToolbarSeparator = new Separator();</TD></TR><TR CLASS="z"><TD CLASS="l">146</TD><TD>                fToolbarAdditionsGroupMarker = new GroupMarker(StructuredTextEditorActionConstants.GROUP_NAME_TOOLBAR_ADDITIONS);</TD></TR><TR><TD CLASS="l">147</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">148</TD><TD>                fToggleInsertModeAction = new RetargetTextEditorAction(resourceBundle, &#34;Editor.ToggleInsertMode.&#34;, IAction.AS_CHECK_BOX); //$NON-NLS-1$</TD></TR><TR CLASS="z"><TD CLASS="l">149</TD><TD>                fToggleInsertModeAction.setActionDefinitionId(ITextEditorActionDefinitionIds.TOGGLE_INSERT_MODE);</TD></TR><TR><TD CLASS="l">150</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">151</TD><TD>                if (_showDebugStatus) {</TD></TR><TR CLASS="z"><TD CLASS="l">152</TD><TD>                        fDebugStatusOffset = new OffsetStatusLineContributionItem(StructuredTextEditorActionConstants.STATUS_CATEGORY_OFFSET, true, 20);</TD></TR><TR><TD CLASS="l">153</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">154</TD><TD>        }</TD></TR><TR><TD CLASS="l">155</TD><TD> </TD></TR><TR><TD CLASS="l">156</TD><TD>        protected void addToMenu(IMenuManager menu) {</TD></TR><TR><TD CLASS="l">157</TD><TD>                // edit commands</TD></TR><TR><TD CLASS="l">158</TD><TD>/*                IMenuManager editMenu = menu.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);</TD></TR><TR><TD CLASS="l">159</TD><TD>                if (editMenu != null) {</TD></TR><TR><TD CLASS="l">160</TD><TD>                        editMenu.add(fCommandsSeparator);</TD></TR><TR><TD CLASS="l">161</TD><TD>                        editMenu.add(fToggleInsertModeAction);</TD></TR><TR><TD CLASS="l">162</TD><TD>                        editMenu.add(fCommandsSeparator);</TD></TR><TR><TD CLASS="l">163</TD><TD>                        editMenu.add(fExpandSelectionToMenu);</TD></TR><TR><TD CLASS="l">164</TD><TD>                        editMenu.add(fCommandsSeparator);</TD></TR><TR><TD CLASS="l">165</TD><TD>                        editMenu.add(fMenuAdditionsGroupMarker);</TD></TR><TR><TD CLASS="l">166</TD><TD>                }</TD></TR><TR><TD CLASS="l">167</TD><TD> </TD></TR><TR><TD CLASS="l">168</TD><TD>                // source commands</TD></TR><TR><TD CLASS="l">169</TD><TD>                String sourceMenuLabel = SSEUIMessages.SourceMenu_label; //$NON-NLS-1$</TD></TR><TR><TD CLASS="l">170</TD><TD>                String sourceMenuId = &#34;sourceMenuId&#34;; // This is just a menu id. No //$NON-NLS-1$</TD></TR><TR><TD CLASS="l">171</TD><TD>                // need to translate.</TD></TR><TR><TD CLASS="l">172</TD><TD>                // //$NON-NLS-1$</TD></TR><TR><TD CLASS="l">173</TD><TD>                IMenuManager sourceMenu = new MenuManager(sourceMenuLabel, sourceMenuId);</TD></TR><TR><TD CLASS="l">174</TD><TD>                menu.insertAfter(IWorkbenchActionConstants.M_EDIT, sourceMenu);</TD></TR><TR><TD CLASS="l">175</TD><TD>                if (sourceMenu != null) {</TD></TR><TR><TD CLASS="l">176</TD><TD>                        sourceMenu.add(fCommandsSeparator);</TD></TR><TR><TD CLASS="l">177</TD><TD>                        sourceMenu.add(fToggleComment);</TD></TR><TR><TD CLASS="l">178</TD><TD>                        sourceMenu.add(fAddBlockComment);</TD></TR><TR><TD CLASS="l">179</TD><TD>                        sourceMenu.add(fRemoveBlockComment);</TD></TR><TR><TD CLASS="l">180</TD><TD>                        sourceMenu.add(fShiftRight);</TD></TR><TR><TD CLASS="l">181</TD><TD>                        sourceMenu.add(fShiftLeft);</TD></TR><TR><TD CLASS="l">182</TD><TD>                }</TD></TR><TR><TD CLASS="l">183</TD><TD>                </TD></TR><TR><TD CLASS="l">184</TD><TD>                IMenuManager gotoMenu = menu.findMenuUsingPath(IWorkbenchActionConstants.GO_TO);</TD></TR><TR><TD CLASS="l"><A NAME="3">185</A></TD><TD>                if (gotoMenu != null) {</TD></TR><TR><TD CLASS="l">186</TD><TD>                        gotoMenu.add(fGotoMatchingBracketAction);</TD></TR><TR><TD CLASS="l">187</TD><TD>                }</TD></TR><TR><TD CLASS="l">188</TD><TD>*/</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="4">189</A></TD><TD>        }</TD></TR><TR><TD CLASS="l">190</TD><TD> </TD></TR><TR><TD CLASS="l">191</TD><TD>        protected void addToPopupMenu(IMenuManager menu) {</TD></TR><TR><TD CLASS="l"><A NAME="5">192</A></TD><TD>                // add nothing</TD></TR><TR CLASS="z"><TD CLASS="l">193</TD><TD>        }</TD></TR><TR><TD CLASS="l">194</TD><TD> </TD></TR><TR><TD CLASS="l">195</TD><TD>        protected void addToStatusLine(IStatusLineManager manager) {</TD></TR><TR CLASS="z"><TD CLASS="l">196</TD><TD>                if (_showDebugStatus) {</TD></TR><TR CLASS="z"><TD CLASS="l">197</TD><TD>                        manager.add(fDebugStatusOffset);</TD></TR><TR><TD CLASS="l">198</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">199</TD><TD>        }</TD></TR><TR><TD CLASS="l"><A NAME="6">200</A></TD><TD> </TD></TR><TR><TD CLASS="l">201</TD><TD>        protected void addToToolBar(IToolBarManager toolBarManager) {</TD></TR><TR><TD CLASS="l">202</TD><TD>/*                toolBarManager.add(fToolbarSeparator);</TD></TR><TR><TD CLASS="l">203</TD><TD>                toolBarManager.add(fToolbarAdditionsGroupMarker);</TD></TR><TR CLASS="z"><TD CLASS="l">204</TD><TD>*/        }</TD></TR><TR><TD CLASS="l">205</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="7">206</A></TD><TD>        /**</TD></TR><TR><TD CLASS="l">207</TD><TD>         * @see org.eclipse.ui.part.EditorActionBarContributor#contributeToMenu(IMenuManager)</TD></TR><TR><TD CLASS="l">208</TD><TD>         */</TD></TR><TR><TD CLASS="l">209</TD><TD>        public void contributeToMenu(IMenuManager menu) {</TD></TR><TR CLASS="z"><TD CLASS="l">210</TD><TD>                super.contributeToMenu(menu);</TD></TR><TR><TD CLASS="l">211</TD><TD>/*</TD></TR><TR><TD CLASS="l">212</TD><TD>                addToMenu(menu);</TD></TR><TR><TD CLASS="l">213</TD><TD>*/</TD></TR><TR CLASS="z"><TD CLASS="l">214</TD><TD>                if (extendedContributor != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">215</TD><TD>                        extendedContributor.contributeToMenu(menu);</TD></TR><TR><TD CLASS="l">216</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">217</TD><TD>        }</TD></TR><TR><TD CLASS="l">218</TD><TD> </TD></TR><TR><TD CLASS="l">219</TD><TD>        /*</TD></TR><TR><TD CLASS="l">220</TD><TD>         * (non-Javadoc)</TD></TR><TR><TD CLASS="l">221</TD><TD>         * </TD></TR><TR><TD CLASS="l">222</TD><TD>         * @see org.eclipse.wst.sse.ui.extension.IPopupMenuContributor#contributeToPopupMenu(org.eclipse.jface.action.IMenuManager)</TD></TR><TR><TD CLASS="l">223</TD><TD>         */</TD></TR><TR><TD CLASS="l"><A NAME="8">224</A></TD><TD>        public void contributeToPopupMenu(IMenuManager menu) {</TD></TR><TR><TD CLASS="l">225</TD><TD>/*</TD></TR><TR><TD CLASS="l">226</TD><TD>                addToPopupMenu(menu);</TD></TR><TR><TD CLASS="l">227</TD><TD>*/</TD></TR><TR CLASS="z"><TD CLASS="l">228</TD><TD>                if (extendedContributor != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">229</TD><TD>                        extendedContributor.contributeToPopupMenu(menu);</TD></TR><TR><TD CLASS="l">230</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">231</TD><TD>        }</TD></TR><TR><TD CLASS="l">232</TD><TD> </TD></TR><TR><TD CLASS="l">233</TD><TD>        /*</TD></TR><TR><TD CLASS="l">234</TD><TD>         * (non-Javadoc)</TD></TR><TR><TD CLASS="l"><A NAME="9">235</A></TD><TD>         * </TD></TR><TR><TD CLASS="l">236</TD><TD>         * @see org.eclipse.ui.part.EditorActionBarContributor#contributeToStatusLine(org.eclipse.jface.action.IStatusLineManager)</TD></TR><TR><TD CLASS="l">237</TD><TD>         */</TD></TR><TR><TD CLASS="l">238</TD><TD>        public void contributeToStatusLine(IStatusLineManager manager) {</TD></TR><TR CLASS="z"><TD CLASS="l">239</TD><TD>                super.contributeToStatusLine(manager);</TD></TR><TR><TD CLASS="l">240</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">241</TD><TD>                addToStatusLine(manager);</TD></TR><TR><TD CLASS="l">242</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">243</TD><TD>                if (extendedContributor != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">244</TD><TD>                        extendedContributor.contributeToStatusLine(manager);</TD></TR><TR><TD CLASS="l">245</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">246</TD><TD>        }</TD></TR><TR><TD CLASS="l">247</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="a">248</A></TD><TD>        /**</TD></TR><TR><TD CLASS="l">249</TD><TD>         * @see org.eclipse.ui.part.EditorActionBarContributor#contributeToToolBar(IToolBarManager)</TD></TR><TR><TD CLASS="l">250</TD><TD>         */</TD></TR><TR><TD CLASS="l">251</TD><TD>        public void contributeToToolBar(IToolBarManager toolBarManager) {</TD></TR><TR CLASS="z"><TD CLASS="l">252</TD><TD>                super.contributeToToolBar(toolBarManager);</TD></TR><TR><TD CLASS="l">253</TD><TD> </TD></TR><TR><TD CLASS="l">254</TD><TD>/*                addToToolBar(toolBarManager);</TD></TR><TR><TD CLASS="l">255</TD><TD>*/</TD></TR><TR CLASS="z"><TD CLASS="l">256</TD><TD>                if (extendedContributor != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">257</TD><TD>                        extendedContributor.contributeToToolBar(toolBarManager);</TD></TR><TR><TD CLASS="l">258</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">259</TD><TD>        }</TD></TR><TR><TD CLASS="l">260</TD><TD> </TD></TR><TR><TD CLASS="l">261</TD><TD>        /**</TD></TR><TR><TD CLASS="l">262</TD><TD>         * @see org.eclipse.ui.part.EditorActionBarContributor#dispose()</TD></TR><TR><TD CLASS="l">263</TD><TD>         */</TD></TR><TR><TD CLASS="l">264</TD><TD>        public void dispose() {</TD></TR><TR><TD CLASS="l">265</TD><TD>                // need to call setActiveEditor before super.dispose because in both</TD></TR><TR><TD CLASS="l">266</TD><TD>                // setActiveEditor &amp; super.setActiveEditor if getEditorPart ==</TD></TR><TR><TD CLASS="l"><A NAME="b">267</A></TD><TD>                // activeEditor,</TD></TR><TR><TD CLASS="l">268</TD><TD>                // the method is just returned. so to get both methods to run,</TD></TR><TR><TD CLASS="l">269</TD><TD>                // setActiveEditor</TD></TR><TR><TD CLASS="l">270</TD><TD>                // needs to be called so that it correctly calls super.setActiveEditor</TD></TR><TR CLASS="z"><TD CLASS="l">271</TD><TD>                setActiveEditor(null);</TD></TR><TR><TD CLASS="l">272</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">273</TD><TD>                super.dispose();</TD></TR><TR><TD CLASS="l">274</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">275</TD><TD>                if (extendedContributor != null)</TD></TR><TR CLASS="z"><TD CLASS="l"><A NAME="c">276</A></TD><TD>                        extendedContributor.dispose();</TD></TR><TR CLASS="z"><TD CLASS="l">277</TD><TD>        }</TD></TR><TR><TD CLASS="l">278</TD><TD> </TD></TR><TR><TD CLASS="l">279</TD><TD>        protected String[] getExtensionIDs() {</TD></TR><TR CLASS="z"><TD CLASS="l">280</TD><TD>                return EDITOR_IDS;</TD></TR><TR><TD CLASS="l">281</TD><TD>        }</TD></TR><TR><TD CLASS="l">282</TD><TD> </TD></TR><TR><TD CLASS="l">283</TD><TD>        /**</TD></TR><TR><TD CLASS="l"><A NAME="d">284</A></TD><TD>         * @param editor</TD></TR><TR><TD CLASS="l">285</TD><TD>         * @return</TD></TR><TR><TD CLASS="l">286</TD><TD>         */</TD></TR><TR><TD CLASS="l">287</TD><TD>        protected ITextEditor getTextEditor(IEditorPart editor) {</TD></TR><TR CLASS="z"><TD CLASS="l">288</TD><TD>                ITextEditor textEditor = null;</TD></TR><TR CLASS="z"><TD CLASS="l">289</TD><TD>                if (editor instanceof ITextEditor)</TD></TR><TR CLASS="z"><TD CLASS="l">290</TD><TD>                        textEditor = (ITextEditor) editor;</TD></TR><TR CLASS="z"><TD CLASS="l">291</TD><TD>                if (textEditor == null &amp;&amp; editor != null)</TD></TR><TR CLASS="z"><TD CLASS="l">292</TD><TD>                        textEditor = (ITextEditor) editor.getAdapter(ITextEditor.class);</TD></TR><TR CLASS="z"><TD CLASS="l">293</TD><TD>                return textEditor;</TD></TR><TR><TD CLASS="l">294</TD><TD>        }</TD></TR><TR><TD CLASS="l">295</TD><TD> </TD></TR><TR><TD CLASS="l">296</TD><TD>        /*</TD></TR><TR><TD CLASS="l">297</TD><TD>         * (non-Javadoc)</TD></TR><TR><TD CLASS="l">298</TD><TD>         * </TD></TR><TR><TD CLASS="l"><A NAME="e">299</A></TD><TD>         * @see org.eclipse.ui.IEditorActionBarContributor#init(org.eclipse.ui.IActionBars,</TD></TR><TR><TD CLASS="l">300</TD><TD>         *      org.eclipse.ui.IWorkbenchPage)</TD></TR><TR><TD CLASS="l">301</TD><TD>         */</TD></TR><TR><TD CLASS="l">302</TD><TD>        public void init(IActionBars bars, IWorkbenchPage page) {</TD></TR><TR CLASS="z"><TD CLASS="l">303</TD><TD>                super.init(bars, page);</TD></TR><TR CLASS="z"><TD CLASS="l">304</TD><TD>        }</TD></TR><TR><TD CLASS="l">305</TD><TD> </TD></TR><TR><TD CLASS="l"><A NAME="f">306</A></TD><TD>        /**</TD></TR><TR><TD CLASS="l">307</TD><TD>         * @see org.eclipse.ui.IEditorActionBarContributor#setActiveEditor(IEditorPart)</TD></TR><TR><TD CLASS="l">308</TD><TD>         */</TD></TR><TR><TD CLASS="l">309</TD><TD>        public void setActiveEditor(IEditorPart activeEditor) {</TD></TR><TR CLASS="z"><TD CLASS="l">310</TD><TD>                if (getActiveEditorPart() == activeEditor)</TD></TR><TR CLASS="z"><TD CLASS="l">311</TD><TD>                        return;</TD></TR><TR CLASS="z"><TD CLASS="l">312</TD><TD>                super.setActiveEditor(activeEditor);</TD></TR><TR><TD CLASS="l">313</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">314</TD><TD>                ITextEditor textEditor = getTextEditor(activeEditor);</TD></TR><TR><TD CLASS="l">315</TD><TD> </TD></TR><TR><TD CLASS="l">316</TD><TD>/*                IActionBars actionBars = getActionBars();</TD></TR><TR><TD CLASS="l">317</TD><TD>                if (actionBars != null) {</TD></TR><TR><TD CLASS="l">318</TD><TD>                        actionBars.setGlobalActionHandler(ITextEditorActionDefinitionIds.GOTO_NEXT_ANNOTATION, fNextAnnotation);</TD></TR><TR><TD CLASS="l">319</TD><TD>                        actionBars.setGlobalActionHandler(ITextEditorActionDefinitionIds.GOTO_PREVIOUS_ANNOTATION, fPreviousAnnotation);</TD></TR><TR><TD CLASS="l">320</TD><TD>                        actionBars.setGlobalActionHandler(ActionFactory.PREVIOUS.getId(), fPreviousAnnotation);</TD></TR><TR><TD CLASS="l">321</TD><TD>                        actionBars.setGlobalActionHandler(ActionFactory.NEXT.getId(), fNextAnnotation);</TD></TR><TR><TD CLASS="l">322</TD><TD> </TD></TR><TR><TD CLASS="l">323</TD><TD>                        if (textEditor != null) {</TD></TR><TR><TD CLASS="l">324</TD><TD>                                actionBars.setGlobalActionHandler(IDEActionFactory.ADD_TASK.getId(), getAction(textEditor, IDEActionFactory.ADD_TASK.getId()));</TD></TR><TR><TD CLASS="l">325</TD><TD>                                actionBars.setGlobalActionHandler(IDEActionFactory.BOOKMARK.getId(), getAction(textEditor, IDEActionFactory.BOOKMARK.getId()));</TD></TR><TR><TD CLASS="l">326</TD><TD>                        }</TD></TR><TR><TD CLASS="l">327</TD><TD>                }</TD></TR><TR><TD CLASS="l">328</TD><TD> </TD></TR><TR><TD CLASS="l">329</TD><TD>                fStructureSelectEnclosingAction.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_STRUCTURE_SELECT_ENCLOSING));</TD></TR><TR><TD CLASS="l">330</TD><TD>                fStructureSelectNextAction.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_STRUCTURE_SELECT_NEXT));</TD></TR><TR><TD CLASS="l">331</TD><TD>                fStructureSelectPreviousAction.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_STRUCTURE_SELECT_PREVIOUS));</TD></TR><TR><TD CLASS="l">332</TD><TD>                fStructureSelectHistoryAction.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_STRUCTURE_SELECT_HISTORY));</TD></TR><TR><TD CLASS="l">333</TD><TD> </TD></TR><TR><TD CLASS="l">334</TD><TD>                fShiftRight.setAction(getAction(textEditor, ITextEditorActionConstants.SHIFT_RIGHT));</TD></TR><TR><TD CLASS="l">335</TD><TD>                fShiftLeft.setAction(getAction(textEditor, ITextEditorActionConstants.SHIFT_LEFT));</TD></TR><TR><TD CLASS="l">336</TD><TD> </TD></TR><TR><TD CLASS="l">337</TD><TD>                fToggleComment.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_TOGGLE_COMMENT));</TD></TR><TR><TD CLASS="l">338</TD><TD>                fAddBlockComment.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_ADD_BLOCK_COMMENT));</TD></TR><TR><TD CLASS="l">339</TD><TD>                fRemoveBlockComment.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_REMOVE_BLOCK_COMMENT));</TD></TR><TR><TD CLASS="l">340</TD><TD> </TD></TR><TR><TD CLASS="l">341</TD><TD>                // go to prev/next error</TD></TR><TR><TD CLASS="l">342</TD><TD>                // CMVC 249017 for JavaEditor consistancy</TD></TR><TR><TD CLASS="l">343</TD><TD>                fPreviousAnnotation.setEditor(textEditor);</TD></TR><TR><TD CLASS="l">344</TD><TD>                fNextAnnotation.setEditor(textEditor);</TD></TR><TR><TD CLASS="l">345</TD><TD>                fGotoMatchingBracketAction.setAction(getAction(textEditor, StructuredTextEditorActionConstants.ACTION_NAME_GOTO_MATCHING_BRACKET));</TD></TR><TR><TD CLASS="l">346</TD><TD> </TD></TR><TR><TD CLASS="l">347</TD><TD>                fToggleInsertModeAction.setAction(getAction(textEditor, ITextEditorActionConstants.TOGGLE_INSERT_MODE));</TD></TR><TR><TD CLASS="l">348</TD><TD>*/</TD></TR><TR CLASS="z"><TD CLASS="l">349</TD><TD>                if (extendedContributor != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">350</TD><TD>                        extendedContributor.setActiveEditor(activeEditor);</TD></TR><TR><TD CLASS="l">351</TD><TD>                }</TD></TR><TR><TD CLASS="l">352</TD><TD> </TD></TR><TR CLASS="z"><TD CLASS="l">353</TD><TD>                if (_showDebugStatus &amp;&amp; textEditor instanceof ITextEditorExtension) {</TD></TR><TR CLASS="z"><TD CLASS="l">354</TD><TD>                        ((ITextEditorExtension) textEditor).setStatusField(fDebugStatusOffset, StructuredTextEditorActionConstants.STATUS_CATEGORY_OFFSET);</TD></TR><TR CLASS="z"><TD CLASS="l">355</TD><TD>                        fDebugStatusOffset.setActiveEditor(textEditor);</TD></TR><TR><TD CLASS="l">356</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">357</TD><TD>        }</TD></TR><TR><TD CLASS="l">358</TD><TD> </TD></TR><TR><TD CLASS="l">359</TD><TD>        /*</TD></TR><TR><TD CLASS="l">360</TD><TD>         * (non-Javadoc)</TD></TR><TR><TD CLASS="l">361</TD><TD>         * </TD></TR><TR><TD CLASS="l">362</TD><TD>         * @see org.eclipse.wst.sse.ui.ISourceViewerActionBarContributor#setViewerSpecificContributionsEnabled(boolean)</TD></TR><TR><TD CLASS="l">363</TD><TD>         */</TD></TR><TR><TD CLASS="l">364</TD><TD>        public void setViewerSpecificContributionsEnabled(boolean enabled) {</TD></TR><TR><TD CLASS="l">365</TD><TD>/*                fShiftRight.setEnabled(enabled);</TD></TR><TR><TD CLASS="l">366</TD><TD>                fShiftLeft.setEnabled(enabled);</TD></TR><TR><TD CLASS="l">367</TD><TD>                fNextAnnotation.setEnabled(enabled);</TD></TR><TR><TD CLASS="l">368</TD><TD>                fPreviousAnnotation.setEnabled(enabled);</TD></TR><TR><TD CLASS="l">369</TD><TD>*/</TD></TR><TR><TD CLASS="l">370</TD><TD>                /*</TD></TR><TR><TD CLASS="l">371</TD><TD>                 * fComment.setEnabled(enabled); fUncomment.setEnabled(enabled);</TD></TR><TR><TD CLASS="l">372</TD><TD>                 */</TD></TR><TR><TD CLASS="l">373</TD><TD>/*                </TD></TR><TR><TD CLASS="l">374</TD><TD>                fToggleComment.setEnabled(enabled);</TD></TR><TR><TD CLASS="l">375</TD><TD>                fAddBlockComment.setEnabled(enabled);</TD></TR><TR><TD CLASS="l"><A NAME="10">376</A></TD><TD>                fRemoveBlockComment.setEnabled(enabled);</TD></TR><TR><TD CLASS="l">377</TD><TD>*/                </TD></TR><TR><TD CLASS="l">378</TD><TD>                // convert line delimiters are not source viewer-specific</TD></TR><TR><TD CLASS="l">379</TD><TD>                </TD></TR><TR CLASS="z"><TD CLASS="l">380</TD><TD>        }</TD></TR><TR><TD CLASS="l">381</TD><TD> </TD></TR><TR><TD CLASS="l">382</TD><TD>        /*</TD></TR><TR><TD CLASS="l">383</TD><TD>         * (non-Javadoc)</TD></TR><TR><TD CLASS="l"><A NAME="11">384</A></TD><TD>         * </TD></TR><TR><TD CLASS="l">385</TD><TD>         * @see org.eclipse.wst.sse.ui.extension.IExtendedContributor#updateToolbarActions()</TD></TR><TR><TD CLASS="l">386</TD><TD>         */</TD></TR><TR><TD CLASS="l">387</TD><TD>        public void updateToolbarActions() {</TD></TR><TR CLASS="z"><TD CLASS="l">388</TD><TD>                if (extendedContributor != null) {</TD></TR><TR CLASS="z"><TD CLASS="l">389</TD><TD>                        extendedContributor.updateToolbarActions();</TD></TR><TR><TD CLASS="l">390</TD><TD>                }</TD></TR><TR CLASS="z"><TD CLASS="l">391</TD><TD>        }</TD></TR><TR><TD CLASS="l">392</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="a.html">org.eclipse.wst.sse.ui.internal.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>