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

« back to all changes in this revision

Viewing changes to src/addins/CSharpBinding/MonoDevelop.CSharp.CodeGeneration/AbstractGenerateAction.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:
39
39
{
40
40
        public abstract class AbstractGenerateAction : IGenerateAction
41
41
        {
42
 
                TreeStore store = new TreeStore (typeof(bool), typeof(Gdk.Pixbuf), typeof(string), typeof(IEntity));
 
42
                TreeStore store = new TreeStore (typeof(bool), typeof(Gdk.Pixbuf), typeof(string), typeof(object));
43
43
                CodeGenerationOptions options;
44
44
                
45
45
                public CodeGenerationOptions Options {
83
83
                                        Store.AppendValues (false, ImageService.GetPixbuf (member.GetStockIcon (), IconSize.Menu), ambience.GetString (member, OutputFlags.ClassBrowserEntries), member);
84
84
                                        continue;
85
85
                                }
86
 
                                
 
86
 
 
87
                                var tuple = obj as Tuple<IMember, bool>;
 
88
                                if (tuple != null) {
 
89
                                        Store.AppendValues (false, ImageService.GetPixbuf (tuple.Item1.GetStockIcon (), IconSize.Menu), ambience.GetString (tuple.Item1, OutputFlags.ClassBrowserEntries), tuple);
 
90
                                        continue;
 
91
                                }
 
92
 
87
93
                                var variable = obj as IVariable;
88
94
                                if (variable != null)
89
95
                                        Store.AppendValues (false, ImageService.GetPixbuf (variable.GetStockIcon (), IconSize.Menu), variable.Name, variable);
90
 
                                
91
96
                        }
92
97
                        
93
98
                        treeView.Model = store;