plugin instructions?

11 views
Skip to first unread message

rogerdpack

unread,
Aug 22, 2009, 7:55:46 PM8/22/09
to Arcadia ruby ide
I can't seem to find the old instructions on building plugins--where
do those live? Anyone?
Thanks!
-r

rogerdpack

unread,
Aug 22, 2009, 8:10:27 PM8/22/09
to Arcadia ruby ide
Specifically how to add yourself to the file menu :)

Also, is this a bug or not?

double click on "class=AckInFilesService" should select words, not
whole line
?
Thanks!
-r

Antonio Galeone

unread,
Aug 24, 2009, 3:50:52 PM8/24/09
to arcadia-...@googlegroups.com
on google group "How to extend Arcadia"

2009/8/23 rogerdpack <rogerp...@gmail.com>

Antonio Galeone

unread,
Aug 24, 2009, 3:55:27 PM8/24/09
to arcadia-...@googlegroups.com
at the end  of "How to extend Arcadia".
I must convert the old menu in this way, but you can find an example (in comented state) in conf/arcadia.conf. In particular for adding ex. a new item to File context:

user_menu.contexts=File
user_menu.File.context_path=/
user_menu.File=open2
user_menu.File.open2.name=open2
user_menu.File.open2.hint=Open 2
user_menu.File.open2.caption=Open 2
user_menu.File.open2.image_data=OPEN_GIF
user_menu.File.open2.event_class=OpenBufferEvent

 

2009/8/23 rogerdpack <rogerp...@gmail.com>

antonio.galeone

unread,
Aug 24, 2009, 3:58:53 PM8/24/09
to Arcadia ruby ide
"How to extend Arcadia" could be written better (in english)

Thanks

On 24 Ago, 21:55, Antonio Galeone <antonio.gale...@gmail.com> wrote:
> at the end  of "How to extend Arcadia".
> I must convert the old menu in this way, but you can find an example (in
> comented state) in conf/arcadia.conf. In particular for adding ex. a new
> item to File context:
>
> user_menu.contexts=File
> user_menu.File.context_path=/
> user_menu.File=open2
> user_menu.File.open2.name=open2
> user_menu.File.open2.hint=Open 2
> user_menu.File.open2.caption=Open 2
> user_menu.File.open2.image_data=OPEN_GIF
> user_menu.File.open2.event_class=OpenBufferEvent
>
> 2009/8/23 rogerdpack <rogerpack2...@gmail.com>

Roger Pack

unread,
Aug 26, 2009, 6:11:20 PM8/26/09
to arcadia-...@googlegroups.com
> at the end  of "How to extend Arcadia".
> I must convert the old menu in this way, but you can find an example (in
> comented state) in conf/arcadia.conf. In particular for adding ex. a new
> item to File context:
>
> user_menu.contexts=File
> user_menu.File.context_path=/
> user_menu.File=open2
> user_menu.File.open2.name=open2
> user_menu.File.open2.hint=Open 2
> user_menu.File.open2.caption=Open 2
> user_menu.File.open2.image_data=OPEN_GIF
> user_menu.File.open2.event_class=OpenBufferEvent

Oh wow that's nice. You mind if I move the instructions to github [so
that people know where to find them more easily?]

Also with plugins...is the desire that all plugins are loaded always,
at startup?
Thoughts?
Thanks.
-r

antonio.galeone

unread,
Aug 27, 2009, 9:42:09 AM8/27/09
to Arcadia ruby ide
ok , no problem for moving the instructions (although it seems a bit
difficult to work with the html on github!)
Yes, a "build" event is sent to all plugins at startup, unless the
plugin has the property active=no.
Like in "search in file" or "debug" a plugin can really be activated
in response to another event, but the build is need to trigger an
listener on that other event (ex SearchInFilesEvent).

Antonio

rogerdpack

unread,
Oct 7, 2009, 7:22:12 PM10/7/09
to Arcadia ruby ide
> user_menu.contexts=File
> user_menu.File.context_path=/
> user_menu.File=open2
> user_menu.File.open2.name=open2
> user_menu.File.open2.hint=Open 2
> user_menu.File.open2.caption=Open 2
> user_menu.File.open2.image_data=OPEN_GIF
> user_menu.File.open2.event_class=OpenBufferEvent

I assume there's no way to add oneself to the right click menu?
Also is there a way to get the currently raised file's name? (one
you're currently editing).
Ex:
within OpenBufferEvent, above, if I want to edit the file, or replace
its text with something?
Thanks!
-r

Antonio Galeone

unread,
Oct 8, 2009, 11:52:01 AM10/8/09
to arcadia-...@googlegroups.com
Hi, right_click_menu can be another user interaction type:
1) user_menu (implemented)
2) user_toolbar (implemented)
3) user_keybindig (todo)
4) user_right_click_menu (todo)


in a-contract.rb:

class BufferEvent < ArcadiaEvent # Abstract
  attr_accessor :file, :title, :text, :row, :col
  # if file==nil && title==nil buffer=current buffer
end

angal


2009/10/8 rogerdpack <roger...@gmail.com>

Roger Pack

unread,
Oct 8, 2009, 12:07:22 PM10/8/09
to arcadia-...@googlegroups.com
> 4) user_right_click_menu (todo)

I think it might be useful.
-r

Reply all
Reply to author
Forward
0 new messages