Created attachment 27912 [details] MenuFactory patch to enable the feature In order to hide programmatically a test bean from add menu, it would be nice if jmetter checks the BeanDescriptor hidden flag and not add the item to menu if true. Find attached the patch to enable the feature, based on trunk r1199633. Stef
Could you provide the patch as a unified diff please? That's the format generated by SVN and Eclipse (and various other tools). If using Eclipse, please create a project-relative patch, not workspace-relative.
Created attachment 27914 [details] Patch in unified diff format Here is the patch with unified diff format. It is based on trunk (r1199829) Stef
Patch format is better - the diff function now works in Bugzilla. However, the patch uses path names that don't exist in the JMeter project: --- C:\JMeter\old\src\org\apache\jmeter\gui\util\MenuFactory.java +++ C:\JMeter\new\src\org\apache\jmeter\gui\util\MenuFactory.java I would expect the patch to have a header such as: Index: src/core/org/apache/jmeter/gui/util/MenuFactory.java =================================================================== --- src/core/org/apache/jmeter/gui/util/MenuFactory.java (revision 1199781) +++ src/core/org/apache/jmeter/gui/util/MenuFactory.java (working copy) Note that the file is under src/core/org/..., not src/org/... Luckily that is relatively easy to fix, but please ensure any future patches are generated relative to the JMeter root directory. == I applied a variation of the fix so that GUIs are treated the same as properties within the GUIs. URL: http://svn.apache.org/viewvc?rev=1199895&view=rev Log: Bug 52160 - Don't display TestBeanGui items which are flagged as hidden Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java jmeter/trunk/xdocs/changes.xml
(In reply to comment #3) Great thanks! I'll be careful to the diff headers if I'll propose another one. Stef
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2641