IntelliJ 3.0 - Structure Window

  • this was posted on the web-forums, but will use Usenet from now on :) *


Hiya,

I have an idea (no pun intended :) for a plugin, but I need to be able to
play with the Structure window. Having a look at the API's I can't see
anything pops right out at me for gaining access to the tree.

Would anyone point me in the right direction?

Ta.

-=david=-


0
4 comments

David,

Which access to structure do you need?

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0

Hiya,
Basically what I want to do is detect whenever someone right-clicks on a
method that brings up the context menu. I wish to add my action to this
menu that I can insert my action into this menu, but only when methods
are selected.
-=david=-

"Mike Aizatsky" <mike@intellij.com> wrote in message
news:aqti22$dtm$1@is.intellij.net...

David,

>

Which access to structure do you need?

>

--
Best regards,
Mike Aizatsky.
------------------------------
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>


0

Well, adding an action to the Popup is done in the normal way.
As far as detecting method selection, sounds like you would
have to use the unsupported PSI interface (mentioned elsewhere
in this newsgroup).

Does anyone have a link handy?

David Harrigan wrote:

Hiya,
Basically what I want to do is detect whenever someone right-clicks on a
method that brings up the context menu. I wish to add my action to this
menu that I can insert my action into this menu, but only when methods
are selected.
-=david=-

"Mike Aizatsky" <mike@intellij.com> wrote in message
news:aqti22$dtm$1@is.intellij.net...

>>David,
>>
>>Which access to structure do you need?
>>
>>--
>>Best regards,
>>Mike Aizatsky.
>>----


>>JetBrains, Inc / IntelliJ Software
>>http://www.intellij.com
>>"Develop with pleasure!"
>>
>>




--

Erb

==============================================================
"The only time I like in the morning is afternoon."
- Russell D. Cooper

"If you do everything, then you're all done."
- Melissa F. Cooper

"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

0

Hiya,

So far, I've managed to get my entry added to this group-id:-

StructureViewPopupMenu

Got the action and implementation classes done...now for the
hard work :)

-=david=-

p.s., thanks to PSIViewer by Andrew Armstrong for lots of helpful
tips and Mike Aizatsky

"Erb" <dont@evenbother.com> wrote in message
news:aqtpg2$voc$1@is.intellij.net...

Well, adding an action to the Popup is done in the normal way.
As far as detecting method selection, sounds like you would
have to use the unsupported PSI interface (mentioned elsewhere
in this newsgroup).

>

Does anyone have a link handy?

>

David Harrigan wrote:

Hiya,
Basically what I want to do is detect whenever someone right-clicks on a
method that brings up the context menu. I wish to add my action to this
menu that I can insert my action into this menu, but only when methods
are selected.
-=david=-

>

"Mike Aizatsky" <mike@intellij.com> wrote in message
news:aqti22$dtm$1@is.intellij.net...

>
>>David,
>>
>>Which access to structure do you need?
>>
>>--
>>Best regards,
>>Mike Aizatsky.
>>------------------------------
>>JetBrains, Inc / IntelliJ Software
>>http://www.intellij.com
>>"Develop with pleasure!"
>>
>>
>
>
>

>
>

--

>

Erb

>

==============================================================
"The only time I like in the morning is afternoon."
- Russell D. Cooper

>

"If you do everything, then you're all done."
- Melissa F. Cooper

>

"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

>


0

Please sign in to leave a comment.