[
https://issues.jboss.org/browse/JBIDE-12162?page=com.atlassian.jira.plugi...
]
Rob Stryker commented on JBIDE-12162:
-------------------------------------
The structure of the class builds widgets piece by piece... for example the name section,
teh homedir section, the jre section. This is done for easier subclassing, so as7 for
example can leave out different pieces or add their own.
A result of this method breakdown is that creating the name area also adds the modify
listener to the name widget. And since the modify listener actually calls a shared common
method to update the entire model based on all widgets, the initial set of the name also
attempts to set the homedir and hte jre.
Before any of the widgets are created, there was an updateModels(), which cleared the jre
model and refreshed it. So jre was not affected. Name being the first widget hat it's
proper value gotten from the runtime and then set in the textbox. And the act of setting
the name also ends up setting the homedir to the value from the previous wizard. Since hte
homedar section had not yet initialized, the value was the same as last time.
The other area (server and config) are stored in a child composite and are not initialized
in the same way.
Server adapters Runtime home directory cannot be different
----------------------------------------------------------
Key: JBIDE-12162
URL:
https://issues.jboss.org/browse/JBIDE-12162
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Reporter: Max Rydahl Andersen
Assignee: Rob Stryker
Priority: Critical
Fix For: 3.3.0.Final
1. create server 1 with runtime 1
2. create server 2 with runtime 2 (of same type as used in #1)
3. change runtime 1 homedirectory via server editor to something different than #2
Assert:; runtime 1 and runtime 2 directory are now different.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira