Run C++ functions in the editor?

I have a C++ functions that reads an XML file with transformation values for foliage (created in 3ds Max and Forest Pack) the function then adds instances to the foliage system in Unreal based on this data. But I have to press Play in the editor to see the effect. Would it be possible to call this function inside the editor itself?

Yes, Inside any actors Construct (in blueprint) . So just add any actor, and call the functions from inside Construct.

You have two options:

Use the c++ version of construction script - OnConstruction()

OR

Use Blutility to call C++ functions directly from the editor/details panel.