Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344907 - Operation bodies included in documentation
Summary: Operation bodies included in documentation
Status: CLOSED FIXED
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: RC1   Edit
Assignee: Kenn Hussey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 21:15 EDT by Kenn Hussey CLA
Modified: 2011-05-31 10:34 EDT (History)
0 users

See Also:
Kenn.Hussey: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenn Hussey CLA 2011-05-05 21:15:56 EDT
The contents of body expressions are included in operation documentation even if/when the option to process operation bodies is chosen in the UML import wizard. Inspection of the source code uncovered a Boolean expression which references an intended constant:

if (specification != null && !(eModelElement instanceof EOperation && options != null
        && OPTION__PROCESS.equals(options.get(OPERATION_BODY)))) {
    addDocumentation(eModelElement, specification.stringValue());
}

The OPTION__OPERATION_BODIES constant should clearly be referenced here instead of OPERATION_BODY.
Comment 1 Kenn Hussey CLA 2011-05-05 22:05:48 EDT
The fix has been committed to CVS.
Comment 2 Kenn Hussey CLA 2011-05-17 23:01:52 EDT
The fix is available in the RC1 build.
Comment 3 Kenn Hussey CLA 2011-05-31 10:34:28 EDT
Closing for Indigo release.