-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various minor improvements for E4 EMF Xpath #2289
Conversation
Test Results 1 815 files 1 815 suites 1h 40m 10s ⏱️ For more details on these failures, see this check. Results for commit b9fe844. ♻️ This comment has been updated with latest results. |
bd72a0a
to
f8b4a24
Compare
@@ -42,19 +46,35 @@ public interface XPathContext { | |||
* required type | |||
* @return Object found | |||
*/ | |||
Object getValue(String xpath, Class<?> requiredType); | |||
<T> T getValue(String xpath, Class<T> requiredType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the method signature is the same after generic erasure this is a binary and source compatible change.
But as far as I can tell, this method and its overload is not used within the SDK at all, besides tests.
If there are no unresolved remarks I plan to submit this tomorrow (European) evening. |
367b81b
to
4950874
Compare
instead of requiring the bundle 'org.apache.commons.jxpath'. This allows interested parties to supply alternative providers than the old and problematic 'org.apache.commons.jxpath'. Helps for eclipse-platform#423
4950874
to
b9fe844
Compare
This PR contains three commits with minor improvements of the E4 EMF Xpath bundle:
as suggested in Remove dependencies on org.apache.commons.jxpath #423 (comment)
XPathContext.stream()
and strengthen type of getValue(String, Class)The new method is for example useful in:
https://github.com/eclipse-pde/eclipse.pde/blob/ba11267159a1f5eed242af8f18dadc299f763637/e4tools/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/StringModelFragment.java#L587-L600