Downloads: 89489
Rating:
Participated in rating: 16
Recent change notes:
- ID22 - Compiled with JDK1.5 so Mac users can use it again - sorry please give me a macbook pro ;)
General usage instructions:
press \'alt + ins\' to active the generate mini menu and chose toString().
Comments:
I was confused by the fact that Copyright settings are presented in the Setting dialog box.
The settings have moved, eg press CTRL + INS and select toString() then a dialog shows the members to choose and there should be a Settings button on this popup window.
http://davsclaus.blogspot.com/2008/08/generate-tostring-bundled-in-idea-8.html
It seems as it has trouble reading the .jar from this location:
C:\Documents and Settings\019gus\.IntelliJIdea70\config\plugins\GenerateToString.jar
The path is returned by IDEA itself, the path is not computed by the plugin.
However its just a WARNING and the plugin should work fine. Only the link in the settings to the plugin documentation will fail.
You should be fine to use all its features to generate the toString() methods.
IO error while extracting plugin documentation - documentation disabled. Filename = 'C:\Documents and Settings\019gus\.IntelliJIdea70\config\plugins\GenerateToString.jar': C:\Documents and Settings\019gus\.IntelliJIdea70\config\plugins\GenerateToString.jar (ÃÃ¥ óäà åòñÿ Ãà éòè óêà çà ÃÃûé ôà éë)
java.io.FileNotFoundException: C:\Documents and Settings\019gus\.IntelliJIdea70\config\plugins\GenerateToString.jar (ÃÃ¥ óäà åòñÿ Ãà éòè óêà çà ÃÃûé ôà éë)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:114)
at java.util.jar.JarFile.(JarFile.java:133)
at java.util.jar.JarFile.(JarFile.java:70)
at generate.tostring.GenerateToStringUtils
.extractDocumentation(GenerateToStringUtils.java:303)
at generate.tostring.GenerateToStringPlugin
.initComponent(GenerateToStringPlugin.java:56)
at com.intellij.openapi.components.impl.ComponentManagerImpl
.a(ComponentManagerImpl.java:68)
at com.intellij.openapi.components.impl.ComponentManagerImpl
.access$1100(ComponentManagerImpl.java:112)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1
.getComponentInstance(ComponentManagerImpl.java:5)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter
.getComponentInstance(ComponentManagerImpl.java:6)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:199)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:186)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:168)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer
.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl
.a(ComponentManagerImpl.java:178)
at com.intellij.openapi.components.impl.ComponentManagerImpl
.a(ComponentManagerImpl.java:12)
at com.intellij.openapi.components.impl.ComponentManagerImpl
.initComponents(ComponentManagerImpl.java:162)
at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl
.load(ApplicationStoreImpl.java:5)
at com.intellij.openapi.application.impl.ApplicationImpl
.load(ApplicationImpl.java:235)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:24)
at com.intellij.idea.MainImpl$3.run(MainImpl.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
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)
how to fix?
I wholeheartedly agree with other reviewers that this plug-in should be included with the standard IDEA distribution. My sincere thanks to Claus for having written this plug-in.
There is a default template you can select to use that does this.
The key is the velocity template that you can adjust to your needs. See the screenshots for details.
To select a different template you have to change it from the settings menu.