You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Unable to render {include} The included page could not be found.

Plugin Configuration Schema

Prototype for XML configuration of plugins (menus and toolbars)

"Plugin.xml"
<?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>

Eclipse



 Overview Eclipse command architecture

 Andere Links

  • No labels