Open hut104 opened 4 years ago
Thinking about this one some more, I'm not sure if this is what we want. The summary tag is used by the IDE for intellisense descriptions. The description attribute is used by apsim as the variable name in the property presenter. We don't really want complete sentence(s) showing up in the variable name column in apsim's intellisense, but we also want good descriptions in the intellisense in the IDE. So these two pieces of metadata really serve different purposes.
Perhaps what's needed here is
Yep ok this makes sense. Instead of VariableNameAttribute, how about UIDescription (or GUIDescription). This is more descriptive about what it is used for.
The problem with the current name is that it implies that the attribute describes the variable, which it doesn't really - it just provides a more user-friendly name for the variable. UIDescription or GUIDescription (would have to be GuiDescription to be compliant with our naming standards) still has the same issue.
I don't understand what you're getting at. UIDescription does describe the variable for the user in the user interface. In the property presenter the user sees descriptions not variable names and so I don't think [VariableName] is right.
What I mean is that the [Description]
attribute doesn't really describe the variable. It contains a user-readable name of the variable. However the name Description
implies the opposite.
Use the summary tag in its place