Skip to main content



      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 12:55
Eclipse UserFriend
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:

<codesnippet>

RSEMainNewConnectionWizard newConnWizard =3D new =

RSEMainNewConnectionWizard();
IRSESystemType systemType =3D =

RSECorePlugin.getTheCoreRegistry().getSystemTypeById("my.system.type ");
newConnWizard.restrictToSystemType(systemType);

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

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

dialog.setBlockOnOpen(true);
dialog.open();

</codesnippet>

"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=
d.

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:

<codesnippet>

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

</codesnippet>

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

do I get the handle to the newly created IHost?

Thanks,
Andreas
Previous Topic:User actions
Next Topic:User actions
Goto Forum:
  


Current Time: Sun Jul 06 06:34:34 EDT 2025

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

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

Back to the top