Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » How to open a new connection wizard for a particular system type?
How to open a new connection wizard for a particular system type? [message #568124] Fri, 08 June 2007 16:55
Andreas Schik is currently offline Andreas SchikFriend
Messages: 12
Registered: July 2009
Junior Member
Hi there,
I have the following problem.
From within my code I would like to open the wizard for a new connectio=
n =

to create a new connection of a certain system type. What I do is:


RSEMainNewConnectionWizard newConnWizard =3D new =

IRSESystemType systemType =3D =

RSECorePlugin.getTheCoreRegistry().getSystemTypeById("my.system.type ");

Shell shell =3D getShell();
SystemWizardDialog dialog =3D null; =

dialog =3D new SystemWizardDialog(shell, newConnWizard); =



"my.system.type" is a custom type.
With DSDP 2.0M7 this code brings up something weird:
The main page of RSEMainNewConnectionWizard comes up displaying the tree=

with system types, restricted to "my.system.type" as the only entry, the=

'next' and 'Finish' buttons are disabled and there is nothing I can do.

In RSE 1.0.1 I did exactly the same (there using the class =

RSENewConnectionWizard) and it worked perfectly: there was no system typ=
e =

selection necessary as I restricted the wizard to a particular kind. =

Instead the connectionpage was displayed immediately. Exactly what I nee=

Looking at the code of RSEMainNewConnectionWizard I can see that in the =

case of "onlySystemType" no other pages are added to wizard. Why's that?=

The other thing is that with RSE 1.0.1 I did this:

if (!dialog.wasCancelled()) {
// Select the newly created host
Object output =3D newConnWizard.getOutputObject();
// some code here


This does not work either as getOutputObject is gone from the wizard. Ho=
w =

do I get the handle to the newly created IHost?

Previous Topic:User actions
Next Topic:Customizing New Connection Wizard
Goto Forum:

Current Time: Sun May 27 03:41:37 GMT 2018

Powered by FUDForum. Page generated in 0.02074 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top