To String plugin does not work with Selena
Please fix it, it's such a hardship to do toString() manually :)
Error during dispatching of
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1@1fdd183,notifier=null,catchExceptions=false,when=1171253962424]
on sun.awt.windows.WToolkit@421906df:
com.intellij.ide.util.MemberChooser.([Ljava/lang/Object;ZZLcom/intellij/openapi/project/Project;Z)V
java.lang.NoSuchMethodError:
com.intellij.ide.util.MemberChooser.]]>([Ljava/lang/Object;ZZLcom/intellij/openapi/project/Project;Z)V
at
org.intellij.idea.plugin.tostring.GenerateToStringActionHandlerImpl.doExecuteAction(GenerateToStringActionHandlerImpl.java:166)
at
org.intellij.idea.plugin.tostring.GenerateToStringActionHandlerImpl.executeWriteAction(GenerateToStringActionHandlerImpl.java:73)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:52)
at
com.intellij.openapi.application.impl.ApplicationImpl$13.compute(ApplicationImpl.java:1)
at
com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:69)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:252)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:36)
at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:52)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:35)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:47)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:58)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:43)
at
com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:168)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:146)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:181)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
请先登录再写评论。
Here's a more maintainable alternative: http://jakarta.apache.org/commons/lang/apidocs/org/apache/commons/lang/builder/ToStringBuilder.html
There is nothing more maintainable in the commons lang abomination, and more than that it creates a new object for every call to the toString method.