~do-plugins/do-plugins/future

« back to all changes in this revision

Viewing changes to ManLookUp/src/ManLookUpAction.cs

  • Committer: David Siegel
  • Date: 2008-12-23 19:31:02 UTC
  • Revision ID: david@david-desktop-20081223193102-usu0br536pvdr8wq
Fix ManLookUp -- bad name

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                public override IEnumerable<Type> SupportedItemTypes {
73
73
                        get {
74
74
                                return new Type[] {
75
 
                                        typeof(ITextItem),typeof(ManLookUpItem),typeof(ApplicationItem)
 
75
                                        typeof(ITextItem),typeof(ManLookUpItem),typeof(IApplicationItem)
76
76
                                };
77
77
                        }
78
78
           
93
93
                        bool rc  = false;
94
94
                        string execStr;
95
95
 
96
 
                        if (!(item is ApplicationItem)) {                       
 
96
                        if (!(item is IApplicationItem)) {                      
97
97
                                rc = true;                              
98
98
                        } else {
99
99
                                
100
 
                                ApplicationItem appItem = item as ApplicationItem;
 
100
                                IApplicationItem appItem = item as IApplicationItem;
101
101
 
102
102
                                //grab the parameter we'll be using for whatis command from the Exec string
103
103
                                //note, we use whatis becuase redirecting its output is a lot more efficient
141
141
                /// <returns>
142
142
                /// A <see cref="System.String"/>
143
143
                /// </returns>
144
 
                private static string getExecutableName (ApplicationItem appItem) 
 
144
                private static string getExecutableName (IApplicationItem appItem) 
145
145
                {                       
146
146
                        string execStr;
147
147
                        Match m;
186
186
                        string keyword = null;
187
187
 
188
188
                        //ok, was it plain text, an application item, or one of our own?
189
 
                        if (items.First () is ApplicationItem) {
190
 
                                keyword = this.getExecutableName (items.First () as ApplicationItem);
 
189
                        if (items.First () is IApplicationItem) {
 
190
                                keyword = this.getExecutableName (items.First () as IApplicationItem);
191
191
                        } else if (items.First () is ManLookUpItem) {
192
192
                                ManLookUpItem keyworditem = items.First () as ManLookUpItem;
193
193
                                keyword = keyworditem.Text;