G#

cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming a G# class

Hello all,

I am getting a little bit desperate on the task in the subject. I just want to rename a (whole) class but right now the only way I can do that is the clone the original class and assign a new name.

If I have to rename a method (including modifying the icon) it's quite easy. I just load the .lvclass file, right-click on the method in the tree, and choose "G# IDE -> Rename...".

To clone the class, I open a new empty LV project, import the original class directory, right-click on the root and select "G# IDE -> Clone class...".

But  the problem is that I lose literally hours by doing this because the LV project I work on is very big and thare are smthing like 7-8 layers of object dependancies!

Does anybody know a less time-consuming way to rename a G# class?

thanks in advance for the help

0 Kudos
Message 1 of 4
(5,500 Views)

Hi captain_harlock

In the latest release of the G# framework (1.5.1)  the possibillity to rename classes in main application instance was added. You can rename your class by opening the .lvclass file (do not open in project instance) and right-click on the class file -> G#IDE -> Rename class

The renaming may still take some time depending on the class dependencies (they have to be loaded in main instance if i remember correctly).

You will find the latest version here:

http://www.addq.se/gsharp/

Thanks for using the G# Framework .

//Patrik

0 Kudos
Message 2 of 4
(4,563 Views)

Thank you  Patrik for the answer.

Unfortunately the LV project I work on is based on G# Framework version 1.4.smthing

Maybe I could propose to upgrade to 1.5.1 , but are there any incompatibilies / deprecations that you're aware of?

For what I understand, AddQ is just adding features, but you never know...

Anyway.... thanks for this awesome product !

0 Kudos
Message 3 of 4
(4,563 Views)

As far i am aware, there are no incompatibillity issues. As you say, we try to only correct the bugs and add new features. The goal is to always keep backwards compatibillity, but as you say you newer know what we did not think of. I do know that there are a lot of bugfixes from 1.4.x to 1.5.1.

What is improtant for your source code in your project is also the version of the G# core. The framework consists of the G# core and the G# IDE together, but it's  only the G# core that are included in the source code you produce, not the G# IDE. So check the version of the G# code, it's shown in the Tools -> G# IDE -> Version Dialog. It's called "G# Version".

I would suggest you to update one of the development environments and do a sanity check, i would not expect problems. I have many projects where i keep uppdating to new versions of the framework continously, and it works smoothly.

//Patrik

0 Kudos
Message 4 of 4
(4,563 Views)