[
https://jira.jboss.org/browse/JBPM-2573?page=com.atlassian.jira.plugin.sy...
]
Stefan Klensch updated JBPM-2573:
---------------------------------
Attachment: NameSection.java
I really hoped, that this really annoying bug would have been fixed with the current 4.4
SNAPSHOT version, but anyway...
After a little debugging session using the current trunk source the problem seems to be
the call of the refresh() method inside JpdlPropertySection resulting from the change of
comand stack in the ModifyListener of NameSection.
The setting of the textfield-content to the new value (already present there in this case)
in updateValues() sets the cursor to position 0 each time there's a name change.
I fixed it by introducing a boolean member variable "renameFromModify" which is
set/reset in a try/finally block around getCommandStack().execute(rec).
If renameFromModify is true, commandStackListener does *NOT* refresh the text field.
Works for me, tested the roundtrip from/to XML and from/to diagram editor field names for
different activity types.
See the modified NameSection class attached.
Process name text input field in properties view does not input
characters in the right order
---------------------------------------------------------------------------------------------
Key: JBPM-2573
URL:
https://jira.jboss.org/browse/JBPM-2573
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: GPD
Affects Versions: jBPM 4.1
Environment: Eclipse Platform 3.5.1.M20090917-0800
jBPM 4 Graphical Editor and Tools 1.1.0.v200908252230-31-8s733L3J7D7793
All jBPM 4 Tools Features 4.1.0.v200908252230-775-A0I8_GOdN2MrX_LVTDTlIAAj
jBPM 4 Graphical Editor and Tools Sources 1.1.0.v200908252230-31-8s733L3J7D7793
Windows XP SP3
Reporter: Carl Allain
Priority: Minor
Fix For: jBPM 4.x
Attachments: NameSection.java
The field "name" in the "properties" view does not work like other
fields. Characters entered on the keyboard are always put at the beginning of the current
property value, regardless of where the cursor is positionned.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira