Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325058 - [editor] In the OCLinEcore editor when accessing the attributes/properties of a parameter of an operation the editor shows an error.
Summary: [editor] In the OCLinEcore editor when accessing the attributes/properties of...
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-12 16:08 EDT by Simon harrer CLA
Modified: 2011-05-27 03:14 EDT (History)
1 user (show)

See Also:


Attachments
Support for Parameters as symbol lookup targets (3.66 KB, patch)
2010-09-15 05:16 EDT, Ed Willink CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon harrer CLA 2010-09-12 16:08:32 EDT
Build Identifier: 20100617-1415

I used the example of the extended library. There, just add the following method to the ecore model using OCLinEcore editor:

operation showError(lib : Library[1]) : Boolean {
			body: self.name = lib.name;
		}

As you can see, the "name" is detected as an error. However, the library has a name. This happens for any parameter. 

Reproducible: Always

Steps to Reproduce:
1. Create the Extended Library Example for Ecore Models
2. Edit extlibrary.ecore and add the Method shown in the details
3. The name is detected as an error, but should be ok.
Comment 1 Ed Willink CLA 2010-09-15 05:16:18 EDT
Created attachment 178906 [details]
Support for Parameters as symbol lookup targets

It's a pity this wasn't a couple of weeks earlier then it could have been in 3.0.1.

The problem is not the navigation from a parameter but the resolution of a parameter as a name at all.

Patch fixes it, but the code may all be overatken by 3.1.0. At least the test case should keep the new code honest.
Comment 2 Ed Willink CLA 2010-09-28 12:30:13 EDT
Committed to HEAD for M3 and to maintenance branch for 3.0.2.
Comment 3 Ed Willink CLA 2011-05-27 03:14:07 EDT
Closing