Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 272976 - [Editor] References to other files are broken
Summary: [Editor] References to other files are broken
Status: CLOSED FIXED
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: 0.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-20 16:26 EDT by Sebastian Zarnekow CLA
Modified: 2010-05-27 07:57 EDT (History)
3 users (show)

See Also:


Attachments
Fix (5.30 KB, patch)
2009-04-20 16:26 EDT, Sebastian Zarnekow CLA
sven.efftinge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2009-04-20 16:26:24 EDT
Created attachment 132492 [details]
Fix

Consider the following mwe file 'bar.mwe' in project A:

<workflow>
	<component file="com/sample/foo.mwe">
		<propDefined value="zonk" />		
                <propNotDefined value="zonk" />
	</component>
</workflow>

and this file 'com/sample/foo.mwe' in project B:

<workflow>
  <property name='bla' value='${propDefined}'/>
  <property name='bla' value='${missingProp}'/>
</workflow>

The editor will not resolve the reference to foo.mwe. Any assignement (propDefined, propNotDefined) will be highlightes as an error. However, the workflow will run fine.

Please find a fix for the unresolved file attached. It contains a workaround that suppresses the error markers on the assignments, too.

Expected behaviour: propDefined is not highlighted as an error, propNotDefined is highlighted as an error. Furthermore, I'ld expect a warning, that "missingProp" is not defined in 'bar.mwe'.
Comment 1 Dennis Huebner CLA 2009-04-21 04:10:05 EDT
Patch is applied, thx.
Comment 2 Sebastian Zarnekow CLA 2009-04-21 05:38:23 EDT
Thanks, Dennis. I'll file a second bug for the issue with property validation.
Comment 3 Bernd Kolb CLA 2009-05-27 10:29:38 EDT
closing