[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: StructuredModelManager

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
at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.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.


--
Nitin Dahyabhai
Structured Source Editing