plugin.xml 8.65 KB
Newer Older
1 2 3 4
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
   <extension
5
         point="org.eclipse.ui.views">
6 7 8 9
      <view
            name="Bytecode"
            icon="icons/bytecodeview.gif"
            category="org.eclipse.jdt.ui.java"
10
            class="de.loskutov.bco.views.BytecodeOutlineView"
11
            id="de.loskutov.bco.views.BytecodeOutlineView"/>
12 13
      <view
            name="Bytecode Reference"
14
            icon="icons/reference.gif"
15 16 17
            category="org.eclipse.jdt.ui.java"
            class="de.loskutov.bco.views.BytecodeReferenceView"
            id="de.loskutov.bco.views.BytecodeReferenceView"/>
18
   </extension>
19

ekuleshov's avatar
ekuleshov committed
20
   <!--
21 22 23 24 25 26 27 28 29
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            category="org.eclipse.jdt.ui.preferences.JavaBasePreferencePage"
            class="de.loskutov.bco.preferences.BCOPreferencePage"
            id="BCOPreferencePage"
            name="Bytecode Outline">
      </page>
   </extension>
ekuleshov's avatar
ekuleshov committed
30
   -->
31

ekuleshov's avatar
ekuleshov committed
32 33 34
   <extension point="org.eclipse.core.runtime.preferences">
      <initializer class="de.loskutov.bco.preferences.BCOPreferenceInitializer"/>
   </extension>
35

36 37 38 39 40
   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            objectClass="org.eclipse.jdt.core.IOpenable"
            id="de.loskutov.bco.CompareBytecodeActionContribution1">
41

42 43 44 45 46
         <visibility>
            <or>
               <objectClass name="org.eclipse.jdt.core.IClassFile"/>
               <objectClass name="org.eclipse.jdt.core.ICompilationUnit"/>
            </or>
47
         </visibility>
48 49 50 51 52 53 54
         <menu
               label="Compare With ..."
               path="additions"
               id="compareWithMenu">
            <separator
                  name="compareWithGroup">
            </separator>
55 56
         </menu>

57 58 59 60 61 62 63
         <action
               enablesFor="1"
               label="Another Class Bytecode"
               icon="icons/bytecodeview.gif"
               class="de.loskutov.bco.ui.actions.OpenAction"
               menubarPath="compareWithMenu/compareWithGroup"
               id="de.loskutov.bco.CompareBytecodeAction">
64
         </action>
65 66 67 68 69 70 71 72
         <action
               enablesFor="2"
               label="Each Other Bytecode"
               icon="icons/bytecodeview.gif"
               class="de.loskutov.bco.ui.actions.CompareBytecodeAction"
               menubarPath="compareWithMenu/compareWithGroup"
               id="de.loskutov.bco.OpenAction">
         </action>
73
       </objectContribution>
74 75 76 77 78 79 80

      <objectContribution
            objectClass="org.eclipse.core.resources.IFile"
            nameFilter="*.class"
            id="de.loskutov.bco.CompareBytecodeActionContribution2">

         <visibility>
81 82 83 84
            <not>
             <or>
                   <objectClass name="org.eclipse.jdt.core.IClassFile"/>
                   <objectClass name="org.eclipse.jdt.core.ICompilationUnit"/>
85 86
               </or>
            </not>
87
         </visibility>
88 89 90 91 92 93 94
         <menu
               label="Compare With ..."
               path="additions"
               id="compareWithMenu">
            <separator
                  name="compareWithGroup">
            </separator>
95 96
         </menu>

97 98 99 100 101 102 103
         <action
               enablesFor="1"
               label="Another Class Bytecode"
               icon="icons/bytecodeview.gif"
               class="de.loskutov.bco.ui.actions.OpenAction"
               menubarPath="compareWithMenu/compareWithGroup"
               id="de.loskutov.bco.CompareBytecodeAction">
104
         </action>
105 106 107 108 109 110 111 112
         <action
               enablesFor="2"
               label="Each Other Bytecode"
               icon="icons/bytecodeview.gif"
               class="de.loskutov.bco.ui.actions.CompareBytecodeAction"
               menubarPath="compareWithMenu/compareWithGroup"
               id="de.loskutov.bco.OpenAction">
         </action>
113 114
       </objectContribution>

115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
      <objectContribution
            objectClass="org.eclipse.jdt.core.IMember"
            nameFilter="*"
            id="de.loskutov.bco.CompareBytecodeActionContribution3">

         <visibility>
            <not>
             <or>
                   <objectClass name="org.eclipse.jdt.core.IField"/>
                   <objectClass name="org.eclipse.jdt.core.IType"/>
               </or>
            </not>
         </visibility>
         <menu
               label="Compare With ..."
               path="additions"
               id="compareWithMenu">
            <separator
                  name="compareWithGroup">
            </separator>
         </menu>

         <action
               enablesFor="2"
               label="Each Other Bytecode"
               icon="icons/bytecodeview.gif"
               class="de.loskutov.bco.ui.actions.CompareMemberBytecodeAction"
               menubarPath="compareWithMenu/compareWithGroup"
               id="de.loskutov.bco.OpenAction">
         </action>
       </objectContribution>

147 148
   </extension>

149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
   <extension
         point="org.eclipse.ui.popupMenus">
      <viewerContribution
            targetID="de.loskutov.bco.views.BytecodeOutlineView#ContextMenu"
            id="de.loskutov.bco.OpenBytecodeReference">

         <action
               enablesFor="*"
               label="Open bytecode reference"
               icon="icons/reference.gif"
               class="de.loskutov.bco.ui.actions.OpenBytecodeReferenceAction"
               menubarPath="additions"
               id="de.loskutov.bco.OpenReferenceAction"/>
      </viewerContribution>
   </extension>

165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
   <extension
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension
          targetID="org.eclipse.jdt.ui.JavaPerspective">
         <view
               relative="org.eclipse.ui.views.ContentOutline"
               visible="false"
               id="de.loskutov.bco.views.BytecodeOutlineView"
               relationship="stack">
         </view>
         <viewShortcut id="de.loskutov.bco.views.BytecodeOutlineView"/>
      </perspectiveExtension>

   </extension>

180 181 182 183 184
   <extension
         point="org.eclipse.ui.editors">
      <editor
            class="de.loskutov.bco.editors.BytecodeClassFileEditor"
            contributorClass="de.loskutov.bco.editors.BytecodeActionBarContributor"
185
            default="false"
186
            extensions="class"
187
            icon="icons/bytecodeview.gif"
188
            id="de.loskutov.bco.editors.BytecodeClassFileEditor"
189 190 191
            name="Class File Bytecode Viewer"
            symbolicFontName="org.eclipse.jdt.ui.editors.textfont">
         <contentTypeBinding contentTypeId="org.eclipse.jdt.core.javaClass"/>
192
      </editor>
193 194 195 196 197 198 199 200 201 202
      <editor
            class="de.loskutov.bco.editors.BytecodeClassFileEditor"
            contributorClass="de.loskutov.bco.editors.BytecodeActionBarContributor"
            default="true"
            filenames="*.class without source"
            icon="icons/bytecodeview.gif"
            id="de.loskutov.bco.editors.BytecodeClassFileEditorNoSource"
            name="Class File Bytecode Viewer"
            symbolicFontName="org.eclipse.jdt.ui.editors.textfont">
      </editor>
203
   </extension>
204

205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
   <!-- replacement for org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate,
    required for toggle breakpoint by double-click in editor ruler in class files -->
   <extension
         point="org.eclipse.ui.editorActions">
      <editorContribution
            targetID="de.loskutov.bco.editors.BytecodeClassFileEditor"
            id="de.loskutov.bco.editors.BreakpointRulerActions">
         <action
               label="?"
               class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
               style="push"
               actionID="RulerDoubleClick"
               id="de.loskutov.bco.editors.ManageBreakpointRulerAction">
         </action>
      </editorContribution>
   </extension>
221
  <extension point="org.eclipse.help.toc">
222
    <toc file="doc/toc.xml" primary="true" />
223
  </extension>
224

225
 <!-- because of org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor replacement
226 227 228 229 230 231 232
  <extension point="org.eclipse.core.runtime.adapters">
         <factory
            class="org.eclipse.jdt.internal.debug.ui.actions.RetargettableActionAdapterFactory"
            adaptableType="de.loskutov.bco.editors.BytecodeClassFileEditor">
            <adapter type="org.eclipse.debug.ui.actions.IRunToLineTarget"/>
            <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget"/>
         </factory>
233
  </extension> -->
234 235 236 237 238 239 240 241 242
  <extension
        point="org.eclipse.ui.preferencePages">
     <page
           category="org.eclipse.jdt.ui.preferences.JavaBasePreferencePage"
           class="de.loskutov.bco.preferences.BCOPreferencePage"
           id="de.loskutov.ByteCodeOutline.page"
           name="Bytecode Outline">
     </page>
  </extension>
243
</plugin>