Skip to content

Customizing menu entries in the IDE

Felipe Torrezan edited this page Apr 15, 2024 · 6 revisions

The menu entries in the IDE for EWPtool come from $EW_DIR$/common/config/EWPtool.menuitems. This file is written in XML format so that it can be manually edited for changing EWPtool's default behavior.

Practical Example

Starting from EWPtool version 4.2.0, a log file is generated automatically under: $PROJ_DIR$/settings/$PROJ_FNAME$.cfg when the tool is invoked from the IDE.

While many times this log file is useful for verifying changes performed in the project file, diagnosing eventual problems, or even for providing feedback on the issue tracker, there are some scenarios where the log file preferably should not be automatically generated.

The following configuration can replace the original contents from the $EW_DIR$/common/config/EWPtool.menuitems file and will disable the log file generation with -l false:

<?xml version="1.0" encoding="iso-8859-1"?>

<tools>
	<item>
		<label>Select source folder...</label>
		<cmd>"$EW_DIR$\common\bin\EWPtool.exe"</cmd>
		<args>-p "$PROJ_DIR$" -n "$PROJ_FNAME$" -c "$CONFIG_NAME$" -f true -l false</args>
		<initdir>$PROJ_DIR$</initdir>
		<availability>0</availability>
		<prompt>0</prompt>
		<redirect>0</redirect>
	</item>
	<item>
		<label>Rescan selected source folder(s)</label>
		<cmd>"$EW_DIR$\common\bin\EWPtool.exe"</cmd>
		<args>-p "$PROJ_DIR$" -n "$PROJ_FNAME$" -c "$CONFIG_NAME$" -l false</args>
		<initdir>$PROJ_DIR$</initdir>
		<availability>0</availability>
		<prompt>0</prompt>
		<redirect>0</redirect>
	</item>
</tools>

Note

Refer to Command line operation for all the command line options.