<div dir="ltr">Hi Hilaire,<br><div> As Juan says, knowing the type of the receiver helps a lot to propose the right messages to show. With LiveTyping code completion works as in a statically typed language.</div><div> What are you expecting from the code completion? What do you need when you say "is not limited to the class I want"?</div><div><br></div><div>Hernan.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 22, 2022 at 10:24 AM Juan Vuletich via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
    
  
  <div bgcolor="#ffffff">
    Hi Hilaire,<br>
    <br>
    On 12/22/2022 5:37 AM, Hilaire Fernandes via Cuis-dev wrote:
    <blockquote type="cite">
      
      <p><font size="4">Hi, <br>
        </font></p>
      <p>In the DrGSmalltalkSketchEditor (subclass of DialogPanel), to
        have code completion on a given class (it is set in a preference
        depending on the locale, to make code completion to methods
        translated in locale language) I implemented the methods below:</p>
      <p><font face="monospace">computeMessageEntriesIn:
          aDynamicTypingSmalltalkCompleter ofTempVarNamed: aString <br>
          <br>
              aDynamicTypingSmalltalkCompleter <br>
                  computeMessageEntriesForClassOrNil: (DrGeoSystem
          preferences at: #programmingCodeCompletion)<br>
        </font></p>
      <p><font face="monospace">autoCompleterClassFor: textGetter<br>
               SmalltalkCompleter</font><br>
      </p>
      <p>However the code completion is not limited to the class I want.</p>
      <p>I think it used to work -- or may be I was confused, which is
        likely too.</p>
      <p>Any idea?<br>
      </p>
      <p>Thanks a lot</p>
      <p>Hilaire<br>
      </p>
      <pre cols="72">-- 
GNU Dr. Geo
<a href="http://drgeo.eu" target="_blank">http://drgeo.eu</a>
<a href="http://blog.drgeo.eu" target="_blank">http://blog.drgeo.eu</a></pre>
    </blockquote>
    <br>
    Take a look at the AutoCompleter hierarchy. See, for instance,
    ClassNameCompleter, added by Hernán some time ago. You can build
    your own in a similar fashion.<br>
    <br>
    If you follow #computeEntries in SmalltalkCompleter, you'll see how
    the set of messages offered is restricted to the receiver, when we
    know about it.<br>
    <br>
    Hope this helps.<br>
    <br>
    Cheers,<br>
    <pre cols="72">-- 
Juan Vuletich
<a href="http://cuis.st" target="_blank">cuis.st</a>
<a href="http://github.com/jvuletich" target="_blank">github.com/jvuletich</a>
<a href="http://researchgate.net/profile/Juan-Vuletich" target="_blank">researchgate.net/profile/Juan-Vuletich</a>
<a href="http://independent.academia.edu/JuanVuletich" target="_blank">independent.academia.edu/JuanVuletich</a>
<a href="http://patents.justia.com/inventor/juan-manuel-vuletich" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a>
<a href="http://linkedin.com/in/juan-vuletich-75611b3" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a>
<a href="http://twitter.com/JuanVuletich" target="_blank">twitter.com/JuanVuletich</a></pre>
  </div>

-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></strong></span></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div style="font-size:12.8px"><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></strong></span></div><div style="font-size:12.8px"><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div>