I'm developing a plugin for our internal framework and I would love to automatically add a namespace to the class my plugin action generates. However all I can do is put a text field on the dialog - but namespaces are often quite long and difficult to get right. PhpStorm has a great namespace field in the new PHP Class dialog which automatically populates the namespace based on the nearby files and also has autocomplete.
Is this field available for reuse in my custom plugin? If so how?