11 comments
Comment actions Permalink

Does it uses tabs or spaces?

Tom


On Thu, 18 Jul 2002 14:32:55 -0700, "Jordan Zimmerman"
<jordanz@altura.com> wrote:

My first plugin is available at:
http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin

It aligns a block of variable declarations so that the variable names are in
a single column. E.g.

int i;
String s;
char c;

becomes:

int i;
String s;
char c;


--
Jordan Zimmerman
Altura International
Catalog City


0
Comment actions Permalink

Thanks. I was thinking about something like that...

Great plug-in.

Jordan Zimmerman wrote:

My first plugin is available at:
http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin

It aligns a block of variable declarations so that the variable names are in
a single column. E.g.

int i;
String s;
char c;

becomes:

int i;
String s;
char c;


--
Jordan Zimmerman
Altura International
Catalog City


0
Comment actions Permalink

Is it possible to configure idea to use this plug-in when it layout code
(after copy/paste or using the menu option "layout code") ?

Jordan Zimmerman wrote:

My first plugin is available at:
http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin

It aligns a block of variable declarations so that the variable names are in
a single column. E.g.

int i;
String s;
char c;

becomes:

int i;
String s;
char c;


--
Jordan Zimmerman
Altura International
Catalog City


0
Comment actions Permalink

It uses tabs only right now. At some point, I'll check the editor settings
and insert spaces if that's the editor's preference.

--
Jordan Zimmerman
Altura International
Catalog City
"Thomas Singer" <idea@regnis.de> wrote in message
news:3d37bb73.2576394@news.intellij.net...

Does it uses tabs or spaces?

>

Tom




0
Comment actions Permalink

I'm not sure. The plugin APIs are still very new to me and they aren't
documented. I'll look into it.

--
Jordan Zimmerman
Altura International
Catalog City
"Gael Billard" <gael.billard@highdeal.com> wrote in message
news:3D380A62.1040603@highdeal.com...

Is it possible to configure idea to use this plug-in when it layout code
(after copy/paste or using the menu option "layout code") ?




0
Comment actions Permalink

FYI

I just put up a new version that checks for non-writable files and puts up
the "Do You Want to Checkout" dialog.

--
Jordan Zimmerman
Altura International
Catalog City


0
Comment actions Permalink

Nice tool!

One API usage comment:
when dealing with editor read/change action it is better to derive from
EditorAction which automatically suports commands. In this case you should
also implement EditorActionHandler abstract class for read actions or
EditorWriteActionHandler for write actions. Last one also takes boring on
firing read-only modification event. Moreover, using action/handler
mechanism you may setup your own handlers for internal editor actions via
EditorActionManager.

--

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


"Jordan Zimmerman" <jordanz@altura.com> wrote in message
news:ah7c6b$4n2$1@is.intellij.net...

My first plugin is available at:
http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin

>

It aligns a block of variable declarations so that the variable names are

in

a single column. E.g.

>

int i;
String s;
char c;

>

becomes:

>

int i;
String s;
char c;

>
>

--
Jordan Zimmerman
Altura International
Catalog City

>
>


0
Comment actions Permalink

"Maxim Shafirov" <max@intellij.net> wrote in message
news:ah9gis$vfl$1@is.intellij.net...

Nice tool!

Thank you.

One API usage comment:
In this case you should
also implement EditorActionHandler abstract class for read actions or
EditorWriteActionHandler for write actions.


Is there an example or documentation on how to use this? It isn't clear from
looking at the Javadoc. I'll play around with it, though.

--
Jordan Zimmerman
Altura International
Catalog City


0
Comment actions Permalink

Docs are yet to come. It seems one isn't a strong point of IDEA's API.

--

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


"Jordan Zimmerman" <jordanz@altura.com> wrote in message
news:ah9hjt$7m0$1@is.intellij.net...

"Maxim Shafirov" <max@intellij.net> wrote in message
news:ah9gis$vfl$1@is.intellij.net...

Nice tool!

Thank you.

>

One API usage comment:
In this case you should
also implement EditorActionHandler abstract class for read actions or
EditorWriteActionHandler for write actions.

>

Is there an example or documentation on how to use this? It isn't clear

from

looking at the Javadoc. I'll play around with it, though.

>

--
Jordan Zimmerman
Altura International
Catalog City

>
>


0
Comment actions Permalink

I've figured out how to use EditorActionHandler and
EditorWriteActionHandler.

Thanks.

--
Jordan Zimmerman
Altura International
Catalog City


0
Comment actions Permalink

There's a new version that respects the "tab character" setting from the
application preferences.

--
Jordan Zimmerman
Altura International
Catalog City



0

Please sign in to leave a comment.