Jan Bares wrote:
> Hi, I use this command to refresh file from the source:
>
> <command name="refreshFromSource">
> <macro>
> <sequence>
> <command name="XXE.open" parameter="[reopenIfNewer]" />
> </sequence>
> </macro>
> </command>
>
> I open (drag) a XHTML file to XXE and do not modify anything. Now I change
> the underlying file and run the command above. Now I cannot edit the file in
> XXE (and the cursor doesn't blink). When I run the command once more,
> everything seems to be fine.
>
> XXE V2.10 on Windows 2k with JRE 1.5.
I *cannot* reproduce the problem
* on Windows 2000, Java 1.5.0_03,
* by dragging C:\Program
Files\XMLmind_XML_Editor\doc\user\userguide.xhtml into XXE,
* by using GNU Emacs to modify C:\Program
Files\XMLmind_XML_Editor\doc\user\userguide.xhtml,
* with the binding[*] below:
---
<binding>
<keyPressed code="F3" />
<command name="XXE.open" parameter="[reopenIfNewer]" />
</binding>
---
Ideas:
* May be you have bound command refreshFromSource to a keystroke that
cannot work properly (Esc, Alt-something, etc). Explanation depends on
the keystroke you have chosen.
* May be the external application you use to modify your document locks
the file.
* May be XXE ``crashes''. With Java, ``crashes'' are very soft. They are
almost never fatal. You need to run XXE with a console and send us the
error messages possibly displayed in this console.
-----------------------------------
In order to run XXE with a console:
Here I assume that you start XXE using the ``icon/launcher created by
the installer'' (file xxe.exe) in the Start menu:
1. Go to the bin/ subdirectory of the directory where you have installed
XXE, for example C:\Program Files\XMLmind_XML_Editor\bin.
2. Edit xxe.jstart using notepad. Make sure to use a version of notepad
which supports the UTF-8 encoding.
3. Change line:
---
start jre\bin\javaw.exe
---
to:
---
start jre\bin\java.exe
---
4. Make sure to save your changes using the UTF-8 encoding.
5. Start XXE as usual, using the "Start" menu/"XMLmind XML Editor"
group/"XMLmind XML Editor" entry.
-----------------------------------
---
[*] There is no need to define a macro just to execute a single command.
But I'm sure your problem does not come from this.