Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 442438

Summary: [model editor] xpath validator/editor for fragment targets
Product: [Eclipse Project] e4 Reporter: Steven Spungin <steven>
Component: ToolsAssignee: Project Inbox <e4.tools-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: minor    
Priority: P3 CC: wim.jongman
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=349155
https://bugs.eclipse.org/bugs/show_bug.cgi?id=324954
https://bugs.eclipse.org/bugs/show_bug.cgi?id=437958
Whiteboard: stalebug
Attachments:
Description Flags
screenshot: popup validator and html preview
none
screenshot: popup showing expression error
none
sample css for xpath preview none

Description Steven Spungin CLA 2014-08-24 09:14:23 EDT
Now that we are close to allowing xpath expressions for fragment targets, it would be nice to have a popup editor for ease of input, code highlighting, and validation.

I was successful in making the JXPath XPathParser work for these cases, but need feedback on the best way to integrate Apache stuff into Eclipse.
Comment 1 Steven Spungin CLA 2014-08-24 11:33:17 EDT
Created attachment 246286 [details]
screenshot: popup validator and html preview
Comment 2 Steven Spungin CLA 2014-08-24 11:34:38 EDT
Created attachment 246287 [details]
screenshot: popup showing expression error
Comment 3 Steven Spungin CLA 2014-08-24 11:36:03 EDT
Created attachment 246288 [details]
sample css for xpath preview
Comment 4 Steven Spungin CLA 2014-08-24 11:45:13 EDT
I will add this as an 'edit' anchor in the model editor next to the text box once we figure out how to handle the JXPath dependency.

It would be really nice to have this extended to search current model, project, workspace, or target platform and display results.
Comment 5 Wim Jongman CLA 2014-08-28 06:26:28 EDT
Hi Steven,

The IP team has approved a subset of JXPath 1.3 for eclipse.e4 which we are.

https://dev.eclipse.org/ipzilla/show_bug.cgi?id=3247

You can get this bundle from Orbit [1]. If you need a newer version we need to file a new CQ.

Cheers,

Wim

[1] (link subject to rot, use any other orbit repo if not found) http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/
Comment 6 Steven Spungin CLA 2014-08-28 09:55:16 EDT
That bundle worked well (1.3) and had no dependencies.  Nice!

The emf.xpath bundle still has license info referring to 1.2; 1.2 is not even in the bundle.  I would think that if a bundle depended on another bundle and did not include it, there would be no need for any copyright info at all.  Is that correct?
Comment 7 Eclipse Genie CLA 2018-11-13 00:44:54 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 8 Lars Vogel CLA 2019-06-05 07:30:56 EDT
This is a mass change to close all e4 bugs marked with "stalebug" whiteboard.

If this bug is still valid, please reopen and remove the "stalebug" keyword.