Include Page |
---|
| Header, Design |
---|
| Header, Design |
---|
|
...
Image Added |
---|
Prototype for XML configuration of plugins (menus and toolbars)
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<plugin 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" category="Map"/>
<command class="ProjectLayerCommand" name="&Project layer ..." category="Map"/>
<command class="ExportLayerCommand" name="&Export layer ..." category="Map"/>
<command class="ZoomWorldCommand" name="Zoom world ..." category="Map"/>
</commands>
<ui>
<menus>
<menu name="Map" after="buttonMenuFile">
<activeforviewtypes>
<view class="MapView"/>
</activeforviewtypes>
<item commandclass="ZoomInCommand"/>
<item commandclass="ZoomOutCommand"/>
<separator/>
<item name="Layers">
<item commandclass="AddMapLayerCommand"/>
<item commandclass="RemoveAllLayersCommand"/>
<item commandclass="ProjectLayerCommand"/>
<item commandclass="ExportLayerCommand"/>
</item>
<separator/>
<item commandclass="ZoomWorldCommand"/>
</menu>
<menu name="buttonMenuFile">
<item name="Layers" after="buttonMenuFileSaveProject">
<item commandclass="AddMapLayerCommand"/>
<item commandclass="RemoveAllLayersCommand"/>
<item commandclass="ProjectLayerCommand"/>
<item commandclass="ExportLayerCommand"/>
</item>
</menu>
<menu name="buttonMenuFile">
<item name="Layers" after="buttonMenuFileSaveProject">
<item commandclass="AddMapLayerCommand" after="AddMapLayerCommand"/>
<item commandclass="RemoveAllLayersCommand"/>
<item commandclass="ProjectLayerCommand" after="ProjectLayerCommand"/>
<item commandclass="ExportLayerCommand"/>
</item>
</menu>
<menu name="LayerAttributes">
<activeforviewtypes>
<view class="LayerAttributesTable"/>
</activeforviewtypes>
</menu>
</menus>
<toolbars>
<toolbar name="Map">
<activeforviewtypes>
<view class="DelftShell.Forms.HtmlPage.HtmlPageView"/>
</activeforviewtypes>
<item name="ComboItem">
<item commandclass="ZoomInCommand"/>
</item>
<item commandclass="ZoomInCommand"/>
<item commandclass="ZoomOutCommand"/>
</toolbar>
</toolbars>
</ui>
</plugin>
|
Overview Eclipse command architecture
...