Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Salvo Newsreader : Passing the container reference among different wizards

Hi Wim,

On 24 July 2012 17:08, Wim Jongman <wim.jongman@xxxxxxxxx> wrote:
Can't you pass the container in the constructor of the wizard?

Here, He can't do that because, by the time of execution of init of wizard, we do not know what is the container type going to be. Therefore the container init has to be done at the performFinish() stage of the wizard. We had a separate discussion on this AFAIR.

In this case, he needs to init a new container to connect to different services in the NewsReader server. What came to my mind is to use a context information hierarchy as below. 

First of all we connect to News Reader server and connect to other services later. If we can save the connection info in the NewsReader connection, we can use that info to pass to new containers to use for authentications, etc.

WDYT?

Thanks and Regards,
Harshana

Regards,

Wim


On Tue, Jul 24, 2012 at 1:07 PM, tishan pubudu kanishka dahanayakage <dtishanpubudu@xxxxxxxxx> wrote:
Hi All,
When doing container implementation to salvo I m creating the IContainer inside performFinesh() of NewNewsServerWizard since I have to figure out the protocol type before instantiating the particular container. Now I have a requirement to refer to that particular container instance in other wizards. (i.e. To get other functionalities such as connecting to specified news sources) What is the recommended way to do this?

--
Regards,
Tishan



_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev




--
Thanks and Regards,
Harshana Martin
--
Harshana Eranga Martin
Senior Software Engineer,
WSO2 Inc.
Web: http://wso2.com 
           http://wso2.org

ECF Committer: http://www.eclipse.org/ecf/
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05


Back to the top