|
|
|
|
|
Re: JavaCodeFormatter does not do the line wrapping [message #249938 is a reply to message #249934] |
Sun, 02 December 2007 07:45  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Jing,
If the problem appears to be a legitimate bug, then I'd suggest opening
a bugzilla report with a test file to be formatted as well as your
formatting preferences that include a preference for doing comment line
breaking. Check specifically that "Comments" section of the preferences
have "Enable ..." checked and have a look if changing these settings
affect the preference file that's generated for you. Perhaps the
problem is that the preference choices aren't being saved properly in
the preference file. If you open a bugzilla someone will try it and if
it's broken their fix it and if there's a user error, they'll explain
what it is...
Jing Guo Yao wrote:
> I formatted the java source code in the previous post. Sorry for that.
>
> Thanks a lot for your help. I really like this eclipse feature.
>
> I generated my config file referring to the Eclipse document
> "Generating a config file for the formatter application". I does all
> the things as the document specifies.
> I issue the following command to run JavaCodeFormatter.
>
> D:\gnu\eclipse-java-europa-fall2\eclipsec.exe -nosplash -application
> org.eclipse.jdt.core.JavaCodeFormatter -config
> org.eclipse.jdt.core.prefs -verbose Person.java
>
> I use the following java file as input.
>
> /**
> * Comment for the java class. It is a long long long long description
> for the class. It should be wrapped.
> * * @author Administrator
> * */
> public class Person {
> private String name;
>
> /**
> * Returns the name. It is a long long long long long long
> description It should be wrapped.
> * * * @return The name. It is a long long long long
> long description for the parameter.
> */
> public String getName() {
> return name;
> }
>
> }
>
> It only formats the java code. It does not do line wrapping from
> javadocs. The output is the same as the input.
> I got java comments wrapped when I press Ctrl+Shift+F in eclipse.
> /**
> * Comment for the java class. It is a long long long long description
> for the class. It should be wrapped.
> * * @author Administrator
> * */
> public class Person {
> private String name;
>
> /**
> * Returns the name. It is a long long long long long long
> description .It
> * should be wrapped.
> * * * @return The name. It is a long long long long
> long description for the
> * parameter.
> */
> public String getName() {
> return name;
> }
>
> }
>
>
> I have tried it on Eclipse 3.2.2 and eclipse europa fall2. Are there
> any things I have done wrong?
>
|
|
|
Powered by
FUDForum. Page generated in 0.03916 seconds