~ubuntu-branches/ubuntu/karmic/mono-addins/karmic

« back to all changes in this revision

Viewing changes to Test/CommandExtension/CommandExtensionNode.cs

  • Committer: Bazaar Package Importer
  • Author(s): Mirco Bauer
  • Date: 2007-07-14 12:07:48 UTC
  • Revision ID: james.westby@ubuntu.com-20070714120748-2elczfsjlrdsrpms
Tags: upstream-0.2
ImportĀ upstreamĀ versionĀ 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
using System;
 
3
using System.Diagnostics;
 
4
using Mono.Addins;
 
5
using SimpleApp;
 
6
 
 
7
namespace CommandExtension
 
8
{
 
9
        public class CommandExtensionNode: TypeExtensionNode, IWriter
 
10
        {
 
11
                [NodeAttribute]
 
12
                string title;
 
13
                
 
14
                [NodeAttribute]
 
15
                string command;
 
16
                
 
17
                public override object CreateInstance ()
 
18
                {
 
19
                        return this;
 
20
                }
 
21
                
 
22
                public string Title {
 
23
                        get { return title; }
 
24
                }
 
25
                
 
26
                public string Write ()
 
27
                {
 
28
                        return "cmd:" + command;
 
29
                }
 
30
        }
 
31
}