Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341931 - [M2x IDE Integration] Adapt the org.eclipse.sphinx.xpand.outlet.ExtendedOutlet.setPathExpression(String, IProject) method for setting path expression of outlets
Summary: [M2x IDE Integration] Adapt the org.eclipse.sphinx.xpand.outlet.ExtendedOutle...
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 11:20 EDT by Idrissa Dieng CLA
Modified: 2021-07-14 02:16 EDT (History)
2 users (show)

See Also:


Attachments
Adapt the org.eclipse.sphinx.xpand.outlet.ExtendedOutlet.setPathExpression(String, IProject) method for setting path expression of outlets (734 bytes, patch)
2011-04-05 11:21 EDT, Idrissa Dieng CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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