Include Page |
---|
| TOOLS:Header, Design |
---|
| TOOLS:Header, Design |
---|
|
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>
<commands>
<command class="ZoomInCommand" name="Zoom &In" image="..." category="Map" />
<command class="ZoomOutCommand" name="Zoom &Out" image="..." category="Map" />
<command class="AddMapLayerCommand" name="&Add Layer ..." image="..." 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" />
</commands>
<ui>
<mainMenu>
<item name="Map" after="Tools">
<item command="ZoomInCommand" />
<item command="ZoomOutCommand" />
<separator />
<item name="&Add Layer ..." image="..." command="AddMapLayerCommand" />
<item name="&Remove All Layers" image="..." command="RemoveAllMapLayersCommand" />
<item name="&Tools">
<item name="&Project layer ... " image="..." command="ProjectLayerCommand" />
<item name="&Export layer ... " image="..." command="ExportLayerCommand" />
</item>
</item>
</mainMenu>
<toolbar name="Map">
<item name="Zoom In" image="..." command="ZoomInCommand" />
<item name="Zoom Out" image="..." command="ZoomOutCommand" />
</toolbar>
<contextMenu contextObject="Project">
<item command="Delete ..."/>
</contextMenu>
<view name="Map" class="MapView">
...
</view>
</ui>
</plugin>
|
Overview Eclipse command architecture
...