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

« back to all changes in this revision

Viewing changes to external/mono-addins/Test/UnitTests/ExtensionModel/ComplexNode.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
using System;
 
3
using Mono.Addins;
 
4
 
 
5
namespace UnitTests
 
6
{
 
7
        [ExtensionNode ("ItemSet", "A set of items")]
 
8
        [ExtensionNodeChild (typeof(ItemNode))]
 
9
        [ExtensionNodeChild (typeof(ItemSetNode))]
 
10
        public class ItemSetNode: ExtensionNode
 
11
        {
 
12
                [NodeAttribute ("label", true, Description="Item label")]
 
13
                public string Label;
 
14
                
 
15
                [NodeAttribute (Description="Item icon")]
 
16
                public string icon;
 
17
        }
 
18
        
 
19
        [ExtensionNode ("Item", "An item")]
 
20
        [ExtensionNodeChild (typeof(ItemDataNode))]
 
21
        [NodeAttribute ("info", typeof(string), Description="Some info")]
 
22
        public class ItemNode: ExtensionNode
 
23
        {
 
24
        }
 
25
        
 
26
        [ExtensionNode ("Data", "Item data")]
 
27
        [ExtensionNodeChild (typeof(ItemSetNode))]
 
28
        public class ItemDataNode: ExtensionNode
 
29
        {
 
30
        }
 
31
}