Community
Participate
Working Groups
The possibility of source to GUI update even when the java file has syntax/parser errors, should be looked at. In case this is not possible, some kind of feedback might be shown that GUI cannot be updated due to parser problems in ths source.
Status/Icon ??
Changes from GUI to source when a parse locks and prevents updating source cannot be allowed. bug 56417 handles this. So I'm closing this as a dup of that one. *** This bug has been marked as a duplicate of 56417 ***
This is a valid seperate problem than 56417, as this deals with source to UI updates when parse errors are present in code. At present when there are parse errors in the source code, no source to GUI updates are made by the snippet update process - only codegen's model is updated to reflect the new positions of the methods. Also GUI to source changes are not allowed when there are parse errors as codegen has no clue where to accurately and reliably put the changes in the source. In the future, there should be capability to understand changes made to the code even when there are parse errors in the code. If you have parse errors in your code and you changed jButton.setText("Foo") to jButton.setText("Bar"), then the text of the jButton should be updated in the UI. This kind of support could be given only to statements which codegen knows about, and not to new expressions which are added.