| Summary: | [content assist] Add unique/key/keyref XSD identity constraint aware proposals to XML editor, please | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | warping.drum | ||||
| Component: | wst.xsd | Assignee: | wst.xsd-triaged <wst.xsd-triaged> | ||||
| Status: | NEW --- | QA Contact: | Keith Chong <keith.chong.ca> | ||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | warping.drum | ||||
| Version: | unspecified | Keywords: | helpwanted | ||||
| Target Milestone: | Future | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
warping.drum
Created attachment 178870 [details]
Adds keyref proposals
Some crude effort to implement foreign key suggestions. Affects org.eclipse.wst.xml.ui and org.eclipse.wst.xsd.core
Comment on attachment 178870 [details]
Adds keyref proposals
Rejecting patch. Aside from difficulties consuming it due to extraneous reformatting, it assumes that all CMElementDeclarations extend XSDElementDeclaration.
This might actually be a better fit adding the proposal(s) through the org.eclipse.wst.sse.ui.completionProposal extension point--plus it would be free to use any dependencies (org.eclipse.xsd package) it needs.
(In reply to comment #2) > difficulties consuming it due to extraneous reformatting Mea culpa. > it assumes that all CMElementDeclarations extend > XSDElementDeclaration. Sorry if it assumes so. Though it was meant to cast and check for null instead. > This might actually be a better fit adding the proposal(s) through the > org.eclipse.wst.sse.ui.completionProposal extension point--plus it would be > free to use any dependencies (org.eclipse.xsd package) it needs. Thanks a lot. See if I can access the whole document from there. (In reply to comment #2) > org.eclipse.wst.sse.ui.completionProposal Use of org.eclipse.wst.xml.ui.internal.contentassist.AbstractXMLCompletionProposalComputer class I was previously using is discouraged in my brand new plugin, it looks like https://bugs.eclipse.org/bugs/show_bug.cgi?id=310696 is in my way. |