When designing a application, I sometime find that I am not happy with the name I choose for a class after I have already integrated the class into my project.
I also often use the class name for the label on in/out terminals and block diagram constants of the class.
The problem arises when I change the name of the class from within the project. If I then go inspect the code, I find that the labels still have the old class name.
For example, if I rename the class from 'My original class name.lvclass' to 'My new class name.lvclass' I still see this on the block diagrams:
But what I want to see is this:
So, I propose a rule. If a control or constant of a class has its label visible and that label (or part of that label) matches the original name of the class on disk (with or without the .lvclass extension), when the class is renamed in the project, the label on the control or constant is also changed to reflect the new name.
The reason I say 'or part of the label' is if you have added a prefix or suffix (like 'in' or 'out') to the label, it would still get updated.
I also think that this should apply to labels that include the '.lvclass' and ones that do not, as I often will use the class name without the extension when labeling classes.
I am happy to accept that this correction would only apply to code within the project where the class rename happens. But it would be a bonus if there was a menu option to rerun the cleanup from a different project that might use the same renamed class.
Thanks in advance for the Kudos!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.