[lively-kernel] finding a class

Robert Krahn robert.krahn at gmail.com
Tue May 13 09:40:10 CEST 2014


THe manual method for searching is to press CMD-Shift-F / Ctrl-Shift-F
inside a text (searchign for selection) or outside. A code search window
will pop up. The search will find what's loaded into the Lively runtime
(classes, modules, methods, objects). By pressing the "search on server"
checkbox you are switching to a completing string search that covers all
code that the server has access to.

Best,
Robert


On Mon, May 12, 2014 at 4:55 PM, Carlos Crosetti <
carlos.crosetti at afilha.com.ar> wrote:

>  Thanks Lars, the programmatic method you explained  is very useful.
> However I was interested in a manual method to find a class. either in the
> System Code Browser or thru the world menu
>
> On 05/12/2014 03:31 PM, Lars wrote:
>
> Hello Carlos,
> in oder to get to the TodoItemProto class, just ask the morph for its
> constructor. When printed, that gives you the class' name. If you want to
> know where the class is from, ask the constructor for it's source module:
>
>  var klass = this.get("TodoItemProto").constructor
> var source = this.get("TodoItemProto").constructor.sourceModule
>
>  Methods defined using the lively class scheme have an attribute
> "declaredClass" which contains a string which should yield the class object
> upon evaluation.
>
>  Lars
>
>
> On 12 May 2014 11:08, <carlos.crosetti at afilha.com.ar> wrote:
>
>>  Hi, I am familiar with Smalltalk and teaching myself the Lively Kernel.
>> While browsing the TodoList via object editor I sea fragment of code like
>> this
>>
>> var item = this.get("TodoItemProto").copy();
>>
>>
>> How do I find the TodoItemProto class? Is there a way to select the class
>> name from a method and jump to the class browser open in that target class?
>>
>> Regards, Carlos
>>
>>
>>
>>
>> _______________________________________________
>> lively-kernel mailing list
>> lively-kernel at hpi.uni-potsdam.de
>> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
>>
>>
>
>
> _______________________________________________
> lively-kernel mailing list
> lively-kernel at hpi.uni-potsdam.de
> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hpi.uni-potsdam.de/archive/lively-kernel/attachments/20140513/e81ba377/attachment-0001.html>


More information about the lively-kernel mailing list