|
What this is
Other links
The source code<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.2"?> <plugin> <!-- Commands Section --> <extension point="org.eclipse.ui.commands"> <category description="%command.category.desc" id="org.eclipse.ui.tools.category" name="%command.category.name"> </category> <command categoryId="org.eclipse.ui.tools.category" defaultHandler="org.eclipse.ui.tools.dynamic.LoadUnloadHandler" description="%command.dynamic.bundle.desc" id="org.eclipse.ui.tools.dynamic.bundle" name="%command.dynamic.bundle.name"> <commandParameter id="bundleLocation" name="%command.dynamic.bundle.param" optional="true" values="org.eclipse.ui.tools.dynamic.BundleParameterValues"> </commandParameter> </command> <command categoryId="org.eclipse.ui.tools.category" defaultHandler="org.eclipse.ui.tools.handlers.GenerateFilesHandler" id="org.eclipse.ui.tools.genPerf" name="%genPerf.name"> <commandParameter id="genPerf.extension" name="%genPerf.extension.name" optional="false"> </commandParameter> <commandParameter id="genPerf.num" name="%genPerf.num.name" optional="true"> </commandParameter> </command> <command categoryId="org.eclipse.ui.tools.category" defaultHandler="org.eclipse.ui.tools.handlers.CheckExtensionsHandler" id="org.eclipse.ui.tools.checkExtensions" name="%checkExtensions.name"> </command> <command categoryId="org.eclipse.ui.tools.category" defaultHandler="org.eclipse.ui.tools.handlers.CheckWorkspaceHandler" id="org.eclipse.ui.tools.checkWorkspaceExtensions" name="%checkWorkspaceExtensions.name"> </command> <command categoryId="org.eclipse.ui.tools.category" defaultHandler="org.eclipse.ui.tools.handlers.ShowClassHandler" id="org.eclipse.ui.tools.showClass" name="%showClass.name"> </command> <command categoryId="org.eclipse.ui.tools.category" defaultHandler="org.eclipse.ui.tools.handlers.ShowWindowContextsHandler" id="org.eclipse.ui.tools.showWindowContexts" name="%showWindowContexts.name"> </command> <command categoryId="org.eclipse.ui.tools.category" defaultHandler="org.eclipse.ui.tools.handlers.RunMultipleCommands" description="%runMultipleCommands.desc" id="org.eclipse.ui.tools.runMultipleCommands" name="%runMultipleCommands.name"> <commandParameter id="commandId.list" name="%runMultipleCommands.list.name" optional="false"> </commandParameter> </command> <command defaultHandler="org.eclipse.ui.tools.handlers.ToggleDynamicProjectNatureHandler" description="%toggleNatureCommand.desc" id="org.eclipse.ui.tools.toggleDynamicProjectNature" name="%toggleNatureCommand.name"> </command> </extension> <!-- keybindings, anyone? We use a prefix of M1+5 for all UI tools --> <extension point="org.eclipse.ui.bindings"> <key commandId="org.eclipse.ui.tools.dynamic.bundle" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="M1+5 M1+U RETURN"> </key> <key commandId="org.eclipse.ui.tools.runMultipleCommands" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="M1+5 M1+B"> <parameter id="commandId.list" value="org.eclipse.ui.file.saveAll,org.eclipse.ui.project.buildAll,org.eclipse.ui.help.aboutAction"> </parameter> </key> <key commandId="org.eclipse.ui.tools.showClass" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="M1+5 M1+S"> </key> </extension> <!-- place the commands in various menus --> <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="toolbar:org.eclipse.ui.trim.status"> <toolbar id="org.eclipse.ui.tools.toolbar1"> <command commandId="org.eclipse.ui.tools.dynamic.bundle" icon="icons/obj16/bundle.gif" id="org.eclipse.ui.tools.dynamic.root" style="pulldown"> </command> </toolbar> </menuContribution> <menuContribution locationURI="menu:org.eclipse.ui.tools.dynamic.root"> <dynamic class="org.eclipse.ui.tools.dynamic.BundleListItem" id="org.eclipse.ui.tools.dynamic.bundles"> </dynamic> <separator name="org.eclipse.ui.tools.separator1"> </separator> </menuContribution> <menuContribution locationURI="menu:org.eclipse.ui.main.menu"> <menu id="org.eclipse.ui.tools.menu" label="%menu.tools" mnemonic="%menu.tools.mnemonic"> <dynamic class="org.eclipse.ui.tools.dynamic.BundleListItem" id="org.eclipse.ui.tools.dynamic.bundles"> </dynamic> <command commandId="org.eclipse.ui.tools.dynamic.bundle" icon="icons/obj16/bundle.gif" id="org.eclipse.ui.tools.dynamic.root" label="%menu.command.dynamic.bundle" style="push"> </command> <separator name="org.eclipse.ui.tools.separator1" visible="true"> </separator> <command commandId="org.eclipse.ui.tools.showClass"> </command> <command commandId="org.eclipse.ui.tools.showWindowContexts"> </command> <command commandId="org.eclipse.ui.tools.checkExtensions"> </command> <command commandId="org.eclipse.ui.tools.checkWorkspaceExtensions"> </command> <command commandId="org.eclipse.ui.tools.genPerf" label="%genPerf.basic.label"> <parameter name="genPerf.extension" value="perf_basic"> </parameter> <parameter name="genPerf.num" value="100"> </parameter> </command> </menu> </menuContribution> <menuContribution locationURI="popup:org.eclipse.ui.popup.any"> <command commandId="org.eclipse.ui.tools.toggleDynamicProjectNature" style="push"> <visibleWhen checkEnabled="false"> <reference definitionId="org.eclipse.ui.tools.oneProjectRef"> </reference> </visibleWhen> </command> </menuContribution> <menuContribution locationURI="menu:project"> <command commandId="org.eclipse.ui.tools.toggleDynamicProjectNature" style="push"> <visibleWhen checkEnabled="false"> <reference definitionId="org.eclipse.ui.tools.oneProjectRef"> </reference> </visibleWhen> </command> </menuContribution> </extension> <extension id="dynamicNature" name="%dynamicNature.name" point="org.eclipse.core.resources.natures"> <runtime> <run class="org.eclipse.ui.tools.builder.DynamicNature"> </run> </runtime> <builder id="org.eclipse.ui.tools.dynamicBuilder"> </builder> </extension> <extension id="dynamicBuilder" name="%dynamicBuilder.name" point="org.eclipse.core.resources.builders"> <builder hasNature="true"> <run class="org.eclipse.ui.tools.builder.DynamicBuilder"> </run> </builder> </extension> <extension point="org.eclipse.core.expressions.definitions"> <definition id="org.eclipse.ui.tools.oneProjectRef"> <and> <count value="1"> </count> <iterate ifEmpty="false" operator="and"> <adapt type="org.eclipse.core.resources.IResource"> <instanceof value="org.eclipse.core.resources.IProject"> </instanceof> </adapt> </iterate> </and> </definition> </extension> <extension point="org.eclipse.ui.decorators"> <decorator adaptable="true" icon="icons/obj16/dynamic.gif" id="org.eclipse.ui.tools.dynamicProjectDecorator" label="%dynamicDecorator.name" lightweight="true" location="TOP_RIGHT" state="true"> <enablement> <objectState name="nature" value="org.eclipse.ui.tools.dynamicNature"> </objectState> </enablement> </decorator> </extension> </plugin> |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.