Huditsch, Roman (LNG-VIE) wrote:
> 
> I have a really simple question. How do I best change the items in the
> File|Open menue?

In my answer, I assume that you are talking about the File menu (and not
about the recently opened files found at the end of the File menu).



> I just want to remove some of them without deleting the whole config
> directories.

Create in any of the two addon/ directories scanned by XXE during its
startup, a customize.xxe_gui file containing a redefinition of the
"fileMenu" menu.

Real world example of such customize.xxe_gui file:
---
<?xml version='1.0' encoding='UTF-8'?>
<gui xmlns="http://www.xmlmind.com/xmleditor/schema/gui";
     xmlns:gui="http://www.xmlmind.com/xmleditor/schema/gui";>

  <!-- CHECK/CHANGE THIS PROPERTY -->
  <property name="measurereporttemplate"
    url="true">http://XXX:8080/measure/report_template</property>

  <!-- ============================================================= -->

  <translation location="custom_gui_en.properties" />

  <action name="downloadReportTemplateAction" label="_Download..."
          icon="download.gif">
    <class>com.renault.planche.DownloadTemplateAction</class>
  </action>

  <action name="uploadReportTemplateAction" label="_Upload..."
          icon="upload.gif">
    <class>com.renault.planche.UploadTemplateAction</class>
  </action>

  <menu name="reportTemplateMenu" label="_Report Template">
    <action name="downloadReportTemplateAction" />
    <action name="uploadReportTemplateAction" />
  </menu>

  <menu name="fileMenu">
    <menu name="reportTemplateMenu" />
    <separator />
    <insert />
  </menu>

  <layout>
    <hidden>
      <insert />
      <property name="measurereporttemplate" />
    </hidden>
  </layout>
</gui>
---

All this is explained in "XMLmind XML Editor - Customizing the User
Interface" http://www.xmlmind.com/xmleditor/_distrib/doc/gui/index.html

Reply via email to