Community
Participate
Working Groups
When triggering completion on an attribute that expects a reference to another resource, completion should provide the possible resources in the project. So if user has project/images/myPic.jpeg and complete on project/page.html in a <img src="..."/> then they should be suggested images/myPic.jpeg.
@Mickael as you know, I have already done that with Eclipse WTP WebResources. See * https://github.com/angelozerr/eclipse-wtp-webresources/wiki/Image-Features * https://github.com/angelozerr/eclipse-wtp-webresources/wiki/Script-Features * https://github.com/angelozerr/eclipse-wtp-webresources/wiki/CSS-Features#css-files-with-link
New Gerrit change created: https://git.eclipse.org/r/74205
@Angelo: I took some inspiration in your work and adapted/rewrote a few basic completionProposalProviders. Currently, they're missing the preview feature for images (and even for text files). However, they seem to do the work well enough. Can you please review the PR and give it a +1 if you're fine with it, both from code and IP perspective? I would like to include most of the features in wtp-webresources into HTML editor by Oxygen, and for the simplest and least risky ones in Neon.1.
@Nitin: Can you please review the suggested patch? Would be nice to have it in master ASAP and consider backporting it for Neon.1.
FWIW, Eclipse Wild Web Developer ( https://marketplace.eclipse.org/content/eclipse-wild-web-developer-web-development-eclipse-ide ) has this feature built-in.
With some alterations from the original changesets, merged.
New Gerrit change created: https://git.eclipse.org/r/141362
Gerrit change https://git.eclipse.org/r/141362 was merged to [master]. Commit: http://git.eclipse.org/c/sourceediting/webtools.sourceediting.git/commit/?id=a83bc4718b2af67f88bfa722569d55639ded0911