[ANN] Rearranger plugin - new version 3.6

The rearranger plugin

- rearranges (reorders) class and class member declarations according to a user-specified order and/or method call hierarchy;
- generates section-marking comments;
- provides several controls for spacing within and between methods and classes; and
- permits the user to manually rearrange items.

Bug fixes:
- if "Rearrange contents of inner classes" is not checked, don't generate comments inside inner classes; just leave them alone.
- recompiled for Pallada and for new version of Reformat plugin (0.7.1)

See the plugin home page http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin for more details.

Download the IDEA 4.0 (Aurora) version of the plugin with the Plugin Manager or from the home page.

The Pallada (build 2026) version of the plugin is only available from the home page. I'm still trying to upload it - can't seem to edit or upload files at the moment. So give it a while if it's not there.

-Dave

8 comments
Comment actions Permalink

Can anyone tell me where I can get the Pallada version from?

Thanks,
Amnon

"Dave Kriewall" <davek@wrq.com> wrote in message
news:12662224.1085432513673.JavaMail.itn@is.intellij.net...

The rearranger plugin

>

- rearranges (reorders) class and class member declarations according to

a user-specified order and/or method call hierarchy;

- generates section-marking comments;
- provides several controls for spacing within and between methods and

classes; and

- permits the user to manually rearrange items.

>

Bug fixes:
- if "Rearrange contents of inner classes" is not checked, don't generate

comments inside inner classes; just leave them alone.

- recompiled for Pallada and for new version of Reformat plugin (0.7.1)

>

See the plugin home page

http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin for more
details.
>

Download the IDEA 4.0 (Aurora) version of the plugin with the Plugin

Manager or from the home page.
>

The Pallada (build 2026) version of the plugin is only available from the

home page. I'm still trying to upload it - can't seem to edit or upload
files at the moment. So give it a while if it's not there.
>

-Dave

>
>


0
Comment actions Permalink

I just uploaded it a few hours ago to http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin. Download "rearranger-2026.jar"

Sorry for the delay. The Twikimaster had to fix the page before I was able to upload it.

-Dave

0
Comment actions Permalink

Dave I still don't see rearranger chaining off the reformat plugin in
Pallada in this release... I have the latest versions of both.

Cheers,
N.

Dave Kriewall wrote:

The rearranger plugin

- rearranges (reorders) class and class member declarations according to a user-specified order and/or method call hierarchy;
- generates section-marking comments;
- provides several controls for spacing within and between methods and classes; and
- permits the user to manually rearrange items.

Bug fixes:
- if "Rearrange contents of inner classes" is not checked, don't generate comments inside inner classes; just leave them alone.
- recompiled for Pallada and for new version of Reformat plugin (0.7.1)

See the plugin home page http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin for more details.

Download the IDEA 4.0 (Aurora) version of the plugin with the Plugin Manager or from the home page.

The Pallada (build 2026) version of the plugin is only available from the home page. I'm still trying to upload it - can't seem to edit or upload files at the moment. So give it a while if it's not there.

-Dave

0
Comment actions Permalink

Assertion in rearranger (rearranger-2026.jar) with 2072:

java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:64)
at com.intellij.ide.j.b$a_.getData(b$a_.java:9)
at
com.wrq.rearranger.ProjectTreeActionHandler$RearrangeIt.]]>(ProjectTr
eeActionHandler.j
ava:115)
at
com.wrq.rearranger.ProjectTreeActionHandler$1.run(ProjectTreeActionHandl
er.java:64)
at java.lang.Thread.run(Thread.java:534)
ERROR - ellij.ide.impl.DataManagerImpl - Assertion failed:
cannot share data context betw
een Swing events; initial event count = 1288; current event count = 1293
ERROR - ellij.ide.impl.DataManagerImpl - IntelliJ IDEA
(Pallada) Build #2072
ERROR - ellij.ide.impl.DataManagerImpl - JDK: 1.4.2_04
ERROR - ellij.ide.impl.DataManagerImpl - VM: Java
HotSpot(TM) Client VM
ERROR - ellij.ide.impl.DataManagerImpl - Vendor: Sun
Microsystems Inc.
ERROR - ellij.ide.impl.DataManagerImpl - OS: Windows 2000
ERROR - ellij.ide.impl.DataManagerImpl - Last Action:
RearrangeProjectTree
ERROR - ellij.ide.impl.DataManagerImpl - Assertion failed:
cannot share data context betw
een Swing events; initial event count = 1288; current event count = 1293
java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:64)
at com.intellij.ide.j.b$a_.getData(b$a_.java:9)
at
com.wrq.rearranger.ProjectTreeActionHandler$RearrangeIt.]]>(ProjectTr
eeActionHandler.j
ava:115)
at
com.wrq.rearranger.ProjectTreeActionHandler$1.run(ProjectTreeActionHandl
er.java:64)
at java.lang.Thread.run(Thread.java:534)
java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:64)
at com.intellij.ide.j.b$a_.getData(b$a_.java:9)
at
com.wrq.rearranger.ProjectTreeActionHandler$RearrangeIt.run(ProjectTreeA
ctionHandler.java
:120)
at
com.wrq.rearranger.ProjectTreeActionHandler$1.run(ProjectTreeActionHandl
er.java:64)
at java.lang.Thread.run(Thread.java:534)
ERROR - ellij.ide.impl.DataManagerImpl - Assertion failed:
cannot share data context betw
een Swing events; initial event count = 1288; current event count = 1296
ERROR - ellij.ide.impl.DataManagerImpl - IntelliJ IDEA
(Pallada) Build #2072
ERROR - ellij.ide.impl.DataManagerImpl - JDK: 1.4.2_04
ERROR - ellij.ide.impl.DataManagerImpl - VM: Java
HotSpot(TM) Client VM
ERROR - ellij.ide.impl.DataManagerImpl - Vendor: Sun
Microsystems Inc.
ERROR - ellij.ide.impl.DataManagerImpl - OS: Windows 2000
ERROR - ellij.ide.impl.DataManagerImpl - Last Action:
RearrangeProjectTree
ERROR - ellij.ide.impl.DataManagerImpl - Assertion failed:
cannot share data context betw
een Swing events; initial event count = 1288; current event count = 1296
java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:64)
at com.intellij.ide.j.b$a_.getData(b$a_.java:9)
at
com.wrq.rearranger.ProjectTreeActionHandler$RearrangeIt.run(ProjectTreeA
ctionHandler.java
:120)
at
com.wrq.rearranger.ProjectTreeActionHandler$1.run(ProjectTreeActionHandl
er.java:64)
at java.lang.Thread.run(Thread.java:534)

0
Comment actions Permalink

It's been a while, just wanted to make sure you'd seen this post Dave.
Pls let me know if there's anything I can do to help fix this.

Cheers,
N.

Nathan Brown wrote:

Dave I still don't see rearranger chaining off the reformat plugin in
Pallada in this release... I have the latest versions of both.

Cheers,
N.

Dave Kriewall wrote:

>> The rearranger plugin
>> - rearranges (reorders) class and class member declarations
>> according to a user-specified order and/or method call hierarchy; -
>> generates section-marking comments; - provides several controls for
>> spacing within and between methods and classes; and - permits the
>> user to manually rearrange items.
>> Bug fixes:
>> - if "Rearrange contents of inner classes" is not checked, don't
>> generate comments inside inner classes; just leave them alone.
>> - recompiled for Pallada and for new version of Reformat plugin (0.7.1)
>>
>> See the plugin home page
>> http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin for more
>> details.
>>
>> Download the IDEA 4.0 (Aurora) version of the plugin with the Plugin
>> Manager or from the home page.
>>
>> The Pallada (build 2026) version of the plugin is only available from
>> the home page. I'm still trying to upload it - can't seem to edit or
>> upload files at the moment. So give it a while if it's not there.
>>
>> -Dave
>>
>>

0
Comment actions Permalink

Hi Nathan,

I did see it - sorry, have had other priorities lately. :) Haven't had any time for plugin work for quite a while.

If you wanted to try to debug and fix it, I could give you some idea what to look for. Would be happy to have your help; I have not kept up with Pallada at all, except around build 2026 to make changes to the source so it would compile under Pallada. Let me know and I'll give you more details.

Thanks,
-Dave

0
Comment actions Permalink

Nathan,

I looked into the problem. The Reformat plugin classes are no longer visible to the Rearranger; I am guessing that Pallada now loads each plugin with a different classloader. This makes it pretty difficult (even impossible :) to hook the Reformat plugin chain.

I haven't been following Pallada at all; has there been any discussion about inter-plugin communication or cooperation, or about a new classloading architecture, or forcing two plugins to be loaded by the same classloader?

Maybe someone can suggest a workaround.

Thanks,
-Dave

0
Comment actions Permalink

I haven't been following Pallada at all; has there been any
discussion about inter-plugin communication or cooperation, or about
a new classloading architecture, or forcing two plugins to be loaded
by the same classloader?


Yes, there have been some complaints about this.

Maybe someone can suggest a workaround.


If the problem is only visibility, including both plugins in the same
jar may work. Or extracting both plugins into a Rearranger plugin (and
Rearranger/lib ?) subdir.

0

Please sign in to leave a comment.