[ANN] Modifier Modifier Plugin 0.1

I've released Modifier Modifier Plugin 0.1.

It is available via the plugin manager. A plugin website will not be up until later tonight.

This plugin provides key-bindable actions for toggling modifiers for the current method, field, class, parameter, and variable, including synchronized, final, and static, as well as for cycling through possible access modifiers (private->(default)->protected->public). It also allows the user to specify a preferred modifier order, and provides an action to reorder a modifier list.

This plugin is not very mature and does not yet do three things that a plugin like this should obviously do:

1. Provide an intention to reorder modifiers according to your preferences
2. Provide an inspection for missorted modifiers according to your preferences
3. Allow you to select a series of fields/methods/etc. and change their modifiers as a batch operation

These things will come in a later version.

The actions this plugin provides are called "Toggle xxx" and "Re-Order Modifiers." To use them, bind keys to them, and then simply place the cursor anywhere reasonable on the line (before the parameter list, the open brace, etc., depending on whether it's a method, class, or what) and press the key.

11 comments
Comment actions Permalink

I've released Modifier Modifier Plugin 0.1.


Ah, and what happened to the CodeOutline plugin? :))

Vince.


0
Comment actions Permalink

I decided it was more of a proof of concept than a project. I don't find it very useful, so I stopped working on it.

0
Comment actions Permalink

Whoa! I actually use it, and like it. I love the way it gives me a bird's eye view of my code. It made navigating around my larger classes very easy. I don't have any specific enhancement requests at the moment, but I think it is definitely worth keeping up. Thanks for a very useful plugins, it's one of my favorites.

Tobin

0
Comment actions Permalink

Shucks.

Keith Lea wrote:

I decided it was more of a proof of concept than a project. I don't find it very useful, so I stopped working on it.

0
Comment actions Permalink

Another reason I stopped developing it was frustration with the OpenAPI, not being able to add listeners for things like code folding or highlight markup changes, and not being able to retrieve the color of a character in the editor.

I didn't think anyone really used it, if people have specific requests or bug reports, I'd like to hear them, and I might be able to implement/fix them.

0
Comment actions Permalink

The few threads that started here when you first put out the
plugin contained quite a few bug reports and good enhancements
requests if I remember correctly...

A lot of people found this plugin to be very useful. I still do :)

Vince.


"Keith Lea" <keith@cs.oswego.edu> wrote in message
news:16343837.1074811852742.JavaMail.itn@is.intellij.net...

Another reason I stopped developing it was frustration with the OpenAPI,

not being able to add listeners for things like code folding or highlight
markup changes, and not being able to retrieve the color of a character in
the editor.
>

I didn't think anyone really used it, if people have specific requests or

bug reports, I'd like to hear them, and I might be able to implement/fix
them.


0
Comment actions Permalink

My impression is that after you released the plugin, quite a lot of people
were really impressed. I use it all the time and would like to see some
of the enhancements suggested while ago:
- scrollbar (perhaps very narrow) for long files
- support for colors
- synchronization with editor scrollbar (don't expect this to happen but
would be nice to have)

r.


Keith Lea wrote:

Another reason I stopped developing it was frustration with the OpenAPI, not
being able to add listeners for things like code folding or highlight markup
changes, and not being able to retrieve the color of a character in the
editor.

I didn't think anyone really used it, if people have specific requests or bug
reports, I'd like to hear them, and I might be able to implement/fix them.

0
Comment actions Permalink

My impression is that after you released the plugin,
quite a lot of people
were really impressed. I use it all the time and
would like to see some
of the enhancements suggested while ago:
- scrollbar (perhaps very narrow) for long files


This is definitely needed. I think if I implemented this, I would also implement zooming, probably only to powers of 2, but I don't know.

- support for colors


As far as I can see, the OpenAPI doesn't allow access to the actual editor colors. One idea I had, though, was to color method declarations a certain color, field declarations another, and so on.

- synchronization with editor scrollbar (don't expect
this to happen but
would be nice to have)


This would be cool, maybe I'll look into it. It would only be valid when the outline window was on the right, but that's probably where most people put it.


In response to Vincent:

I kind of thought it was more of a novelty to most people than something they actually used while coding. That's what it is to me, really, because it becomes less useful due to my large file header (and the plugin can't reliably implement code folding until there's a listener API for code folding operations).

There were so many ideas and requests given when I first posted the plugin, but I'd like to know which ones people want the most, and not just people who had ideas, but people who actually use it while coding.

0
Comment actions Permalink

I kind of thought it was more of a novelty to most people than something they
actually used while coding. That's what it is to me, really, because it
becomes less useful due to my large file header (and the plugin can't
reliably implement code folding until there's a listener API for code folding
operations).


For me (if you are interested in preferences) the folding in the outline
window is NOT desired. I want to fold methods to have less stuff in editor
but in the outline I'd like (or, I BELIEVE I would like) to see the whole
unfolded file.
Don't know those APIs but I can easily imagine the view rectangle show full
extent of the editor view (including all folded areas) - that means sometimes
it is smaller, sometimes very tall (if long methods are folded and in the view).

0
Comment actions Permalink

I agree with Richard about the folding. If you want to add it as an option, that's fine with me, but I actually like seeing my whole file. It helps me become more familiar with the class, and makes navigation very easy. If different sections of code were folded all the time, it could make it harder to find something you're looking for.

Tobin

0
Comment actions Permalink

Want: Zooming, Scrolling
Kind of want: Color
Don't care so much: Folding

0

Please sign in to leave a comment.