<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Hilaire,<br>
<br>
On 12/22/2022 5:37 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:996069dc-63c6-3c86-5e94-cf1868948ccf@free.fr"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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 class="moz-signature" cols="72">--
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://blog.drgeo.eu">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 class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>