- This topic has 15 replies, 3 voices, and was last updated 18 years, 1 month ago by portai.
-
AuthorPosts
-
scooterSSTMemberI’m a MyEclipse virgin..
is there a way to assign other file types to the visual editor. I’d like to be able to switch between visual and code view for ColdFusion (.cfm, .cfml, .cfc) pages
Riyad KallaMemberYou can modify these mappings by going to Windows > Preferences > General > Content Types > Text > HTML, and then you can add the extensions to that file type. You can also modify file to editor mappings under the File Association dialog, but I think the idea is to phase out that dialog and use Content Types moving forward.
scooterSSTMemberThanks, that’s exactly what I was looking for.
portaiMemberSince I upgraded to Version: 5.0.1
Build id: 20060810-5.0.1-GA, I can’t see the preview of the HTML when I use the Visual HTML Designer or HTML Editor.
Neither the “Design”, nor “Design/Source”, nor any browser show the preview. All I can see is just the source code. Everything worked just fine before, when I used Eclipse 3.1 and MyEclipse 4.x.
“Unsupported Content type” message pops up every tyme I try to open a .html file in the MyEclipse Visual HTML Designer or MyEclipse HTML Editor.
Did I miss something in the configurations?
Riyad KallaMemberPortai,
Can you load up MyEclipse, go to MyEclipse > Installation Summary > Installation Details, then paste that information here? Also can you look into your log file (<workspace dir>\.metadata\.log) and look for exceptions on startup near the bottom of the file to figure out if anything if failing on startup?
portaiMember*** Date: Wed Sep 27 20:07:36 GMT-06:00 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_06*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.0 GA
Build id: 20060805-5.0-GA*** Eclipse details:
Eclipse SDKVersion: 3.2.0
Build id: M20060629-1905Eclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816Eclipse Platform
Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
Build id: M20060629-1905Eclipse RCP
Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
Build id: M20060629-1905Eclipse Java Development Tools
Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
Build id: M20060629-1905Eclipse Plug-in Development Environment
Version: 3.2.0.v20060609m——6zXJJzJzJq
Build id: M20060629-1905Eclipse Project SDK
Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
Build id: M20060629-1905Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
16b8_70
-clean
-vm
C:\WINDOWS\system32\javaw.exe==============================================
And this is from the log (just a chunk):
!ENTRY org.eclipse.ui 4 0 2006-09-26 20:47:20.416
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.webdesigner3.src.SourceEditSystem.getSourceDocument(SourceEditSystem.java:226)
at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.synchronize(DesignEditSystem.java:165)
at com.genuitec.eclipse.webdesigner3.AbstractEditSystem.setSynchronized(AbstractEditSystem.java:24)
at com.genuitec.eclipse.webdesigner3.WebDesigner3.setSynchronized(WebDesigner3.java:83)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.checkSynchronization(WebDesignerMultiPageEditor.java:577)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.access$4(WebDesignerMultiPageEditor.java:574)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor$4.run(WebDesignerMultiPageEditor.java:552)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.designPageChange(WebDesignerMultiPageEditor.java:550)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.pageChange(WebDesignerMultiPageEditor.java:524)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:232)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)!ENTRY com.genuitec.eclipse.webdesigner3 4 0 2006-09-26 20:47:22.057
!MESSAGE
!STACK 0
java.lang.NullPointerException
at java.io.PrintWriter.write(Unknown Source)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.generatePreviewHTML(WebDesignerMultiPageEditor.java:684)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.previewPageChange(WebDesignerMultiPageEditor.java:583)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.pageChange(WebDesignerMultiPageEditor.java:532)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:232)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)!ENTRY com.genuitec.eclipse.webdesigner3 4 0 2006-09-26 20:47:22.057
!MESSAGE Argument cannot be null
!STACK 0
java.lang.IllegalArgumentException: Argument cannot be null
at org.eclipse.swt.SWT.error(SWT.java:3358)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.browser.Browser.setUrl(Browser.java:1352)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.previewPageChange(WebDesignerMultiPageEditor.java:586)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.pageChange(WebDesignerMultiPageEditor.java:532)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:232)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)!ENTRY org.eclipse.ui 4 4 2006-09-26 20:47:38.869
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2006-09-26 20:47:38.869
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.webdesigner3.src.SourceEditSystem.getSourceDocument(SourceEditSystem.java:226)
at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.synchronize(DesignEditSystem.java:165)
at com.genuitec.eclipse.webdesigner3.AbstractEditSystem.setSynchronized(AbstractEditSystem.java:24)
at com.genuitec.eclipse.webdesigner3.WebDesigner3.setSynchronized(WebDesigner3.java:83)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.checkSynchronization(WebDesignerMultiPageEditor.java:577)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.access$4(WebDesignerMultiPageEditor.java:574)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor$5.run(WebDesignerMultiPageEditor.java:569)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.splitPageChange(WebDesignerMultiPageEditor.java:567)
at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.pageChange(WebDesignerMultiPageEditor.java:529)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:232)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
!SESSION 2006-09-27 20:05:42.365 ———————————————–
eclipse.buildId=M20060629-1905
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -clean!ENTRY org.eclipse.wst.sse.ui 2 2 2006-09-27 20:06:54.178
!MESSAGE StructuredTextEditor being used without StructuredDocument!ENTRY org.eclipse.wst.sse.ui 2 2 2006-09-27 20:06:54.178
!MESSAGE Input Name: MySiteLinks.html!ENTRY org.eclipse.wst.sse.ui 2 2 2006-09-27 20:06:54.178
!MESSAGE Unexpected IDocumentProvider implementation: com.objfac.xmleditor.XMLDocumentProvider!ENTRY org.eclipse.wst.sse.ui 2 2 2006-09-27 20:06:54.193
!MESSAGE Unexpected IDocument implementation: org.eclipse.jface.text.Document
Riyad KallaMemberYour install/setup looks fine, but the errors don’t look so good. Let’s try a new workspace, File > Switch Workspace > C:\tempworkspace, hit OK to restart. Now create a new web project and JSP page, can you open it with the designer?
portaiMemberSorry, couldn’t test it earlier…
Yes, when I created a new web project and added a JSP page – I can see the HTML in the designer, but, after adding the HTML page (testname.html) and trying to open it in MyEclipse HTML Editor or MyEclipse Visual HTML Designer – all I can see is just an “Unsupported Content Type” error message and, after closing it, the source code. But, the page is displayed OK via MyEclipse Web Browser.
The log file has a whole bunch of exceptions logged, almost the same as I already placed before. It’s too big to insert it here, and I don’t know how to attach the file to this message.
Seems like it can’t recognize the HTML…In my old version I could see in the “Content Types” list something like “MyEclipse Visual….”type…Now I see the HTML only under “Text”, and it looks like it is assigned to both HTML editors, but…no luck to use them for this type….
Riyad KallaMemberI’m a big confused what you meant by:
I can see the HTML in the designer, but, after adding the HTML page (testname.html) and trying to open it in MyEclipse HTML Editor or MyEclipse Visual HTML Designer – all I can see is just an “Unsupported Content Type” error message
This sounded like it worked, then didn’t work… is that the case or did it never work? Are you able to open the designer at all, and it’s only with certain HTML pages you cannot open it or it never opens?
portaiMemberOK…Let’s make it streight…
What I said first is “Yes, when I created a new web project and added a JSP page – I can see the HTML in the designer, …”
What this means:
1. I can open the designer.
2. I can see both – code and preview windows
3. I can see both – code (including HTML code) and preview of that code in both windows IF I SEND to the designer a JSP (test.jsp) page….
THEN:
“but, after adding the HTML page (testname.html) and trying to open it in MyEclipse HTML Editor or MyEclipse Visual HTML Designer – all I can see is just an “Unsupported Content Type” error message and, after closing it, the source code.”
1. Before I open ANY of the web designers I see a “Unsupported Content Type” message that has a message and a link to “Content Types”.
2. After I click OK on this message:
3. I can open the designer.
4. I can see both – code and preview windows.
5. I can see JUST THE HTML code in the bottom (code ) window AND CAN NOT see anything in the top (“Preview”) window.
6. In the Web Editor I can see just the HTML code, but not the Preview of it…Unfortunatelly, I can’t add screenshots and attach a log file that might explain more….or don’t know how to do that for this site…
Riyad KallaMemberportai,
We need to backup and do a sanity check. Please follow my steps below (even if they are redundant or silly):1) Redownload Eclipse 3.2 SDK from the Eclipse.org site, unzip it to a new location: C:\temp\eclipse-3.2 (will contain a subdir ‘eclipse’)
2) Redownload MyEclipse 5.0.1 from our site, install it to C:\temp\myeclipse-5.0, when asked for Eclipse, point it at the C:\temp\eclipse-3.2\eclipse dir
3) Start up the new install, create a new workspace
4) Create a new Web Project
5) File > New >Other > MyEclipse > Web > JSP (Advanced Template) > hit Finish.
6) Now open MyJsp.jsp do you have all the tabs across the bottom? If you switch to the split view, do you see the preview at the top and the code at the bottom?What I’m doing here is an absolute bare-bones attempt at making sure your system isn’t choking on a best-case scenario, because if it us, all the troubleshooting in the world with your good setup isn’t going to help.
portaiMemberThanks!
I’m at work now, and the machine that has Eclipse 3.2 is at home…
I’ll do all you suggested after will get home, but this might be late evening…
Will post all results here whenever I’ll complete the test.
Thanks again!
P.S. Is it any way to attach a file to the post?
Riyad KallaMemberThe best bet is to PM it to me and attach it to that, also be sure to include the link to the thread when you PM because I handle a lot of posts and it may not be readily apparent to me what this attachments are for.
portaiMemberThanks!
Will do that as soon as will get home!
Riyad KallaMemberportai,
I got your results and first let me thank you for doing all that work, I realize that reinstalling and running through all those steps are very time consuming but I was glad to see everything works.Where does this leave us now, is there still a problem case with a particular file or is everything working? If there is a specific file that fails, PM it to me and I can try and test it on my end.
-
AuthorPosts