You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd argue that converting to JavaFxProperties in a data class wrong. In the end you'd have no parameters anymore, which is not allowed for data classes. The intention action would need to be more sophisticated for it.
Nevertheless, the plugin freezes on non-data classes as well an we'll fix it.
SiebelsTim
added a commit
to SiebelsTim/tornadofx-idea-plugin
that referenced
this issue
Feb 22, 2019
I don't know why, but removing the whitespace will sometimes result
in an endless loop always getting a new PsiWhitespace object.
nullable primitive objects need to be SimpleObjectProperties as
the primitive counterpart do not support null.
Lastly, disable "convert all properties to TFX properties" in data classes
as that would result in an empty constructor which is not allowed
for data classes. It would break the data classes functions anyway.
We might want to consider improving the intention action to keep
constructor parameters so the user of that class can create an object
in the same way it was before running this action. Right now we remove the
parameters.
I still think it's wrong for data classes though
fixesedvin#96
Hi, I'm trying to convert a 'data class' to a property object, but when I try to do it, IntelliJ freezes.
That is the moment in which we select the option to convert all the properties, but when selecting it, it loads but never ends.
That's how intellij is frozen, and I have to force the closure by killing the instance.
I am doing something wrong? this is the class that I'm trying to convert:
The text was updated successfully, but these errors were encountered: