ok I figured some things out and created the relevant methods but I am
getting a MNU with copyMethod: toTheClass:

Array(Object)>>doesNotUnderstand: #realClass
PackageTreeNautilusUI(AbstractNautilusUI)>>copyMethod:toTheClass:
PackageTreeNautilusUI(NautilusUI)>>pasteMethod
MethodWidget class>>elementsMenu: in Block: [ target pasteMethod ]
BlockClosure>>cull:
ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent: in Block: [ ...
BlockClosure>>ensure:
CursorWithMask(Cursor)>>showWhile:
ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent:
ToggleMenuItemMorph(MenuItemMorph)>>mouseUp:
ToggleMenuItemMorph(MenuItemMorph)>>handleMouseUp:
MouseButtonEvent>>sentTo:
ToggleMenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
ToggleMenuItemMorph(Morph)>>processEvent:using:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuMorph(Morph)>>processEvent:using:
MenuMorph(Morph)>>processEvent:
MenuMorph>>handleFocusEvent:
HandMorph>>sendFocusEvent:to:clear: in Block: [ ...
BlockClosure>>on:do:
WorldMorph(PasteUpMorph)>>becomeActiveDuring:
HandMorph>>sendFocusEvent:to:clear:
HandMorph>>sendEvent:focus:clear:
HandMorph>>sendMouseEvent:
HandMorph>>handleEvent:
HandMorph>>processEvents
WorldState>>doOneCycleNowFor: in Block: [ :h | ...

you can find my code here

http://www.smalltalkhub.com/#!/~kilon/copyMethod/

Am I doing something wrong ?

Just for your information I added 2 menu entries and 2 corresponding
methods , one for Copy and one for Paste.



On Sun, Dec 8, 2013 at 12:27 AM, Benjamin <
[email protected]> wrote:

> The menus are on AbstractNautilusUI class, protocol “menus”
>
> You can find how to move methods in AbstractTool.
> I guess the copy will be there too :)
>
> Ben
>
> On 07 Dec 2013, at 23:16, kilon alios <[email protected]> wrote:
>
> Check Mate in 2 moves. Well played my friend, well played.
>
>
> :P
>
>
> Ok I will bite , how I figure out the right click menu and the copy
> function ? Which classes and methods should I look at ? Help me understand
> and Santa Clause will bring the slice down your chimney.
>
>
> On Sun, Dec 8, 2013 at 12:11 AM, Benjamin <
> [email protected]> wrote:
>
>> Was not plan, but if someone propose a slice, it will get in :P
>>
>> Ben
>>
>> On 07 Dec 2013, at 22:53, kilon alios <[email protected]> wrote:
>>
>> thanks. Is there any chance this will make it into the right click menu ?
>> Looks like quite essential to me. Also it would make it unnecessary to open
>> a new nautilus window for the shake of copying to an another package.
>>
>>
>> On Sat, Dec 7, 2013 at 11:26 PM, Benjamin <
>> [email protected]> wrote:
>>
>>> drag and drop them holding shift (you should see a little red “+”)
>>>
>>> Ben
>>>
>>> On 07 Dec 2013, at 22:15, kilon alios <[email protected]> wrote:
>>>
>>> Hey there I was wondering how to copy a couple of methods I have from
>>> one class to another. I can't find anything that can do this from right
>>> clicking the method.
>>>
>>>
>>>
>>
>>
>
>

Reply via email to