Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » Cannot format java file
Cannot format java file [message #38667] Mon, 21 August 2006 20:07 Go to next message
G. Ralph Kuntz, MD is currently offline G. Ralph Kuntz, MDFriend
Messages: 20
Registered: July 2009
Junior Member
I have one java file where Source->Format (Ctrl-Shift-F) does NOTHING. It
works in every other file in my project. I selected the entire file and
copied it to the clipboard. I deleted the original file and created a new
one with the same name and then pasted the clipboard contents into it.
Still no good.

I created a new class in the file with the layout:

private final class SomePanel extends JPanel {
}

With nothing in the file selected, I hit Ctrl-Shift-F and nothing happens.
I copied this text to the clipboard and pasted into another Java file in the
same project, package, etc. I hit Ctrl-Shift-F in the new file and the text
reformats to

private final class SomePanel
extends JPanel {
}

Is my original file cursed? :-)

What am I doing wrong?

BTW, I checked for hidden annotations and comments in the file that might
turn off formatting, but can't find any.

Thanks.
Re: Cannot format java file [message #38723 is a reply to message #38667] Mon, 21 August 2006 21:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

Please try over in the eclipse.tools.jdt newsgroup. This newsgroup is
about the Eclipse organization itself and not about using Eclipse.

--
Thanks,
Rich Kulp
Re: Cannot format java file [message #38758 is a reply to message #38667] Tue, 22 August 2006 01:39 Go to previous message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
G. Ralph Kuntz, MD a écrit :
> Is my original file cursed? :-)
> What am I doing wrong?
Might be a bug. Please open a bug report against JDT/Core with the
contents of your compilation unit in the bug report.
Thanks.
Fu2 to eclipse.jdt.tools.
--
Olivier
Previous Topic:Wiki Recommendations?
Next Topic:Call for discussion: "User experience" project
Goto Forum:
  


Current Time: Thu Apr 25 05:26:39 GMT 2024

Powered by FUDForum. Page generated in 0.03576 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top