Jalopy plugin?

Hello,

I've found an very good, Open Source code beautifier called Jalopy
(http://jalopy.sourceforge.net/). Maybe someone has enough time to
integrate it into IDEA?

Tom

0

just do it!
"Thomas Singer" <idea@regnis.de> a ?crit dans le message de news:
3d186a27.22901130@news.intellij.net...

Hello,

>

I've found an very good, Open Source code beautifier called Jalopy
(http://jalopy.sourceforge.net/). Maybe someone has enough time to
integrate it into IDEA?

>

Tom



0

Or not. IDEA already can do 95% of what is needed.

-sms

"Jean-Charles BERNARD" <jcbernard@calendra.com> wrote in message
news:af9src$9ui$1@is.intellij.net...

just do it!
"Thomas Singer" <idea@regnis.de> a ?crit dans le message de news:
3d186a27.22901130@news.intellij.net...

Hello,

>

I've found an very good, Open Source code beautifier called Jalopy
(http://jalopy.sourceforge.net/). Maybe someone has enough time to
integrate it into IDEA?

>

Tom



0

Thomas Singer wrote:
> I've found an very good, Open Source code beautifier called
> Jalopy (http://jalopy.sourceforge.net/).


Oh my gosh, it even aligns code MY way :(

Example 4.42. Variable identifiers/assignments (both aligned) String text = "text"; int a = -1; History.Entry entry = new History.Entry(text); ]]>

(Just trying to restart an old flame war :( )

Alain

0

Oh my gosh, it even aligns code MY way :(


... and much more.

Alain, do you have time?

Tom


On Tue, 25 Jun 2002 13:25:48 -0100, Alain Ravet
<alain_ravet@yahoo.com> wrote:

Thomas Singer wrote:
> I've found an very good, Open Source code beautifier called
> Jalopy (http://jalopy.sourceforge.net/).


Oh my gosh, it even aligns code MY way :(

<code>
Example 4.42. Variable identifiers/assignments (both aligned)

String text = "text";
int a = -1;
History.Entry entry = new History.Entry(text);
</code>

(Just trying to restart an old flame war :( )

Alain



0


Yep, variable alignment is quite cool ;o)
But anyway, there's an ANT task for Jalopy, so it's quite easy to add it to
a custom build script.
And then, you just have to synchronize your files !

For the plugin, it should not be very difficult, but it's not yet possible
(AFAIK) to synchronize a file or open it up.
So I guess we'll have to wait a bit. Or at least to do a synchronization
manually.

Guillaume

"Alain Ravet" <alain_ravet@yahoo.com> a ?crit dans le message news:
3D187D6C.1080201@yahoo.com...
>

Oh my gosh, it even aligns code MY way :(

>

<code>
Example 4.42. Variable identifiers/assignments (both aligned)

>

String text = "text";
int a = -1;
History.Entry entry = new History.Entry(text);
</code>

>

(Just trying to restart an old flame war :( )

>

Alain

>


0

Thomas Singer wrote:
> Alain, do you have time?

Before canceling my holiday, I'll try it out as an External Tool :)
(took me 30 sec to install)


java
-jar C:\jalopy\bin\jalopy-console-bundle-1.0b7.jar $FilePath$


Question : what would be the biggest benefits of making a plug-in of it,
compared to an external tool?

Alain

0

Before canceling my holiday, I'll try it out as an External Tool :)
(took me 30 sec to install)

>

java
-jar C:\jalopy\bin\jalopy-console-bundle-1.0b7.jar $FilePath$


Yes, easy :o)

Question : what would be the biggest benefits of making a plug-in of it,
compared to an external tool?


When the OpenAPI is complete enough, you'll be able to update the current
editor (the file that is opened) with the newly formated source file. You
could even remap the key for formating CTRL ALT F to point to this plugin.
You would not use the Layout Code functionality of IntelliJ anymore. It's
more convenient. More integrated...
It's very philosophical :o)

Guillaume


0

Guillaume Laforge wrote:

>>Question : what would be the biggest benefits of making a plug-in of it,
>>compared to an external tool?


When the OpenAPI is complete enough, you'll be able to update the current
editor (the file that is opened) with the newly formated source file.

OK, but that happens anyway with automatic resync on the tool.

You
could even remap the key for formating CTRL ALT F to point to this plugin.

Can do this now with External tools.

--

Erb

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

0

PS : jalopy could be incompatible with JDK 1.4 :
http://jalopy.sourceforge.net/javadoc.html


>>Question : what would be the biggest benefits of making a plug-in
of it,
>>compared to an external tool?


> When the OpenAPI is complete enough, you'll be able to update the
current
> editor (the file that is opened) with the newly formated source file.

That's the way the external tool works: just select
"synchronize files after execution".


> You could even remap the key for formating CTRL ALT F
> to point to this plugin.

Works with the external tool too.



> It's more convenient. More integrated...

How ?


Alain

0

When the OpenAPI is complete enough, you'll be able to update the

current

editor (the file that is opened) with the newly formated source file.

OK, but that happens anyway with automatic resync on the tool.


What do you mean by automatic resync on the tool ?
You just mean the automatic resync on external changes ?
If that's about automatic resync on external changes, it doesn't resync well
(not often enough at least) when using networked drive. So for me, I'd love
to not have to hit File->Synchronize, or the shortcut :o) I'm getting so
lazy ;o) It's JetBrains' guys fault !!!

You
could even remap the key for formating CTRL ALT F to point to this

plugin.

Can do this now with External tools.


Yes, of course, you're right I answered too quickly on this one ;o)

Guillaume


0

That's the way the external tool works: just select
"synchronize files after execution".


Oh yes... I did not notice this feature ! I'm sorry Next time I will shut
up !

> You could even remap the key for formating CTRL ALT F
> to point to this plugin.

>

Works with the external tool too.


Yep, true.

> It's more convenient. More integrated...

>

How ?


It was just my two cents and too quick answer. As I did not know about the
"synchronize files after execution" option, I thought it would have been
more convenient...
So that's right, we don't need a plugin for Jalopy

Guillaume


0


Guillaume Laforge wrote:


What do you mean by automatic resync on the tool ?
You just mean the automatic resync on external changes ?
If that's about automatic resync on external changes, it doesn't resync well
(not often enough at least) when using networked drive. So for me, I'd love
to not have to hit File->Synchronize, or the shortcut :o) I'm getting so
lazy ;o) It's JetBrains' guys fault !!!

One more thing: can Jalopy work on code snippets (just one or a few
lines in a file)? That's one thing IDEA's built-in reformatting can do.

--

Erb

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

0

Btw, Jrefactory's <pretty/> Ant task is also very cool (see
jrefactory.sourceforge.net). Put the task in your build.xml, set cvs="true",
set compileDir="where-the-output-is" and it's smart enought to skip
beautifying uptodate sources by testing if the .class and .java files are
uptodate and if the file is not cvs modified. It beautifies only what needs
to be beautified.

Ara.

"Guillaume Laforge" <glaforge@reflexe.fr> wrote in message
news:afa1oi$g5b$1@is.intellij.net...
>

Yep, variable alignment is quite cool ;o)
But anyway, there's an ANT task for Jalopy, so it's quite easy to add it

to

a custom build script.
And then, you just have to synchronize your files !

>

For the plugin, it should not be very difficult, but it's not yet possible
(AFAIK) to synchronize a file or open it up.
So I guess we'll have to wait a bit. Or at least to do a synchronization
manually.

>

Guillaume

>

"Alain Ravet" <alain_ravet@yahoo.com> a ?crit dans le message news:
3D187D6C.1080201@yahoo.com...
>

Oh my gosh, it even aligns code MY way :(

>

<code>
Example 4.42. Variable identifiers/assignments (both aligned)

>

String text = "text";
int a = -1;
History.Entry entry = new History.Entry(text);
</code>

>

(Just trying to restart an old flame war :( )

>

Alain

>

>
>


0

请先登录再写评论。