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
Please sign in to leave a comment.
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
Please sign in to leave a comment.
just do it!
"Thomas Singer" <idea@regnis.de> a ?crit dans le message de news:
3d186a27.22901130@news.intellij.net...
>
>
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...
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
... 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:
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...
>
>
>
>
>
>
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
>
Yes, easy :o)
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
Guillaume Laforge wrote:
>>Question : what would be the biggest benefits of making a plug-in of it,
>>compared to an external tool?
OK, but that happens anyway with automatic resync on the tool.
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
==============================================================
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
current
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 !!!
plugin.
Yes, of course, you're right I answered too quickly on this one ;o)
Guillaume
Oh yes... I did not notice this feature ! I'm sorry Next time I will shut
up !
>
Yep, true.
>
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
Guillaume Laforge wrote:
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
==============================================================
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...
>
to
>
>
>
>
>