Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Service Configuration preference page and project properties page questions

I have a mostly working preference page and project properties page for 
service configurations. I have a few questions.

I have a properties page with a Composite object which I'm intending to 
use as the parent  for the ServiceModelWidget. I create a new 
ServiceModelWidget passing in the selected IServiceConfiguration object, 
then call ServiceModelWidget.createContents(), passing in the Composite as 
the parent widget. I don't see the ServiceModelWidget appear in the 
properties page. Do I need to do something else to have this appear? Is 
this the proper way to get the widget to display? Do I need to do 
something else?

When I add a service configuration to the project I'm calling 
ServiceModelManager.setConfiguration(IProject, IServiceConfiguration) 
which seems to work because I end up with multiple service configurations 
associated with the project.. The 'setConfiguration' method name implies 
to me that it's only allowing a single service configuration so I want to 
be sure I'm doing this right.

If I try to remove a service configuration from the set of available 
service configurations in my preferences page, I call 
ServiceModelWidget.remove(IServiceConfiguration) but it doesn't remove the 
service configuration. 

Dave


Back to the top