view plugin.xml @ 5:dd4ab3c8d143

Use the same contributorClass as the JDT editor. This brings back the functionality of displaying the current line/column number in the status bar.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 16 Dec 2014 07:38:49 +0100
parents d42b86029389
children 778c251baa66
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.ui.editors">
      <!-- 
          This editor is a drop in for the JDT's java editor. To make sure it works seamlessly with the rest of
          JDT it needs to be registered using the same ID as the JDT java editor.
      --> 
      <editor
            class="de.codedo.java.editor.CodedoJavaEditor"
            contributorClass="org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditorActionContributor"
            default="false"
            filenames="*.java"
            icon="icons/jcu_obj.gif"
            id="org.eclipse.jdt.ui.CompilationUnitEditor"
            name="Java editor with custom icon"
            symbolicFontName="org.eclipse.jdt.ui.editors.textfont">
      </editor>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            id="de.codedo.java.editor.command.toggleTitleImage"
            name="Toggle editor icon">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="de.codedo.java.editor.ToggleEditorIconHandler"
            commandId="de.codedo.java.editor.command.toggleTitleImage">
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
         <toolbar
               id="de.codedo.java.editor.toolbar">
            <command
                  commandId="de.codedo.java.editor.command.toggleTitleImage"
                  icon="icons/icon.png"
                  id="de.codedo.java.editor.command.toolbar.toggleTitleImage"
                  style="push"
                  tooltip="Toggle editor icon">
            </command>
         </toolbar>
      </menuContribution>
   </extension>

</plugin>