Opened 16 years ago

Last modified 14 years ago

#1079 closed defect (wontfix)

Prevent users from adding components to short class definitions, causing kernel errors. (from MathCore)

Reported by: krsta Owned by: krsta
Priority: normal Milestone:
Component: Version:
Keywords: Cc: krsta,

Description

Today it is possible for the user to drop components on classes which are defined using short class definitions. This results in kernel errors as it is not possible to add components to such classes without converting their class definition to long class definitions. However, doing so, changes the scope for any modifiers in the short class definition and may break the class.

What we need to do is to make it possible for the editor to determine if a class is defined using a short class definition, in order to prevent operations that will cause kernel error.

I recommend that we add a boolean to the return data of the kernel function getClassInformation().

{..., file, { partial, final, encapsulated, SHORT}, ...}

Change History (2)

comment:2 Changed 14 years ago by sjoelund.se

This is a MathModelica tool issue, not OpenModelica.

Note: See TracTickets for help on using tickets.