...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?> <plugin name="Gis" class="GisPlugin"> <models> ... </models> <data> ... </data> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="D:\projects\DelftTools\apps\DelftTools\modules\DelftTools.Gui\PluginConfiguration.xsd"> <commands> <command class="ZoomInCommand" name="Zoom &In ..." shortcutkey="CtrlC" image="zoomin...png" category="Map" tooltip="Zoom in using rectangle ..."/> <command class="ZoomOutCommand" name="Zoom &Out" image="zoomout...png" category="Map" /> <command class="AddMapLayerCommand" name="&Add Layer ..." image="addlayer...png" category="Map" /> <command class="RemoveAllLayersCommand" name="Remove All Layers" image="..." category="Map" /> <command class="ProjectLayerCommand" name="&Project layer ..." image="..." category="Map" /> <command class="ExportLayerCommand" name="&Export layer ..." image="category="Map"/> <command class="ZoomWorldCommand" name="Zoom world ..." category="Map" /> </commands> <ui> <mainMenu><menus> <item<menu name="Map" after="Tools"> <item commandbuttonMenuFile"> <activeforviewtypes> <view class="MapView"/> </activeforviewtypes> <item commandclass="ZoomInCommand" /> <item commandcommandclass="ZoomOutCommand" /> <separator /> <item name="&Add Layer ..." image="..." command="AddMapLayerCommand" Layers"> <item commandclass="AddMapLayerCommand"/> <item commandclass="RemoveAllLayersCommand"/> <item namecommandclass="&Remove All Layers" image="..." command="RemoveAllMapLayersCommand" /> <item name="&Tools"> ProjectLayerCommand"/> <item commandclass="ExportLayerCommand"/> </item> <separator/> <item commandclass="ZoomWorldCommand"/> </menu> <menu name="buttonMenuFile"> <item name="&Project layer ... Layers" imageafter="..." command="ProjectLayerCommand" buttonMenuFileSaveProject"> <item commandclass="AddMapLayerCommand"/> <item namecommandclass="&Export layer ... " image="..." commandRemoveAllLayersCommand"/> <item commandclass="ProjectLayerCommand"/> <item commandclass="ExportLayerCommand" /> </item> </item>menu> </mainMenu><menu name="buttonMenuFile"> <toolbar<item name="Layers" after="MapbuttonMenuFileSaveProject"> <item namecommandclass="AddMapLayerCommand"Zoom In" image="..." command="ZoomInCommand" after="AddMapLayerCommand"/> <item commandclass="RemoveAllLayersCommand"/> <item commandclass="ProjectLayerCommand" after="ProjectLayerCommand"/> <item namecommandclass="Zoom Out" image="..." command="ZoomOutCommand" />ExportLayerCommand"/> </item> </menu> <menu name="LayerAttributes"> <activeforviewtypes> <view class="LayerAttributesTable"/> </activeforviewtypes> </menu> </toolbar>menus> <toolbars> <contextMenu<toolbar contextObjectname="ProjectMap"> <activeforviewtypes> <item<view commandclass="Delete DelftShell.Forms.HtmlPage.HtmlPageView"/> </contextMenu> <view name="Map" class="MapView"activeforviewtypes> <item name="ComboItem"> <item commandclass="ZoomInCommand"/> </item> <item commandclass="ZoomInCommand"/> <item commandclass="ZoomOutCommand"/> ...</toolbar> </view>toolbars> </ui> </plugin> |
Eclipse
Overview Eclipse command architecture
...