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

« back to all changes in this revision

Viewing changes to src/addins/CBinding/Gui/DataProvider.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:
43
43
 
44
44
namespace CBinding
45
45
{
46
 
        public class ParameterDataProvider : IParameterDataProvider
 
46
        public class ParameterDataProvider : MonoDevelop.Ide.CodeCompletion.ParameterDataProvider
47
47
        {
48
48
                private Mono.TextEditor.TextEditorData editor;
49
49
                private List<Function> functions = new List<Function> ();
50
 
                int startOffset;
51
50
 
52
 
                public int StartOffset {
53
 
                        get {
54
 
                                return startOffset;
55
 
                        }
56
 
                }       
57
 
                
58
 
                public ParameterDataProvider (int startOffset, Document document, ProjectInformation info, string functionName)
 
51
                public ParameterDataProvider (int startOffset, Document document, ProjectInformation info, string functionName) :base (startOffset)
59
52
                {
60
 
                        this.startOffset = startOffset;
61
53
                        this.editor = document.Editor;
62
54
                        
63
55
                        foreach (Function f in info.Functions) {
80
72
                }
81
73
                
82
74
                // Returns the number of methods
83
 
                public int Count {
 
75
                public override int Count {
84
76
                        get { return functions.Count; }
85
77
                }
86
78
                
150
142
                }
151
143
                
152
144
                // Returns the number of parameters of the specified method
153
 
                public int GetParameterCount (int overload)
 
145
                public override int GetParameterCount (int overload)
154
146
                {
155
147
                        return functions[overload].Parameters.Length;
156
148
                }
157
 
                
158
 
                public bool AllowParameterList (int overload)
 
149
                public override string GetParameterName (int overload, int paramIndex)
 
150
                {
 
151
                        return "";
 
152
                }
 
153
                public override bool AllowParameterList (int overload)
159
154
                {
160
155
                        return false;
161
156
                }