eclipse and html extensions in src/main/java
So eclipse is having trouble with the html extension files in the java source directory. I set up a demo for Wicket Skunkworks to demo the components we're working on, and I used the standard wicket pattern of putting the html alongside the java in order to make things clearer to how must people expect to see a wicket project, however Eclipse is complaining every time I open an HTML resource saying that its expecting a source file: An error has occurred. See error log for more details. Compilation unit name must end with .java, or one of the registered Java-like extensions Aside form registering an HTML extension as a compilation unit, does anyone know how to resolve this annoying issue? This is the first time I have run across it because up until now I have kept my resources in src/main/resources. - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: eclipse and html extensions in src/main/java
Works fine for me without any special configuration. I use the Eclipse JEE version and HTML files come up in the HTML Editor. Check which editor is associated with *.html files under Window Preferences, then under General/Editors/File Associations. Eclipse remembers the last editor you used to open a particular file, so you might have to right-click the file in Package Explorer and select Open With HTML Editor. jk On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote: So eclipse is having trouble with the html extension files in the java source directory. I set up a demo for Wicket Skunkworks to demo the components we're working on, and I used the standard wicket pattern of putting the html alongside the java in order to make things clearer to how must people expect to see a wicket project, however Eclipse is complaining every time I open an HTML resource saying that its expecting a source file: An error has occurred. See error log for more details. Compilation unit name must end with .java, or one of the registered Java-like extensions Aside form registering an HTML extension as a compilation unit, does anyone know how to resolve this annoying issue? This is the first time I have run across it because up until now I have kept my resources in src/main/resources. - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: eclipse and html extensions in src/main/java
I get the HTML editor as well but I also get some dialog popping up when I load the HTML from the src. I just updates to the latest this morning, so maybe there is something new. - Brill Pappin Sent from my mobile. On 22-Mar-09, at 12:38 PM, John Krasnay j...@krasnay.ca wrote: Works fine for me without any special configuration. I use the Eclipse JEE version and HTML files come up in the HTML Editor. Check which editor is associated with *.html files under Window Preferences, then under General/Editors/File Associations. Eclipse remembers the last editor you used to open a particular file, so you might have to right-click the file in Package Explorer and select Open With HTML Editor. jk On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote: So eclipse is having trouble with the html extension files in the java source directory. I set up a demo for Wicket Skunkworks to demo the components we're working on, and I used the standard wicket pattern of putting the html alongside the java in order to make things clearer to how must people expect to see a wicket project, however Eclipse is complaining every time I open an HTML resource saying that its expecting a source file: An error has occurred. See error log for more details. Compilation unit name must end with .java, or one of the registered Java-like extensions Aside form registering an HTML extension as a compilation unit, does anyone know how to resolve this annoying issue? This is the first time I have run across it because up until now I have kept my resources in src/main/resources. - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: eclipse and html extensions in src/main/java
if you get this error then you are screwed whether the markup fles are in src/main/java or src/main/resources because they are both configured as classpath folders in eclipse. anyways, im using the latest 3.4 and dont have this problem. -igor On Sun, Mar 22, 2009 at 10:04 AM, Brill Pappin br...@pappin.ca wrote: I get the HTML editor as well but I also get some dialog popping up when I load the HTML from the src. I just updates to the latest this morning, so maybe there is something new. - Brill Pappin Sent from my mobile. On 22-Mar-09, at 12:38 PM, John Krasnay j...@krasnay.ca wrote: Works fine for me without any special configuration. I use the Eclipse JEE version and HTML files come up in the HTML Editor. Check which editor is associated with *.html files under Window Preferences, then under General/Editors/File Associations. Eclipse remembers the last editor you used to open a particular file, so you might have to right-click the file in Package Explorer and select Open With HTML Editor. jk On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote: So eclipse is having trouble with the html extension files in the java source directory. I set up a demo for Wicket Skunkworks to demo the components we're working on, and I used the standard wicket pattern of putting the html alongside the java in order to make things clearer to how must people expect to see a wicket project, however Eclipse is complaining every time I open an HTML resource saying that its expecting a source file: An error has occurred. See error log for more details. Compilation unit name must end with .java, or one of the registered Java-like extensions Aside form registering an HTML extension as a compilation unit, does anyone know how to resolve this annoying issue? This is the first time I have run across it because up until now I have kept my resources in src/main/resources. - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: eclipse and html extensions in src/main/java
Hmm, I'll have to investigate. I *don't* get it when I have it set up with the HTML in the resourses folder. - Brill Pappin Sent from my mobile. On 22-Mar-09, at 1:58 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you get this error then you are screwed whether the markup fles are in src/main/java or src/main/resources because they are both configured as classpath folders in eclipse. anyways, im using the latest 3.4 and dont have this problem. -igor On Sun, Mar 22, 2009 at 10:04 AM, Brill Pappin br...@pappin.ca wrote: I get the HTML editor as well but I also get some dialog popping up when I load the HTML from the src. I just updates to the latest this morning, so maybe there is something new. - Brill Pappin Sent from my mobile. On 22-Mar-09, at 12:38 PM, John Krasnay j...@krasnay.ca wrote: Works fine for me without any special configuration. I use the Eclipse JEE version and HTML files come up in the HTML Editor. Check which editor is associated with *.html files under Window Preferences, then under General/Editors/File Associations. Eclipse remembers the last editor you used to open a particular file, so you might have to right-click the file in Package Explorer and select Open With HTML Editor. jk On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote: So eclipse is having trouble with the html extension files in the java source directory. I set up a demo for Wicket Skunkworks to demo the components we're working on, and I used the standard wicket pattern of putting the html alongside the java in order to make things clearer to how must people expect to see a wicket project, however Eclipse is complaining every time I open an HTML resource saying that its expecting a source file: An error has occurred. See error log for more details. Compilation unit name must end with .java, or one of the registered Java-like extensions Aside form registering an HTML extension as a compilation unit, does anyone know how to resolve this annoying issue? This is the first time I have run across it because up until now I have kept my resources in src/main/resources. - Brill --- -- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --- -- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: eclipse and html extensions in src/main/java
Bill, if you have a stack trace in the log, we might take a stab at guessing the culprit (it's not often the base Eclipse tooling, but some add-on plugin). Thomas On Sun, Mar 22, 2009 at 9:18 PM, Brill Pappin br...@pappin.ca wrote: Hmm, I'll have to investigate. I *don't* get it when I have it set up with the HTML in the resourses folder. - Brill Pappin Sent from my mobile. On 22-Mar-09, at 1:58 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you get this error then you are screwed whether the markup fles are in src/main/java or src/main/resources because they are both configured as classpath folders in eclipse. anyways, im using the latest 3.4 and dont have this problem. -igor On Sun, Mar 22, 2009 at 10:04 AM, Brill Pappin br...@pappin.ca wrote: I get the HTML editor as well but I also get some dialog popping up when I load the HTML from the src. I just updates to the latest this morning, so maybe there is something new. - Brill Pappin Sent from my mobile. On 22-Mar-09, at 12:38 PM, John Krasnay j...@krasnay.ca wrote: Works fine for me without any special configuration. I use the Eclipse JEE version and HTML files come up in the HTML Editor. Check which editor is associated with *.html files under Window Preferences, then under General/Editors/File Associations. Eclipse remembers the last editor you used to open a particular file, so you might have to right-click the file in Package Explorer and select Open With HTML Editor. jk On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote: So eclipse is having trouble with the html extension files in the java source directory. I set up a demo for Wicket Skunkworks to demo the components we're working on, and I used the standard wicket pattern of putting the html alongside the java in order to make things clearer to how must people expect to see a wicket project, however Eclipse is complaining every time I open an HTML resource saying that its expecting a source file: An error has occurred. See error log for more details. Compilation unit name must end with .java, or one of the registered Java-like extensions Aside form registering an HTML extension as a compilation unit, does anyone know how to resolve this annoying issue? This is the first time I have run across it because up until now I have kept my resources in src/main/resources. - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Wicket Eclipse Consulting www.devotek-it.ch thomasmaeder.blogspot.com
Re: eclipse and html extensions in src/main/java
Fund the culprit. The stack trace below suggests its MoreUnit (a handy little plugin particularly for those that use TDD) !ENTRY org.eclipse.ui.workbench 4 2 2009-03-22 19:08:25.463 !MESSAGE Problems occurred when invoking code from plug-in: org.eclipse.ui.workbench. !STACK 0 java.lang.IllegalArgumentException: Compilation unit name must end with .java, or one of the registered Java-like extensions at org .eclipse .jdt .internal.core.PackageFragment.getCompilationUnit(PackageFragment.java: 214) at org .eclipse .jdt .internal .core.JavaModelManager.createCompilationUnitFrom(JavaModelManager.java: 881) at org.eclipse.jdt.core.JavaCore.createCompilationUnitFrom(JavaCore.java: 2503) at org .moreunit .elements.EditorPartFacade.getCompilationUnit(EditorPartFacade.java:43) at org .moreunit .annotation .MoreUnitAnnotationModel .updateAnnotations(MoreUnitAnnotationModel.java:170) at org .moreunit .annotation .MoreUnitAnnotationModel.init(MoreUnitAnnotationModel.java:67) at org .moreunit .annotation .MoreUnitAnnotationModel.attach(MoreUnitAnnotationModel.java:132) at org .moreunit .annotation .AnnotationUpdateListener.partOpened(AnnotationUpdateListener.java:43) at org.eclipse.ui.internal.PartListenerList $5.run(PartListenerList.java:132) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) On 22-Mar-09, at 4:29 PM, Thomas Mäder wrote: Bill, if you have a stack trace in the log, we might take a stab at guessing the culprit (it's not often the base Eclipse tooling, but some add-on plugin). Thomas On Sun, Mar 22, 2009 at 9:18 PM, Brill Pappin br...@pappin.ca wrote: Hmm, I'll have to investigate. I *don't* get it when I have it set up with the HTML in the resourses folder. - Brill Pappin Sent from my mobile. On 22-Mar-09, at 1:58 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you get this error then you are screwed whether the markup fles are in src/main/java or src/main/resources because they are both configured as classpath folders in eclipse. anyways, im using the latest 3.4 and dont have this problem. -igor On Sun, Mar 22, 2009 at 10:04 AM, Brill Pappin br...@pappin.ca wrote: I get the HTML editor as well but I also get some dialog popping up when I load the HTML from the src. I just updates to the latest this morning, so maybe there is something new. - Brill Pappin Sent from my mobile. On 22-Mar-09, at 12:38 PM, John Krasnay j...@krasnay.ca wrote: Works fine for me without any special configuration. I use the Eclipse JEE version and HTML files come up in the HTML Editor. Check which editor is associated with *.html files under Window Preferences, then under General/Editors/File Associations. Eclipse remembers the last editor you used to open a particular file, so you might have to right-click the file in Package Explorer and select Open With HTML Editor. jk On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote: So eclipse is having trouble with the html extension files in the java source directory. I set up a demo for Wicket Skunkworks to demo the components we're working on, and I used the standard wicket pattern of putting the html alongside the java in order to make things clearer to how must people expect to see a wicket project, however Eclipse is complaining every time I open an HTML resource saying that its expecting a source file: An error has occurred. See error log for more details. Compilation unit name must end with .java, or one of the registered Java-like extensions Aside form registering an HTML extension as a compilation unit, does anyone know how to resolve this annoying issue? This is the first time I have run across it because up until now I have kept my resources in src/main/resources. - Brill - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Wicket Eclipse Consulting www.devotek-it.ch thomasmaeder.blogspot.com