Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368037 - ReqIF Files that use Presentations loose that information upon reopening
Summary: ReqIF Files that use Presentations loose that information upon reopening
Status: RESOLVED FIXED
Alias: None
Product: MDT.RMF
Classification: Modeling
Component: Reqif-1.0 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 critical (vote)
Target Milestone: i12.03   Edit
Assignee: Mark Broerkens CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 10:22 EST by Michael Jastram CLA
Modified: 2012-04-12 10:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jastram CLA 2012-01-06 10:22:03 EST
Once a presentation has been added to a ReqIF file, it can be saved, but not reopened any more.  Unfortunately, the stack trace is unrelated to the real problem:

java.lang.IllegalArgumentException: No ReqIf Content found.  Invalid ReqIF File?
	at org.eclipse.rmf.pror.reqif10.editor.presentation.Reqif10Editor.openRif(Reqif10Editor.java:1037)
	at org.eclipse.rmf.pror.reqif10.editor.presentation.Reqif10Editor.createPages(Reqif10Editor.java:992)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)


The real problem is that the backend first tries to instantiate a proxy object that will subsequently be replaced by the real object.  The object in question is ProrPresentationConfiguration, but this is an abstract class (and therefore, the proxy object cannot be instantiated).  For a concrete presentation, the class to be used is a subclass that is of course concrete, i.e. IdConfiguration.
Comment 1 Michael Jastram CLA 2012-01-19 10:30:13 EST
I fixed part of the symptom, but not the underlying problem, see 328dfe35b490b555db9f89d45e573ed1fbe365cc

The current behavior is: Presentations are restored, but the presentation's configuration is lost upon opening.
Comment 2 Michael Jastram CLA 2012-03-24 06:59:23 EDT
Should be fixed with new core from Mark.
Comment 3 Michael Jastram CLA 2012-04-12 10:20:12 EDT
Everything seems to work fine now.  I'll mark it as resolved.