Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JSDT Open js File Can not ContentAssistProcessor
JSDT Open js File Can not ContentAssistProcessor [message #648257] Wed, 12 January 2011 06:10 Go to next message
robin Missing name is currently offline robin Missing name
Messages: 16
Registered: November 2009
Junior Member
I have a MultiPageEditorPart that create js editor page. And this page extends CompilationUnitEditor. Because the js context info has been saved in outside of the worksapce.So create fileInput by FileStoreEditorInput. But I found this editor page can't ContentAssistProcessor.
The UI error info is Cannot access JavaScript file.
The Console error log is:
JavaScript Model Exception: JavaScript Model Status [Index out of bounds]
at org.eclipse.wst.jsdt.internal.core.Openable.codeComplete(Ope nable.java:125)
at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeCompl ete(CompilationUnit.java:305)
at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeCompl ete(CompilationUnit.java:298)
at org.eclipse.wst.jsdt.ui.text.java.JavaContentAssistInvocatio nContext.computeKeywordsAndContext(JavaContentAssistInvocati onContext.java:290)
at org.eclipse.wst.jsdt.ui.text.java.JavaContentAssistInvocatio nContext.getKeywordProposals(JavaContentAssistInvocationCont ext.java:125)
at org.eclipse.wst.jsdt.internal.ui.text.java.TemplateCompletio nProposalComputer.computeCompletionProposals(TemplateComplet ionProposalComputer.java:96)
at org.eclipse.wst.jsdt.internal.ui.text.java.CompletionProposa lComputerDescriptor.computeCompletionProposals(CompletionPro posalComputerDescriptor.java:298)
at org.eclipse.wst.jsdt.internal.ui.text.java.CompletionProposa lCategory.computeCompletionProposals(CompletionProposalCateg ory.java:258)
at org.eclipse.wst.jsdt.internal.ui.text.java.ContentAssistProc essor.collectProposals(ContentAssistProcessor.java:244)
And then I select eclipse file-->Opne File.. and choice a js file and open this editor.But this editor can't ContentAssistProcessor too.The error info is same as above.
Thanks.
Re: JSDT Open js File Can not ContentAssistProcessor [message #652186 is a reply to message #648257] Wed, 02 February 2011 22:31 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
Does the same input work properly in the JavaScript Editor? Is this a FileStoreEditorInput you created yourself?

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Need help with instalaltion.
Next Topic:Deploying an eclipse module to multiple locations on the same server
Goto Forum:
  


Current Time: Sat Oct 25 07:16:58 GMT 2014

Powered by FUDForum. Page generated in 0.01881 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software