Allow refactoring descriptor file to specify default file patterns
Posted: Wed Mar 08, 2023 6:50 pm
We previously requested the following enhancement:
EXM-46522: Allow refactoring descriptor file to specify default file patterns
Different refactoring operations might apply to different file types:
It would be nice if a refactoring descriptor could specify a default file filter value, just as default parameter values can be specified. Indeed, the same behavior could be used - if the default is edited, the change is remembered within the current session only. And if no default is specified in the descriptor file, then the existing behavior could be used (the last-used filter pattern is carried into the dialog of the next refactoring operation, even if it is a different one).
Here is a testcase:
There are separate refactoring operations for DITA map and topic files. Note the following issues:
EXM-46522: Allow refactoring descriptor file to specify default file patterns
Different refactoring operations might apply to different file types:
- DITA maps and topics (*.dita,*.ditamap)
- DITA maps only (*.ditamap)
- DITA-OT project files (*.xml)
- XSLT stylesheet files (*.xsl)
It would be nice if a refactoring descriptor could specify a default file filter value, just as default parameter values can be specified. Indeed, the same behavior could be used - if the default is edited, the change is remembered within the current session only. And if no default is specified in the descriptor file, then the existing behavior could be used (the last-used filter pattern is carried into the dialog of the next refactoring operation, even if it is a different one).
Here is a testcase:
There are separate refactoring operations for DITA map and topic files. Note the following issues:
- If you manually set the file filter for one refactoring operation, it incorrectly becomes the default for the other refactoring operation.
- If you apply either refactoring operation at the Project scope with a blank filter, the SVG file is modified by rewriting its CDATA element. This could be prevented by having the default filter scope exclude .svg files.