Home » Eclipse Projects » DSDP - Target Management » creating a custom Connection
creating a custom Connection [message #15281] |
Thu, 27 September 2007 09:52  |
Eclipse User |
|
|
|
Hi,
I'm new to RSE and would appreciate some advice on creating a new
connection. The idea is that in the New Connection window, I offer a
custom systemType (same level as Linux, SSH Only, etc), which then
offers some custom configuration panels after clicking Next.
I've fiddled around a bit and managed to create a new systemType
(based on existing subsystemConfigurations), but can't figure out how to
offer custom configuration options.
- what are the key interfaces / classes / extension points involved?
I'm looking at newConnectionWizard, but given that the class need only
implement IWizard, it's not clear how it's expected to communicate with
RSE through this interface
- are there any good examples / docs to look at?
many thanks
Dave
|
|
|
Re: creating a custom Connection [message #15347 is a reply to message #15281] |
Thu, 27 September 2007 19:48  |
Eclipse User |
|
|
|
Hi Dave,
There's basically two possibilities:
a) Your new systemType exhibits unique special functionality, that is
not tied to any particular subsystem. For instance, a special kind
of connectivity like serial line or JTAG. In this case, register a
newConnectionWizard by extension point:
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.do c.isv/reference/extension-points/org_eclipse_rse_ui_newConne ctionWizards.html
you can take the service discovery wizard as example, see the
org.eclipse.rse.discovery
plugin.
b) Your new systemType is more of a collection of existing subsystems,
and may even be extendable by more subsystems you do not know yet.
The system-specific properties are just the IP address, all the
rest of configuration is tied to the subsystems.
For this case, each ISubSystemConfiguration is associated with an
ISubSystemConfigurationAdapter which lives in the UI. The adapter
can contribute wizard pages specific to the subsystem, through
ISubSystemConfigurationAdapter#getNewConnectionWizardPages()
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.do c.isv/reference/api/org/eclipse/rse/ui/subsystems/ISubSystem ConfigurationAdapter.html#getNewConnectionWizardPages (org.eclipse.rse.core.subsystems.ISubSystemConfiguration,%20 org.eclipse.jface.wizard.IWizard)
The "daytime" example from the Examples download has code which
shows how this can be used: org.eclipse.rse.examples.daytime
DaytimeSubSystemConfigurationAdapter.
HTH,
Martin Oberhuber
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
|
|
|
Re: creating a custom Connection [message #570292 is a reply to message #15281] |
Thu, 27 September 2007 19:48  |
Eclipse User |
|
|
|
Hi Dave,
There's basically two possibilities:
a) Your new systemType exhibits unique special functionality, that is
not tied to any particular subsystem. For instance, a special kind
of connectivity like serial line or JTAG. In this case, register a
newConnectionWizard by extension point:
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.do c.isv/reference/extension-points/org_eclipse_rse_ui_newConne ctionWizards.html
you can take the service discovery wizard as example, see the
org.eclipse.rse.discovery
plugin.
b) Your new systemType is more of a collection of existing subsystems,
and may even be extendable by more subsystems you do not know yet.
The system-specific properties are just the IP address, all the
rest of configuration is tied to the subsystems.
For this case, each ISubSystemConfiguration is associated with an
ISubSystemConfigurationAdapter which lives in the UI. The adapter
can contribute wizard pages specific to the subsystem, through
ISubSystemConfigurationAdapter#getNewConnectionWizardPages()
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.do c.isv/reference/api/org/eclipse/rse/ui/subsystems/ISubSystem ConfigurationAdapter.html#getNewConnectionWizardPages (org.eclipse.rse.core.subsystems.ISubSystemConfiguration,%20 org.eclipse.jface.wizard.IWizard)
The "daytime" example from the Examples download has code which
shows how this can be used: org.eclipse.rse.examples.daytime
DaytimeSubSystemConfigurationAdapter.
HTH,
Martin Oberhuber
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
|
|
|
Goto Forum:
Current Time: Sun Jul 13 13:28:57 EDT 2025
Powered by FUDForum. Page generated in 0.05020 seconds
|