~do-core/do/trunk

« back to all changes in this revision

Viewing changes to PluginLib/ICommand.stub

  • Committer: djsiegel at gmail
  • Date: 2007-09-14 17:56:28 UTC
  • Revision ID: djsiegel@gmail.com-20070914175628-687padig4f0feh5f
adding Monodevelop-managed branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
 
 
3
using Do.PluginLib;
 
4
 
 
5
namespace MyNamespace
 
6
{
 
7
        
 
8
        public class MyCommand : ICommand
 
9
        {
 
10
        
 
11
                public MyCommand ()
 
12
                {
 
13
                }
 
14
                
 
15
                public string Name {
 
16
                        get { return "Run"; }
 
17
                }
 
18
                
 
19
                public string Icon {
 
20
                        get { return "gnome-run"; }
 
21
                }
 
22
                
 
23
                public Type[] SupportedTypes {
 
24
                        get {
 
25
                                return new Type[] {
 
26
                                        /* typeof (MyItem) */
 
27
                                };
 
28
                        }
 
29
                }
 
30
                
 
31
                public Type[] SupportedIndirectTypes {
 
32
                        get {
 
33
                                return new Type[] {
 
34
                                        /* typeof (MyIndirectItem) */
 
35
                                };
 
36
                        }
 
37
                }
 
38
                
 
39
                public void PerformOnItem (IItem item)
 
40
                {
 
41
                        switch (item.Type) {
 
42
                        case "SupportedType1":
 
43
                                break;
 
44
                        }
 
45
                }
 
46
                
 
47
                public void PerformOnItemWithIndirectItem (IItem item, IItem iitem)
 
48
                {
 
49
                        switch (item.Type) {
 
50
                        case "SupportedType1":
 
51
                                break;
 
52
                        }
 
53
                }
 
54
                
 
55
        }
 
56
}