[oXygen-sdk] Problem with opening dita maps

Jan Bevers jbevers at sdl.com
Thu Feb 6 08:07:08 CST 2014


Hi

I have a couple of questions related to opening DITA maps in combination with a custom protocol handler.

In our system Dita maps are stored with an ".xml" extension on the file system. No difference with regular topics.

Some stuff I had to do:

*         I had to change a setting in the preferences
File Types => DITA maps file patterns  =  "*.ditamap, *.bookmap , .xml"

*         Next thing I did was adding following override in my CustomProtocolHandler
@Override
        public String getContentType() {
                // Set ditamap mimetype for maps
                // This changes oXygen behavior so it shows the question to open in map manager or editor
                WorkItem workItem = AuthoringBridge.getWorkArea().getWorkItemByPath(url);
                if (workItem.getObjectType().equals(SelectableObjectTypes.Map)) {
                    return "application/ditamap";
                }
            return super.getContentType();
        }

Some questions/remarks I have:

*         When I did an "Open map in editor" from the map manager panel I got a popup asking to open in the map manager or editor. Would expect it to open it in the editor immediately.

*         Is it possible to set the "DITA maps file patterns" through code? Otherwise all users have to do this manually.

Thanks in advance.

Regards


Jan Bevers | Developer | SDL | Content Management Technologies Division | +32 (0)15 400 970 | jbevers at sdl.com
[image001]
</pre><font face="arial" size="2" color="#736F6E">



<a href="http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature">
<img src="http://www.sdl.com/Content/images/SDLlogo2014.png" border=0><br><br>www.sdl.com
</a><br><br>

<font face="arial" size="1" color="#736F6E">

<b>SDL PLC confidential, all rights reserved.</b>

If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, 
and we further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
</font>


This message has been scanned for malware by Websense. www.websense.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20140206/890dc862/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 5562 bytes
Desc: image003.jpg
URL: <http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20140206/890dc862/attachment.jpg>


More information about the oXygen-sdk mailing list