7 comments
Comment actions Permalink

Cool!

May be you can use some kind of subtle highlighting for the variable, class
or method scopes (where a variable is available, the method body or the
class body accordingly) by using a light gray like the WindowsXP explorer
shows which column is the sorted one (see attached gif, I circled the white
and gray in red).

Just a thought...

Also a question: Why is the cursor not exactly at the beginning of the
context, but a line or two above it in many cases?
For exampele, here is the code:
private List getTreeUpdates(TreeNode tree, EventQueuePointer pointer) {
List events = eventQueue.getEvents(pointer);
return getTreeUpdates(tree, events);
}
I put the cursor on the last reference to events and open the context
viewer. It opens with the first line being the method declaration, with the
cursor at the end of the line, whereas the events variable is diclared one
line below that.

Amnon

"kesh" <ksibilev@yahoo.com> wrote in message
news:b0s6bu$fil$1@is.intellij.net...

New version is available at:
http://www.intellij.org/twiki/bin/view/Main/ContextViewerPlugin

>

Changes:
- When in the Context Viewer, you can press Enter to open an editor to

edit

the context source.
- Bugfixes.
- Plugin added to PluginManager registry.

>

/kesha

>
>





Attachment(s):
GrayExample.gif
0
Comment actions Permalink

What classes does it work on? For me, it only seems to work on classes that
I've written. It doesn't seem to work with Java classes even though I have
the source for them include in my sourcepath.

"kesh" <ksibilev@yahoo.com> wrote in message
news:b0s6bu$fil$1@is.intellij.net...

New version is available at:
http://www.intellij.org/twiki/bin/view/Main/ContextViewerPlugin

>

Changes:
- When in the Context Viewer, you can press Enter to open an editor to

edit

the context source.
- Bugfixes.
- Plugin added to PluginManager registry.

>

/kesha

>
>


0
Comment actions Permalink

By default it's disabled. Currently there is no UI to configure it. I'll
work on that later.
For now you can go to your project's iws file, find there and modify to true. /kesha "Brad Lane" ]]> wrote in message
news:b0sdo8$r95$1@is.intellij.net...

What classes does it work on? For me, it only seems to work on classes

that

I've written. It doesn't seem to work with Java classes even though I have
the source for them include in my sourcepath.

>

"kesh" <ksibilev@yahoo.com> wrote in message
news:b0s6bu$fil$1@is.intellij.net...

New version is available at:
http://www.intellij.org/twiki/bin/view/Main/ContextViewerPlugin

>

Changes:
- When in the Context Viewer, you can press Enter to open an editor to

edit

the context source.
- Bugfixes.
- Plugin added to PluginManager registry.

>

/kesha

>
>

>
>


0
Comment actions Permalink

Oops, I meant option. "kesh" ]]> wrote in message
news:b0sefg$see$1@is.intellij.net...

By default it's disabled. Currently there is no UI to configure it. I'll
work on that later.
For now you can go to your project's iws file, find there <component
name="ContextViewer"> and modify
<option name="DECOMPILE_CLASSES" value="false" /> to true.

>

/kesha

>

"Brad Lane" <lanebr@ncs.com> wrote in message
news:b0sdo8$r95$1@is.intellij.net...

What classes does it work on? For me, it only seems to work on classes

that

I've written. It doesn't seem to work with Java classes even though I

have

the source for them include in my sourcepath.

>

"kesh" <ksibilev@yahoo.com> wrote in message
news:b0s6bu$fil$1@is.intellij.net...

New version is available at:
http://www.intellij.org/twiki/bin/view/Main/ContextViewerPlugin

>

Changes:
- When in the Context Viewer, you can press Enter to open an editor to

edit

the context source.
- Bugfixes.
- Plugin added to PluginManager registry.

>

/kesha

>
>

>
>

>
>


0
Comment actions Permalink


"Amnon I. Govrin" <agovrin@freshwater.com> wrote in message
news:b0sbmr$o0c$1@is.intellij.net...

Cool!

>

May be you can use some kind of subtle highlighting for the variable,

class

or method scopes (where a variable is available, the method body or the
class body accordingly) by using a light gray like the WindowsXP explorer
shows which column is the sorted one (see attached gif, I circled the

white

and gray in red).

>

Just a thought...


I'll think about it. Basically it requires another PSI tree scanning using
PsiElementVisitor. It shouldn't be difficult.

>

Also a question: Why is the cursor not exactly at the beginning of the
context, but a line or two above it in many cases?
For exampele, here is the code:
private List getTreeUpdates(TreeNode tree, EventQueuePointer pointer) {
List events = eventQueue.getEvents(pointer);
return getTreeUpdates(tree, events);
}
I put the cursor on the last reference to events and open the context
viewer. It opens with the first line being the method declaration, with

the

cursor at the end of the line, whereas the events variable is diclared one
line below that.

>

Amnon


Yeah, it've fixed it already. I was trying to fix some strange behavior of
ScrollingModel when tool window is in the floating mode and too small to
display the whole source line. As I see it didn't work out. :(

Thanks
/kesha


0
Comment actions Permalink

Nice Plugin. One feature I would like to see (that I have not see
requested) is the inclusion of the class name of the context source. I
think it could fit in the ContextViewer title bar after the method
signature.

Something like this (note: text may have wrapped)...
ContextViewer - protected void foo(String sArg, Integer iArg) in
]]>

If CONTEXT_SOURCE_CLASS_NAME == this then display 'this' else the class
name...

I hope that is clear and useful...

jm



kesh wrote, On 1/24/2003 2:06 PM:

New version is available at:
http://www.intellij.org/twiki/bin/view/Main/ContextViewerPlugin

Changes:
- When in the Context Viewer, you can press Enter to open an editor to edit
the context source.
- Bugfixes.
- Plugin added to PluginManager registry.

/kesha


0
Comment actions Permalink

That is a good idea. It will be available in the next build.

Thanks.
/kesha

0

Please sign in to leave a comment.