[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ptp-dev] Questions about service contributor wizard pages
|
Dave,
For some reason only part of my reply was sent on Friday.
To answer the rest of your question, you're on the right track, but
taking a look at the code I realize that I need to provide some way to
hook into the wizard constructor (which creates the configuration) and
performFinish() (which sets the configurationd). You should then just
be able to replicate the code from RMConfigurationWizard. There are a
couple of ways to do this, but the easiest might be to extend
IServiceProviderContributer to supply the wizard as well as the wizard
pages. Then you can subclass ServiceProviderConfigurationWizard and
override performFinish(). I'll work on this today.
Greg
On Jun 26, 2009, at 2:18 PM, Greg Watson wrote:
Hi Dave,
I added some docs to wiki.eclipse.org on the services framework that
might be useful.
See answers below.
On Jun 26, 2009, at 1:00 PM, Dave Wootton <dwootton@xxxxxxxxxx> wrote:
Greg
I'm trying to understand the structure of the services model and
how I
want to approach adding the wizard pages for the resource managers.
It
looks to me lika at the moment the configuration process is invoked
from
the Services->Launch Wizard menu selection on the Eclipse main menu
where
I end up on a HPC project configuration dialog page. That page has a
configure button which I think is supposed to lauch the wizard
pages for
the service provider selected from the drop down and that configure
button
is enabled only if the code finds the correct instance of a class
implementing IServiceProviderContributor.
That menu is added by the services.test plugin to make it easier to
test your wizard, but yes.
That IServiceProviderContributor is responsible for obtaining the
set of
wizard pages for that service provider, and I need to implement an
instance of that class for each of the resource managers.
Correct.
So I think I understand how the appropriate wizard gets invoked and
gets
the set of wizard pages.
I'm looking at the
AbstractRemoteProxyResourceManagerConfigurationWizardPage class,
which you
suggested I modify to extend the
ServiceProviderConfigurationWizardPage
class, and which gets me the default wizard page that I use in
configuring
the PE and LoadLeveler proxies.
The initContents() method of that class currently gets an
AbstractRemoteResourcemanagerConfiguration object which I understand
currently holds the attributes (host, path, etc) for the resource
manager.
I think that I now want to obtain an instance of the
IServiceProvider,
where I further think I want to extend the ServiceProvider class as a
class (or set of classes) which hold the resource manager
attributes that
I need to save.
The current initContents() method gets the config information from
the
wizard by calling getConfigurationWizard().getConfiguration(), so I
think
that I need to provide a method in
ServiceProviderContributionWizardPage
that obtains the instance of the ServiceProviderConfigurationWizard
for
the service provider, and that the ServiceProviderConfigurationWizard
needs to implement a getConfigurationWizard() method that returns the
IServiceProvider object for the service provider?
Am I on the right track with this? Has my thinking gone completely
off the
tracks and I've gotten lost somewhere?
Thanks
Dave
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev