Opening *.ditamap files renders XML Editor unusable
Posted: Wed Jan 30, 2013 10:17 am
I have used XML Editor for a couple of years, as an Eclipse plugin. I have always had the following problem, but with the latest versions it has worsened and renders my setup practically unusable.
If I dclick a *.ditamap file, it opens in the editor in Author mode (=one of the three modes Text, Grid, Author). This always took a long time, but I found that if I switched to Text mode, closed the map and opened it again, it would come up in Text mode (and not Author mode) with no performance penalty. My way of handling this is then for each map to open it, wait-wait-wait (and here Eclipse frequently goes into Not Responding mode) until it comes up in Author mode, switch to Text mode, close it and then it will always later come up in Text mode.
In some cases, Eclipse will hang forever trying to open the map, in those cases I'm in deep trouble, because even if I kill Eclipse, it will try to re-open the same files the next time I start it, with very much the same result. I therefore have to be very careful when working with maps - in fact, it is has come to the point that I just don't edit maps in Eclipse (I use Notepad++ or some other editor instead) - it is too dangerous. This problem has become worse over the years, either because our maps have become more complex or that the software simply doesn't handle this well.
If I open the map in DITA Maps Manager, there are no problems - it is fairly snappy and will not hang. However, if I select the Open Map in Editor button in Maps Manager and the map hasn't been open in th editor before, I get into the exact same situation as described above.
It seems as the Author mode is the problem; if I could avoid it for *.ditamap files, then I could work around this problem. I don't need Author mode for maps, I just want to edit the map as a simple text file. Is this possible?
Technical information:
- Fujitsu Siemens Siemens Lifebook S782, Intel Core i7 @2.2GHz, 16GB RAM, Windows 7 64bit
- Eclipse Juno v4.2
- oXygen XML Author v14.1.0
Example map:
I cannot include the complete source, but here is an example of a map that takes a long to open in Author mode.
If I dclick a *.ditamap file, it opens in the editor in Author mode (=one of the three modes Text, Grid, Author). This always took a long time, but I found that if I switched to Text mode, closed the map and opened it again, it would come up in Text mode (and not Author mode) with no performance penalty. My way of handling this is then for each map to open it, wait-wait-wait (and here Eclipse frequently goes into Not Responding mode) until it comes up in Author mode, switch to Text mode, close it and then it will always later come up in Text mode.
In some cases, Eclipse will hang forever trying to open the map, in those cases I'm in deep trouble, because even if I kill Eclipse, it will try to re-open the same files the next time I start it, with very much the same result. I therefore have to be very careful when working with maps - in fact, it is has come to the point that I just don't edit maps in Eclipse (I use Notepad++ or some other editor instead) - it is too dangerous. This problem has become worse over the years, either because our maps have become more complex or that the software simply doesn't handle this well.
If I open the map in DITA Maps Manager, there are no problems - it is fairly snappy and will not hang. However, if I select the Open Map in Editor button in Maps Manager and the map hasn't been open in th editor before, I get into the exact same situation as described above.
It seems as the Author mode is the problem; if I could avoid it for *.ditamap files, then I could work around this problem. I don't need Author mode for maps, I just want to edit the map as a simple text file. Is this possible?
Technical information:
- Fujitsu Siemens Siemens Lifebook S782, Intel Core i7 @2.2GHz, 16GB RAM, Windows 7 64bit
- Eclipse Juno v4.2
- oXygen XML Author v14.1.0
Example map:
I cannot include the complete source, but here is an example of a map that takes a long to open in Author mode.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map id="gen075-install" outputclass="topic-numbering draft">
<title>Installation Documentation for <keyword keyref="relname"/> <keyword keyref="relversion"/></title>
<!-- generic topics -->
<topicref href="release/concept/introduction.dita">
<topicref href="release/concept/welcome-install.dita" type="topic"/>
<topicref href="release/concept/release-notes-install.dita" type="topic"/>
<topicref href="release/concept/usage-install.dita" type="topic"/>
<!-- topicref href="release/concept/install-doc.dita">
<topicref href="release/task/install-doc.dita" type="task"/>
<topicref href="tech/solaris/sw/task/apache-restart.dita" type="task"/>
<topicref href="tech/solaris/sw/task/tomcat-restart.dita" type="task"/>
<topicref href="release/task/access-doc.dita" type="task"/>
</topicref -->
</topicref>
<!-- release specific topics -->
<topicref href="release/concept/release-installation.dita">
<topicref href="release/task/necccis-unpack.dita"/>
<topicref href="release/task/necccis-install-nisi.dita"/>
<topicref href="release/concept/installation-completed.dita"/>
</topicref>
<!-- generic topics -->
<topicref href="poc/concept/poc-ssc-main.dita"/>
<!-- conref resources -->
<keydef href="resource/windows.dita" keys="windows" type="topic"/>
<keydef href="resource/necccis.dita" keys="necccis" type="topic"/>
<keydef href="resource/virt.dita" keys="virt" type="concept"/>
<keydef href="release/gen075/resource/release-conrefsrc.dita" keys="release" type="topic"/>
<keydef href="release/gen075/resource/release-conrefsrc.g.dita" keys="release.g" type="topic"/>
<!-- keydef resources -->
<topicref href="release/gen075/resource/release-keydefsrc.g.ditamap" format="ditamap"/>
<topicref href="release/gen075/resource/ecp-keydefsrc.g.ditamap" format="ditamap"/>
<topicref href="release/gen075/resource/opmu-keydefsrc.g.ditamap" format="ditamap"/>
</map>