GetComponentID() now protected?

Post Reply
terrymcg
Posts: 85
Joined: Mon Apr 08, 2019 12:35 am

GetComponentID() now protected?

Post by terrymcg »

Hi Folks...

Just upgraded to v2 - very nice!

But... (isn't there always one?)... the GetComponentID() method of VoltageComponent now seems to be protected, so modules where I'm using that for GUI component identification or debugging won't compile anymore :(

Code: Select all

22:36:31.341 Save completed
22:36:31.373 Compile started
22:36:31.373 Output: Compile starting
22:36:32.023 Output: C:\Users\terry\AppData\Local\Temp\Voltage Module Designer\HTurk\HTurk.java:2054: error: GetComponentID() has protected access in VoltageComponent
22:36:32.023 Output:       long id = button.GetComponentID();
22:36:32.024 Output:                       ^
22:36:32.024 Output: C:\Users\terry\AppData\Local\Temp\Voltage Module Designer\HTurk\HTurk.java:2063: error: GetComponentID() has protected access in VoltageComponent
22:36:32.024 Output:       return button.GetComponentID() == b.GetComponentID();
22:36:32.024 Output:                    ^
22:36:32.025 Output: C:\Users\terry\AppData\Local\Temp\Voltage Module Designer\HTurk\HTurk.java:2063: error: GetComponentID() has protected access in VoltageComponent
22:36:32.025 Output:       return button.GetComponentID() == b.GetComponentID();
22:36:32.026 Output:                                          ^
22:36:32.026 Output: 3 errors
22:36:32.027 Output: Compile failed, return code 1
Loosing the debug clarity is a drag, the hit on the GUI side is much worse.

Is there some other way I should be id'ing GUI elements, or will GetComponentID() re-appear, or...? :?

Cheers,
--
Terry McG
Cherry Garcia
Site Admin
Posts: 293
Joined: Fri Aug 31, 2018 2:57 am

Re: GetComponentID() now protected?

Post by Cherry Garcia »

Terry,

We will be releasing a new update to fix that. Thanks!
terrymcg
Posts: 85
Joined: Mon Apr 08, 2019 12:35 am

Re: GetComponentID() now protected?

Post by terrymcg »

Perfect - many thanks! :D :D
Post Reply

Return to “Module Designer”