Opened 14 years ago

Closed 12 years ago

#1544 closed defect (fixed)

OMEdit: Issues when adding class

Reported by: Per Östlund Owned by: Per Östlund
Priority: high Milestone: 1.9.0
Component: OMEdit Version: trunk
Keywords: Cc: Per Östlund

Description

If you create a new model in OMEdit, and then open the text view and add another model underneath that the first model so that you get something like:

model A
end A;

model B
end B;

and try to save it, you will get a message saying "Error: Class save not found in scope <global scope> (looking for a function or record)". You will also get a message in the info tab saying "Renamed 'A' to 'A.B'".

You can then not close the model. Closing the model gives you three options, Save, Discard and Cancel. Save does not work for the reasons given above, Discard print an error in the error tab saying "Follow Error has occured. while deleting A.B" and does nothing, and Cancel obviously does nothing either.

I'm not sure if you should be able to add several models in the same text view, but the situation should be handled better regardless.

Change History (2)

comment:1 by Per Östlund, 12 years ago

Cc: perost, → perost
Component: OMEdit
Milestone: 1.9.0
Version: trunk

comment:2 by Adeel Asghar, 12 years ago

Resolution: fixed
Status: newclosed

You can now add models in the same text view. But after you have saved it. The models appears as separate classes.

Note: See TracTickets for help on using tickets.