Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Include Page
TOOLS:Header, DesignTOOLS:
Header, Design
scrollbar

Plugin Configuration Schema

...

Image Added

Prototype for XML configuration of plugins (menus and toolbars)

Code Block
xml
xml
title"Plugin.xml"
<?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 &amp;In ..." shortcutkey="CtrlC" image="zoomin...png" category="Map" tooltip="Zoom in using rectangle ..."/>
		<command class="ZoomOutCommand" name="Zoom &amp;Out" image="zoomout...png" category="Map" />
		<command class="AddMapLayerCommand" name="&amp;Add Layer ..." image="addlayer...png" category="Map" />
		<command class="RemoveAllLayersCommand" name="Remove All Layers" image="..." category="Map" />
		<command class="ProjectLayerCommand" name="&amp;Project layer ..." image="..." category="Map" />
		<command class="ExportLayerCommand" name="&amp;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="&ToolsProjectLayerCommand"/>
					<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="MapLayers" after="buttonMenuFileSaveProject">
					<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" />
		</toolbar>
		
		<contextMenu contextObject="Project">
			<item command="Delete ...ExportLayerCommand"/>
				</item>
			</menu>
			<menu name="LayerAttributes">
				<activeforviewtypes>
					<view class="LayerAttributesTable"/>
				</activeforviewtypes>
			</menu>
		</menus>
		<toolbars>
			<toolbar name="Map">
				<activeforviewtypes>
					<view class="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

...