[Pharo-project] how can I use Nautilus with OCompletion?
I just took the Nautilus from jenkins, installed OCompletion there and OCompletion seems to work fine everywhere in the image but not in Nautilus. In the code pane...it doesn't appear anything. So...is there a way to make OCompletion to work with Nautilus? Thanks! -- Mariano http://marianopeck.wordpress.com
Probably, let me have a look ;) Ben On Feb 20, 2012, at 9:09 PM, Mariano Martinez Peck wrote:
I just took the Nautilus from jenkins, installed OCompletion there and OCompletion seems to work fine everywhere in the image but not in Nautilus. In the code pane...it doesn't appear anything. So...is there a way to make OCompletion to work with Nautilus?
Thanks!
-- Mariano http://marianopeck.wordpress.com
Can you tell me how to load OCompletion please ? Ben On Feb 20, 2012, at 9:09 PM, Mariano Martinez Peck wrote:
I just took the Nautilus from jenkins, installed OCompletion there and OCompletion seems to work fine everywhere in the image but not in Nautilus. In the code pane...it doesn't appear anything. So...is there a way to make OCompletion to work with Nautilus?
Thanks!
-- Mariano http://marianopeck.wordpress.com
On Mon, Feb 20, 2012 at 9:25 PM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
Can you tell me how to load OCompletion please ?
fetch conf from MetacelloRepository and then: (ConfigurationOfOCompletion project version: #stable) load
Ben
On Feb 20, 2012, at 9:09 PM, Mariano Martinez Peck wrote:
I just took the Nautilus from jenkins, installed OCompletion there and OCompletion seems to work fine everywhere in the image but not in Nautilus. In the code pane...it doesn't appear anything. So...is there a way to make OCompletion to work with Nautilus?
Thanks!
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
Well...now somehow the completion dialog appears but it throws NautilusUI(Object)>>doesNotUnderstand: #selectedClassOrMetaClass in: openXMenuFor: anEditor | theMenu | self closeMenu. context := menuMorph ifNotNil: [menuMorph context] ifNil: [self contextClass controller: self class: self model selectedClassOrMetaClass source: anEditor text string position: anEditor startIndex - 1]. self editor: anEditor. self expand. theMenu := self menuMorph controller: self position: (anEditor selectionPosition: context completionToken). theMenu isClosed ifFalse: [menuMorph := theMenu]. menuMorph moveDown; moveDown. On Mon, Feb 20, 2012 at 9:47 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
On Mon, Feb 20, 2012 at 9:25 PM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
Can you tell me how to load OCompletion please ?
fetch conf from MetacelloRepository and then:
(ConfigurationOfOCompletion project version: #stable) load
Ben
On Feb 20, 2012, at 9:09 PM, Mariano Martinez Peck wrote:
I just took the Nautilus from jenkins, installed OCompletion there and OCompletion seems to work fine everywhere in the image but not in Nautilus. In the code pane...it doesn't appear anything. So...is there a way to make OCompletion to work with Nautilus?
Thanks!
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
I have implemented the good method and uploaded the package OCompletionForPharo. I was about to send a message to Guillermo since it seems he is one of the maintainers :) Ben On Feb 20, 2012, at 10:53 PM, Mariano Martinez Peck wrote:
Well...now somehow the completion dialog appears but it throws NautilusUI(Object)>>doesNotUnderstand: #selectedClassOrMetaClass
in:
openXMenuFor: anEditor | theMenu | self closeMenu. context := menuMorph ifNotNil: [menuMorph context] ifNil: [self contextClass controller: self class: self model selectedClassOrMetaClass source: anEditor text string position: anEditor startIndex - 1].
self editor: anEditor. self expand. theMenu := self menuMorph controller: self position: (anEditor selectionPosition: context completionToken). theMenu isClosed ifFalse: [menuMorph := theMenu]. menuMorph moveDown; moveDown.
On Mon, Feb 20, 2012 at 9:47 PM, Mariano Martinez Peck <marianopeck@gmail.com> wrote:
On Mon, Feb 20, 2012 at 9:25 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote: Can you tell me how to load OCompletion please ?
fetch conf from MetacelloRepository and then:
(ConfigurationOfOCompletion project version: #stable) load
Ben
On Feb 20, 2012, at 9:09 PM, Mariano Martinez Peck wrote:
I just took the Nautilus from jenkins, installed OCompletion there and OCompletion seems to work fine everywhere in the image but not in Nautilus. In the code pane...it doesn't appear anything. So...is there a way to make OCompletion to work with Nautilus?
Thanks!
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
I think the method selectedClassOrMetaClass is not in the changes you pushed :) selectedClassOrMetaClass ^ self model selectedClass best cami On 2012-02-20, at 23:03, Benjamin wrote:
I have implemented the good method and uploaded the package OCompletionForPharo. I was about to send a message to Guillermo since it seems he is one of the maintainers :)
Ben
On Feb 20, 2012, at 10:53 PM, Mariano Martinez Peck wrote:
Well...now somehow the completion dialog appears but it throws NautilusUI(Object)>>doesNotUnderstand: #selectedClassOrMetaClass
in:
openXMenuFor: anEditor | theMenu | self closeMenu. context := menuMorph ifNotNil: [menuMorph context] ifNil: [self contextClass controller: self class: self model selectedClassOrMetaClass source: anEditor text string position: anEditor startIndex - 1].
self editor: anEditor. self expand. theMenu := self menuMorph controller: self position: (anEditor selectionPosition: context completionToken). theMenu isClosed ifFalse: [menuMorph := theMenu]. menuMorph moveDown; moveDown.
On Mon, Feb 20, 2012 at 9:47 PM, Mariano Martinez Peck <marianopeck@gmail.com> wrote:
On Mon, Feb 20, 2012 at 9:25 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote: Can you tell me how to load OCompletion please ?
fetch conf from MetacelloRepository and then:
(ConfigurationOfOCompletion project version: #stable) load
Ben
On Feb 20, 2012, at 9:09 PM, Mariano Martinez Peck wrote:
I just took the Nautilus from jenkins, installed OCompletion there and OCompletion seems to work fine everywhere in the image but not in Nautilus. In the code pane...it doesn't appear anything. So...is there a way to make OCompletion to work with Nautilus?
Thanks!
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
About Ocompletion we discussed with the workshop at bern that OCompletion breaks ECompletion so that it would be better to only use ECompletion and see how OCompletion could be made working without breaking ECompletion so that people can use the one they like. I like graphically ECompletion but functionally I prefer OCompletion. Now I understand that people prefer the inverse so it would be good to investigate this problem. Any taker? Stef
participants (4)
-
Benjamin -
Camillo Bruni -
Mariano Martinez Peck -
Stéphane Ducasse