Community
Participate
Working Groups
Occasionally the fileset template does not appear in the content assist when expected. Sometimes it reappears after a short delay.
Template proposals are presented immediately after CTRL-SPACE, however once the user begins typing additional text and the type-ahead feature kicks in, the template proposals disappear. Another CTRL-SPACE brings them back.
This is because TemplateProposal returns false for ICompletionProposalExtension2#validate(IDocument, int, Document). The same happens for templates in the Java Editor. Tom, do you know the plans here?
Darin, you're right. This is really a dup of bug 41750, I'll add some comments there. *** This bug has been marked as a duplicate of 41750 ***
I would recommend reopening this bug and fixing it in the ant editor ASAP (I am volunteering) since it is marked as 3.0 p2, unless Tom thinks that there is a very high probability that this going to make it in before the end of M9.
Sure...see what you can do.
With the latest changes from text I believe that the issue described in my original bug report has been corrected, thought it might be worthwhile to have another set of eyes on this.
This works for me on both 0504 & 0511 but it appears to have regressed in HEAD, though I still haven't found files in HEAD more recent than 0511 to blame it on. Ideas?
I am still seeing trouble here. I type in <prop CTRL+Space type 'e' the property template disappears.
Nothing more planned for 3.0
Reopening
We can investigate using the support added via bug 41750.
The remaining problem we have in Ant is that we want to validate on both prop and <prop. I could achieve this by overriding validate(IDocument, int, DocumentEvent) but then I would need protected access to the fTemplate and getReplaceOffset. Another proposal would be to provide a protected method such as getValidationString() that TemplateProposal would implement as fTemplate.getName() and we could override as needed (would still need access to fTemplate). Comments from Tom?
I favor the first proposal of comment 12: the CompletionProposal's template and the getReplace{Offset,EndOffset} methods should be made accessible for subclasses. I filed bug 74506 against platform-text to track that request.
Changes to AntTemplateProposal and AntEditorCompletionProcessor.
Comment #8 contains the test case. This fix currently depends on the latest code from jface text.
Please verify Kevin.
verified
Thanks build notes updated.