luisandresilva / reprotool

Automatically exported from code.google.com/p/reprotool
0 stars 0 forks source link

Opening created unsaved use case throws exception #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Created use case must be currently saved in project editor before open with 
double click.
Exception is thrown when use case is not saved into project.

Original issue reported on code.google.com by jiri.vin...@gmail.com on 12 Nov 2011 at 9:33

GoogleCodeExporter commented 8 years ago
Added save of the project before Use case editor opens (into method 
ProjectEditor#openUseCaseEditor).

Problem is that URIEditorInput is passed from the ProjectEditor to the 
UsecaseEMFEditor with URI of the UseCase object which is not contained in the 
resource. UsecaseEMFEditor then doesn't find the useCase in the resource.

Not sure if this is most elegant solution but it works.

Original comment by jiri.vin...@gmail.com on 17 Nov 2011 at 3:40