max wrote:
for some reason you are missing the wtp xml editor.
It should work (have installed it on linux and win32 without problems before)
You could try and install WTP 0.7 (not WTP 1.0M9 unless you are using the latest cvs build) and then see if you get an XML Editor.
Do you have a hibernate console perspective ?
Well, after much trouble, I now have WTP 0.7 installed and I can get the generic XML editor instead of a plain text editor.
It does now appear that the Hiberate-specific support while editing the source aspect of *.hbm.xml files is working (e.g., the Outline pane's first entry is "xml (Hibernate Tools)").
This exception occurs during start-up:
Code:
Error 2005-12-01 14:46:24.477
model has no JFace adapter factory
The Hibernate console perspective is available, but since so far I find it inscrutable, I cannot tell whether it's working properly or not.
Many of the following diagnostics occurred while I added a very simply <property .../> element:
Code:
<property
name='name'
type='string'
column='NAME'>
/>
(In fact, one occurs on each content-altering keystroke typed in the Hibernate XML text view):
Code:
Error 2005-12-01 14:33:59.266
A structured model client, org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterForXML@9dc852 threw following exception during adapter notification (CHANGE )
java.lang.NullPointerException
at org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterFactoryForXML.getListeners(Unknown Source)
at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeAdapter.notifyChanged(JFaceNodeAdapter.java:393)
at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:202)
at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notify(XMLModelNotifierImpl.java:235)
at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyDeferred(XMLModelNotifierImpl.java:323)
at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:175)
at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:161)
at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.regionChanged(AbstractStructuredModel.java:163)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:554)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1202)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1866)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2303)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:100)
at org.eclipse.wst.sse.ui.internal.editor.EditorExecutionContext.execute(EditorExecutionContext.java:43)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:110)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2299)
at org.eclipse.wst.sse.ui.internal.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:1187)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625)
at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2592)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5098)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5124)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4857)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1045)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1030)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:621)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1964)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:560)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1365)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3442)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4777)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1067)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1158)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2570)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Anyway, thanks for pointing out at least one of the problems.
Randall Schulz