Source Code for Examples


Select a project to browse the source code. I current do not include graphics or other binary artifacts. I include the source code and xml files as well as the ".projects" and the ".classpath" files.

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

   <extension
         point="org.eclipse.ui.commands">
      <category
            name="Sample Category"
            id="de.vogella.jdt.infos.commands.category">
      </category>
      <command
            name="Sample Command"
            categoryId="de.vogella.jdt.infos.commands.category"
            id="de.vogella.jdt.infos.commands.sampleCommand">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            commandId="de.vogella.jdt.infos.commands.sampleCommand"
            class="de.vogella.jdt.infos.handlers.SampleHandler">
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="de.vogella.jdt.infos.commands.sampleCommand"
            contextId="org.eclipse.ui.contexts.window"
            sequence="M1+6"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
      </key>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:org.eclipse.ui.main.menu?after=additions">
         <menu
               label="Sample Menu"
               mnemonic="M"
               id="de.vogella.jdt.infos.menus.sampleMenu">
            <command
                  commandId="de.vogella.jdt.infos.commands.sampleCommand"
                  mnemonic="S"
                  id="de.vogella.jdt.infos.menus.sampleCommand">
            </command>
         </menu>
      </menuContribution>
      <menuContribution
            locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
         <toolbar
               id="de.vogella.jdt.infos.toolbars.sampleToolbar">
            <command
                  commandId="de.vogella.jdt.infos.commands.sampleCommand"
                  icon="icons/sample.gif"
                  tooltip="Say hello world"
                  id="de.vogella.jdt.infos.toolbars.sampleCommand">
            </command>
         </toolbar>
      </menuContribution>
   </extension>

</plugin>