~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using Mono.Addins;

namespace UnitTests
{
	[ExtensionNode ("ItemSet", "A set of items")]
	[ExtensionNodeChild (typeof(ItemNode))]
	[ExtensionNodeChild (typeof(ItemSetNode))]
	public class ItemSetNode: ExtensionNode
	{
		[NodeAttribute ("label", true, Description="Item label")]
		public string Label;
		
		[NodeAttribute (Description="Item icon")]
		public string icon;
	}
	
	[ExtensionNode ("Item", "An item")]
	[ExtensionNodeChild (typeof(ItemDataNode))]
	[NodeAttribute ("info", typeof(string), Description="Some info")]
	public class ItemNode: ExtensionNode
	{
	}
	
	[ExtensionNode ("Data", "Item data")]
	[ExtensionNodeChild (typeof(ItemSetNode))]
	public class ItemDataNode: ExtensionNode
	{
	}
}