Skip Navigation

Sample plugin.xml for the Sample Editor

The following plug-in XML file represents the complete sample editor that is built in Creating a Sample Editor.

After you create the sample editor that this procedure shows, your plugin.xml file should be similar to this example.

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.6"?>
<plugin>
   <extension
         point="org.eclipse.ui.editors">
      <editor
            class="com.sabre.redapp.example.editor.basic.SampleEditor"
            default="false"
            icon="images/sample_icon.png"
            id="com.sabre.redapp.example.editor.basic.SampleEditor"
            name="Sample Editor">
      </editor>
   </extension>
   <extension
         point="org.eclipse.ui.elementFactories">
      <factory
            class="com.sabre.redapp.example.editor.basic.SampleElementFactory"
            id="com.sabre.redapp.example.editor.basic.SampleElementFactory">
      </factory>
   </extension>
   <extension
         point="com.sabre.edge.platform.core.editor.editorApp">
      <editorApp
            class="com.sabre.redapp.example.editor.basic.SampleEditor"
            editorId="com.sabre.redapp.example.editor.basic.SampleEditor"
            inputClass="com.sabre.redapp.example.editor.basic.SampleEditorInput"
            name="Sample Editor"
            toolTipText="Sample Editor">
      </editorApp>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            id="com.sabre.redapp.example.editor.basic.OpenSampleEditorCommand"
            name="Sample Command">
         <commandParameter
               id="editorId"
               name="editorId"
               optional="true">
         </commandParameter>
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="com.sabre.edge.platform.core.editor.commands.handlers.FocusOrOpenEditorHandler"
            commandId="com.sabre.redapp.example.editor.basic.OpenSampleEditorCommand">
      </handler>
   </extension>
</plugin>