Bug 495132 - Completion on resource path (src/href...) in HTML editor
Summary: Completion on resource path (src/href...) in HTML editor
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 enhancement with 2 votes (vote)
Target Milestone: 3.14   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2016-06-01 06:31 EDT by Mickael Istria CLA
Modified: 2019-04-30 08:39 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2016-06-01 06:31:13 EDT
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.
Comment 2 Eclipse Genie CLA 2016-06-01 07:19:55 EDT
New Gerrit change created: https://git.eclipse.org/r/74205
Comment 3 Mickael Istria CLA 2016-06-01 07:23:06 EDT
@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.
Comment 4 Mickael Istria CLA 2016-06-23 07:32:23 EDT
@Nitin: Can you please review the suggested patch? Would be nice to have it in master ASAP and consider backporting it for Neon.1.
Comment 5 Mickael Istria CLA 2019-04-02 07:15:33 EDT
FWIW, Eclipse Wild Web Developer ( https://marketplace.eclipse.org/content/eclipse-wild-web-developer-web-development-eclipse-ide ) has this feature built-in.
Comment 6 Nitin Dahyabhai CLA 2019-04-28 17:48:10 EDT
With some alterations from the original changesets, merged.
Comment 7 Eclipse Genie CLA 2019-04-29 17:40:35 EDT
New Gerrit change created: https://git.eclipse.org/r/141362