Philip Nye wrote:
> I find the recent files list in the file menu of XXE very useful.
> 
> However, if I attempt to open a file from it and the open fails, the
> file disappears from the list. I find this annoying as what I usually
> want to do is fix something (e.g. mount a network volume or edit a
> schema) then try again but I can't because the file has now gone from
> the list.
> 
> Is this deliberate behaviour? 

Sure. We simply want to get rid of files which no longer exist and
therefore, which pollute the recent files list.

We know perfectly well that other software (for instance, acroread)
*keep* non-existent files in their recent files list and this irritates
us as much as XXE's behavior irritates you.



> can it be fixed?

We do not intend to ``fix'' this. Too much work for a very thin benefit.

For us, the only reasonable enhanchement would be to keep in the recent
files list:
* existing files
* which look like being XML files, even if they are not well-formed.





----
PS: The modular architecture of XXE V3 allows you to fix this yourself
if you *really* want to do it. The standard GUI specification of XXE
contains:

---
  ...
  <menuItems name="recentFilesMenuItems">
    <class>com.xmlmind.xmleditapp.kit.part.RecentFilesMenuItems</class>
  </menuItems>
  ...
  <menu name="fileMenu" label="_File"
        helpId="fileMenu">
    <action name="newAction" />
    <action name="openAsTemplateAction" />
    <action name="openCopyAction" />
    <separator />
    <action name="openAction" />
    <separator />
    <action name="saveAction" />
    <action name="saveAsAction" />
    <action name="saveCopyAction" />
    <action name="saveAllAction" />
    <separator />
    <action name="pageSetupAction" />
    <action name="printAction" />
    <separator />
    <action name="quitAction" />
    <!-- No need to add a separator here. Separator is dynamic too. -->
    <menuItems name="recentFilesMenuItems" />
  </menu>
--

Simply replace com.xmlmind.xmleditapp.kit.part.RecentFilesMenuItems by a
slightly modified class of your own. (All this is fully documented --
see our web site.)

You'll find attached to this answer the source code of
com.xmlmind.xmleditapp.kit.part.RecentFilesMenuItems.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RecentFilesMenuItems.java
Type: text/x-java
Size: 3005 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051019/75409aad/attachment.java
 

Reply via email to