DLR-SR / Noise

Modelica library for generating stochastic signals to be included in the Modelica Standard Library
9 stars 11 forks source link

Add preferredView #62

Closed tbeu closed 9 years ago

tbeu commented 9 years ago

Since the diagram view is empty let's switch to text by default.

akloeckner commented 9 years ago

I just noticed that (in Dymola) this also switches to text, if I have manually switched to the info layer before. Which I find disrupting.

So, I checked the MSL for this annotation. There are only very few instances (~3) with preferredView="text". These are types without any info layer. Then there are a few preferredView="info" (~30). These are all packages.

In my opinion, we should try and avoid this annotation unless we have very good reasons. (i.e., no info nor diagram content. Even for packages the user might want - for whatever reason - to copy all text from the package.)

If you don't object, I'll close the pull request these days.

tbeu commented 9 years ago

I do not mind, generally, but