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

Bug 341931

Summary: [M2x IDE Integration] Adapt the org.eclipse.sphinx.xpand.outlet.ExtendedOutlet.setPathExpression(String, IProject) method for setting path expression of outlets
Product: [Automotive] Sphinx Reporter: Idrissa Dieng <idydieng>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ali.akar82, stephaneberle9
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Adapt the org.eclipse.sphinx.xpand.outlet.ExtendedOutlet.setPathExpression(String, IProject) method for setting path expression of outlets none

Description Idrissa Dieng CLA 2011-04-05 11:20:19 EDT
Adapt the org.eclipse.sphinx.xpand.outlet.ExtendedOutlet.setPathExpression(String, IProject) method for setting path expression of outlets. This method should allow having same value between path and path expression of an outlet. Else, the newly path expression is not set and the getPathExpression returns the old value.

Please refer to attach patch.
Comment 1 Idrissa Dieng CLA 2011-04-05 11:21:31 EDT
Created attachment 192568 [details]
Adapt the org.eclipse.sphinx.xpand.outlet.ExtendedOutlet.setPathExpression(String, IProject) method for setting path expression of outlets
Comment 2 Stephan Eberle CLA 2011-04-05 12:23:15 EDT
Fixed but used a slightly different approach than proposed. Instead of setting the pathExpression passed to ExtendedOutlet#setPathExpression() on both pathExpression and path fields, the pathExpression field is initialized only when its value is different from the path value. If not then the pathExpression field is reset to null - and this is what was actually missing.
Comment 3 Balazs Grill CLA 2021-07-14 02:16:18 EDT
Mass-closing Resolved tickets