~cszikszoy/do-plugins/pastebin

« back to all changes in this revision

Viewing changes to Launchpad/src/LaunchpadBlueprintsItem.cs

  • Committer: David Siegel
  • Date: 2008-06-02 16:09:11 UTC
  • Revision ID: dave@x-20080602160911-5bc56q3okv27pg7y
Added GNOME Terminal plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
                public string Icon
34
34
                { 
35
 
                        get { return LaunchpadIcons.Instance.GetIconPath("LaunchpadBlueprints.png"); }
 
35
                        get { return "LaunchpadBlueprints.png@" + GetType ().Assembly.FullName; }
36
36
                }
37
37
 
38
38
                public bool SupportsItems(IItem[] items)
39
39
                {
 
40
            if (items == null) { return false; }
40
41
                        //Package name can't have a space
41
42
                        Regex numbers = new Regex(@"\s+");
42
43
                        return !numbers.IsMatch((items[0] as ITextItem).Text);
56
57
 
57
58
                public string Icon
58
59
                { 
59
 
                        get { return LaunchpadIcons.Instance.GetIconPath("LaunchpadBlueprints.png"); }
 
60
                        get { return "LaunchpadBlueprints.png@" + GetType ().Assembly.FullName; }
60
61
                }
61
62
 
62
63
                public bool SupportsItems(IItem[] items)
80
81
                public string Description { get { return "Register a blueprint at Launchpad"; } }
81
82
                public string Icon
82
83
                { 
83
 
                        get { return LaunchpadIcons.Instance.GetIconPath("LaunchpadBlueprints.png"); }
 
84
                        get { return "LaunchpadBlueprints.png@" + GetType ().Assembly.FullName; }
84
85
                }
85
86
 
86
87
                public bool SupportsItems(IItem[] items)