Drag and drop & Inserting References

Post here questions and problems related to editing and publishing DITA content.
sanGeoff
Posts: 42
Joined: Mon Aug 18, 2014 11:50 pm

Drag and drop & Inserting References

Post by sanGeoff »

Is there any way to get the map manager to insert a map link when you drag and drop a .ditamap onto it, like the way it does with .xml files? It acts as though it's going to insert a link where the mouse is, but then just ends up opening the file.

Also, is it possible in the InputURLChooserCustomizer to tell what type of reference you are trying to insert? For example, when someone chooses to insert a Map reference, I want the dialog to filter and only show .ditamap files, not xml. The InputURLChooser ResourceFilter does not seems to indicate this at all.

I suppose I could use JDialog.getWindows() and find the application dialog and then compare the title to provide filtering based on what dialog is open. Seems a bit of a hack though, but it would work.

<oXygen/> XML author 17.1, Win 7

Thanks,