Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » creating a custom Connection
creating a custom Connection [message #15281] Thu, 27 September 2007 13:52 Go to next message
Dave Rodgman is currently offline Dave Rodgman
Messages: 2
Registered: July 2009
Junior Member
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 23:48 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 984
Registered: July 2009
Senior Member
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 23:48 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 984
Registered: July 2009
Senior Member
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
Previous Topic:Eclipse Summit Europe - Embedded and Mobile Symposium
Next Topic:TM 2.0.1 is released
Goto Forum:
  


Current Time: Thu Oct 23 11:17:09 GMT 2014

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

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