adrnsoh / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

StateMachineBase doesn't get updated when creating form commands #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a new form element in the GUI builder
2.Add a new command to the form, and click 'Go to source'.

What is the expected output? What do you see instead?
The new method in StateMachine calls method of same name in parent, but 
StateMachineBase doesn't get updated with the new method, so it's marked as an 
error.

What version of the product are you using? On what operating system?
0.1 build 20120218 on Ubuntu 11.10

Original issue reported on code.google.com by 1815...@coolman.ca on 7 Mar 2012 at 8:20

GoogleCodeExporter commented 9 years ago
We only update the code when you press save. Not when you generate a callback.
There is a reason behind this, the source must be synchronized with the 
resource file which you are constantly changing... 

I thought about implicitly triggering save to solve this particular issue but I 
don't like doing things without prompting the user. 

Original comment by shai.almog on 7 Mar 2012 at 8:44