| <?xml version="1.0" encoding="UTF-8"?> | |
| <?eclipse version="3.2"?> | |
| <plugin> | |
| <extension | |
| point="org.eclipse.ui.commands"> | |
| <category | |
| name="Sample Category" | |
| id="cdtAST2.commands.category"> | |
| </category> | |
| <command | |
| name="CallGraph Command" | |
| categoryId="cdtAST2.commands.category" | |
| id="cdtAST2.commands.cgCommand"> | |
| </command> | |
| <command | |
| name="CFG Command" | |
| categoryId="cdtAST2.commands.category" | |
| id="cdtAST2.commands.cfgCommand"> | |
| </command> | |
| </extension> | |
| <extension | |
| point="org.eclipse.ui.handlers"> | |
| <handler | |
| commandId="cdtAST2.commands.cgCommand" | |
| class="org.eclipse.ptp.pldt.sampleCDTstaticAnalysis.handlers.BuildCallGraphHandler"> | |
| </handler> | |
| <handler | |
| commandId="cdtAST2.commands.cfgCommand" | |
| class="org.eclipse.ptp.pldt.sampleCDTstaticAnalysis.handlers.BuildCFGraphHandler"> | |
| </handler> | |
| </extension> | |
| <extension | |
| point="org.eclipse.ui.bindings"> | |
| <key | |
| commandId="cdtAST2.commands.cgCommand" | |
| 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="cdtAST2.menus.sampleMenu"> | |
| <command | |
| commandId="cdtAST2.commands.cgCommand" | |
| icon="icons/graphW.gif" | |
| id="cdtAST2.menus.cgCommand" | |
| label="Walk AST tree" | |
| mnemonic="S" | |
| tooltip="Walk AST Tree tooltip"> | |
| </command> | |
| </menu> | |
| </menuContribution> | |
| <menuContribution | |
| locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions"> | |
| <toolbar | |
| id="cdtAST2.toolbars.sampleToolbar"> | |
| <command | |
| commandId="cdtAST2.commands.cgCommand" | |
| icon="icons/callsC.gif" | |
| id="cdtAST2.toolbars.buildCallGraphCommand" | |
| label="Build Call Graph" | |
| tooltip="Build Call Graph"> | |
| </command> | |
| <command | |
| commandId="cdtAST2.commands.cfgCommand" | |
| icon="icons/callsCF.gif" | |
| id="cdtAST2.toolbars.buildCallGraphCommand" | |
| label="Build CFGraph" | |
| tooltip="Build Control Flow Graph"> | |
| </command> | |
| </toolbar> | |
| </menuContribution> | |
| </extension> | |
| <extension | |
| point="org.eclipse.ui.actionSets"> | |
| <actionSet | |
| label="Sample Action Set" | |
| visible="true" | |
| id="cdtAST2.actionSet"> | |
| <action | |
| label="Walk AST" | |
| icon="icons/graphW.gif" | |
| class="org.eclipse.ptp.pldt.sampleCDTstaticAnalysis.actions.ASTWalkerAction" | |
| tooltip="Walk AST tooltip" | |
| menubarPath="sampleMenu/sampleGroup" | |
| toolbarPath="sampleGroup" | |
| id="cdtast2.actions.SampleAction"> | |
| </action> | |
| </actionSet> | |
| </extension> | |
| </plugin> |