Bug 266480 - [content assist] Unsupported case for Node.PROCESSING_INSTRUCTION_NODE' in AbstractContentAssistProcessor class
Summary: [content assist] Unsupported case for Node.PROCESSING_INSTRUCTION_NODE' in A...
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 3.0.3   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: wst.xml CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-02-27 08:27 EST by Georgi Dimitrov CLA
Modified: 2013-06-19 11:14 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Dimitrov CLA 2009-02-27 08:27:26 EST
Build ID: 20081113203138

Steps To Reproduce:
The 'computeCompletionProposals(int documentPosition, String matchString, ITextRegion completionRegion, IDOMNode treeNode, IDOMNode xmlnode)' method in 'org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor' class  does not handle the case where 'xmlnode.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE' .

More information:
1.Open the ejb-j2ee-engine.xml file in the XML editor. Switch to the source tab.
2.Put the cursor in the "<?xml version="1.0" encoding="UTF-8"?>" line and try to call the content assist. 
Thus the 'computeCompletionProposals(int documentPosition, String matchString, ITextRegion completionRegion, IDOMNode treeNode, IDOMNode xmlnode)' method in 'org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor' class is called with 'xmlnode' parameter -> Node.PROCESSING_INSTRUCTION_NODE.
Comment 1 Nitin Dahyabhai CLA 2009-05-25 14:40:39 EDT
Georgi, you haven't said what was expected and what is happening instead.
Comment 2 Ian Tewksbury CLA 2010-03-10 12:50:16 EST
The content assist has changed since Bug 258999.  AbstractContentAssistProcessor has been depreciated.  But there is still no content assist offered in Node.PROCESSING_INSTRUCTION_NODE.  This would be handled now in XMLTagsCompletionProposalComputer.  But the question still stands, what options would we offer?
Comment 3 Nick Sandonato CLA 2010-04-30 10:23:09 EDT
Sounds more like an enhancement to support content assist in the XML declaration. If not, please let us know, and we can adjust. Thanks.