|Re: StructuredModelManager [message #203418 is a reply to message #203378]
||Thu, 01 November 2007 05:56
| Nitin Dahyabhai
Registered: July 2009
Nitin Dahyabhai wrote:|
> Klaus Schaefers wrote:
>> Hi, I have changed to way the model is handled now in the way you
>> suggested. This works fine, but now the html content assitant fails
>> Here is the stacktrace. What have I done wrong.
>> java.lang.IllegalStateException: problem getting model
>> org.eclipse.wst.xml.ui.internal.contentassist.AbstractConten tAssistProcessor.computeCompletionProposals(AbstractContentA ssistProcessor.java:1283)
> Nothing, content assist requires a managed model so it can go from the
> source viewer's document to that model.
Just to followup on this, you'd want to go back to the original
method you posted about since the model is shared in that case.
You can try using IStructuredModel.reload(InputStream), or just set
the text into the document as indicated previously.
Structured Source Editing
Eclipse WTP, IBM
Powered by FUDForum
. Page generated in 0.02069 seconds