Include Page |
---|
| TOOLS:Header, DesignTOOLS: |
---|
| Header, Design |
---|
|
Image Added |
---|
Prototype for XML configuration of plugins (menus and toolbars)
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 ..." category="Map"/>
<command class="ZoomWorldCommand" imagename="Zoom world ..." category="Map" />
</commands>
<ui>
<mainMenu><menus>
<item<menu name="Map" after="buttonMenuFile">
<activeforviewtypes>
<view class="ToolsMapView"/>
</activeforviewtypes>
<item commandcommandclass="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="Zoom In" image="..." command="ZoomInCommand" AddMapLayerCommand" 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>
|
Overview Eclipse command architecture
...