[jbosstools-issues] [JBoss JIRA] (JBIDE-22262) Only OpenShift 3 connections should be listed when opening Deploy Image to OpenShift wizard

Andre Dietisheim (JIRA) issues at jboss.org
Thu Apr 28 06:21:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-22262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198318#comment-13198318 ] 

Andre Dietisheim edited comment on JBIDE-22262 at 4/28/16 6:20 AM:
-------------------------------------------------------------------

This is already supported and used in other places. When adding the connection wizard page to the wizard, simply use a type parameter (Connection.class) when instantiating the page:

{code:title=ConnectionWizardPage}
public <C extends IConnection> ConnectionWizardPage(IWizard wizard, IConnectionAware<C> wizardModel, Class<? extends IConnection> connectionType) {
{code}

A usage example is in the ConnectionWizardFragment which is using the WrappedConnectionWizardPage:
{code}
private WrappedConnectionWizardPage(IWizardHandle wizardHandle) {
	super(((IWizardPage) wizardHandle).getWizard(), new ConnectionWizardModel(Connection.class), Connection.class);
{code}


was (Author: adietish):
This is already supported and used in other places. When adding the connection wizard page to the wizard, simply use a type parameter (Connection.class) when instantiating the page:

{code:title=ConnectionWizardPage}
	protected <C extends IConnection> ConnectionWizardPage(IWizard wizard, IConnectionAware<C> wizardModel, Class<? extends IConnection> connectionType, 
			boolean allowConnectionChange) {
{code}

> Only OpenShift 3 connections should be listed when opening Deploy Image to OpenShift wizard
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-22262
>                 URL: https://issues.jboss.org/browse/JBIDE-22262
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 4.4.0.Alpha1
>            Reporter: Marián Labuda
>              Labels: docker, openshift_v3
>             Fix For: 4.4.0.Alpha1
>
>
> When opening Deploy Image to OpenShift wizard from context menu of a docker image, connection dialog is opened at first. There is available OpenShift 3 type of server as well as OpenShift 2 server. There should be available only OpenShift 3 server type and listed only OpenShift 3 connections.



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



More information about the jbosstools-issues mailing list