QuickFix for a non existing reference?

Hello,

i have to choose a reference in the editor, but in some cases i do not want any from the list. In this case it would be nice to have a quickfix, which generates an new object with the name from the given string. Is there any possibility to do so?

Thank's for answering.
3 comments
I think, this could be done by writing an action or an intention, which will get the focused cell from an editor context, then try to recognise object of which type the user meant by typing "invalid" string (method, field etc) and will allow to introduce a field/method/etc and automatically replace the "invalid" string with a valid reference.

You can look at ImportModelByRoot for an example of getting an "invalid" string from an editor
0
Thank you for your answer but where can I find ImportModelByRoot?
0
Ctrl-N/Cmd-N, "AddModelImportByRoot" (sorry, gave you a wrong name of an action)
It's in j.m.ide.editor solution
0

Please sign in to leave a comment.