[jbosstools-issues] [JBoss JIRA] (JBIDE-21331) Connection wizard: it looks as if the wizard is creating new connection instances several times

Fred Bricon (JIRA) issues at jboss.org
Wed Feb 3 09:38:00 EST 2016


     [ https://issues.jboss.org/browse/JBIDE-21331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Bricon updated JBIDE-21331:
--------------------------------
    Fix Version/s: 4.4.x
                       (was: 4.3.1.CR1)


> Connection wizard: it looks as if the wizard is creating new connection instances several times
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-21331
>                 URL: https://issues.jboss.org/browse/JBIDE-21331
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 4.3.0.Beta1
>            Reporter: Andre Dietisheim
>            Priority: Minor
>             Fix For: 4.4.x
>
>
> The connection wizard creates new connection instances in several places which seems unnecessary (we need it at least once where we dont want to modify an existing connection and operate on a copy before merging the changes back upon successfull verification)
> {code:title=ConnctionWizardPageModel} 
> 	private void initEditConnection(IConnection connection) {
> 		this.selectedConnection = connection;
> 		this.connection = connection.clone();
> 		...
> {code}
> {code:title=ConnctionWizardPageModel} 
> 	public IStatus connect() {
> 		...
> 		try {
> 			this.connection = createConnection();
> 		...
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list