You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2011/11/09 14:48:19 UTC
DO NOT REPLY [Bug 52160] New: handle BeanDescriptor.hidden flag in
JMeter
https://issues.apache.org/bugzilla/show_bug.cgi?id=52160
Bug #: 52160
Summary: handle BeanDescriptor.hidden flag in JMeter
Product: JMeter
Version: 2.5.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: issues@jmeter.apache.org
ReportedBy: stephane.hoblingre@gmail.com
Classification: Unclassified
Created attachment 27912
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27912
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
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52160] handle BeanDescriptor.hidden flag in JMeter
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52160
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |p.mouawad@ubik-ingenierie.c
| |om
Platform|PC |All
OS/Version|Windows XP |All
Severity|normal |enhancement
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52160] handle BeanDescriptor.hidden flag in JMeter
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52160
stef <st...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52160] handle BeanDescriptor.hidden flag in JMeter
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52160
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Sebb <se...@apache.org> 2011-11-09 14:18:46 UTC ---
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.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52160] handle BeanDescriptor.hidden flag in JMeter
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52160
--- Comment #2 from stef <st...@gmail.com> 2011-11-09 16:34:25 UTC ---
Created attachment 27914
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27914
Patch in unified diff format
Here is the patch with unified diff format. It is based on trunk (r1199829)
Stef
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52160] Don't display TestBeanGui items which are
flagged as hidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52160
--- Comment #4 from stef <st...@gmail.com> 2011-11-09 18:19:02 UTC ---
(In reply to comment #3)
Great thanks!
I'll be careful to the diff headers if I'll propose another one.
Stef
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52160] Don't display TestBeanGui items which are
flagged as hidden
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52160
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Summary|handle |Don't display TestBeanGui
|BeanDescriptor.hidden flag |items which are flagged as
|in JMeter |hidden
--- Comment #3 from Sebb <se...@apache.org> 2011-11-09 18:04:31 UTC ---
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
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.