[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ecf-dev] Salvo Newsreader : Passing the container reference among different wizards
- From: Harshana Eranga Martin <harshana05@xxxxxxxxx>
- Date: Tue, 24 Jul 2012 17:20:55 +0530
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=cPlZ50b35iu5wAHbKJOjZQCm+tgwHFgu+3X0rfQ8evY=; b=gVz/kqevGP94hK/1Zc8hw+nY6UXAjF298Glph9e4JgnlSOMwoMI1eZm4MbJEgzhTP+ AAAIYs2Q6iDN3Ko22zJmJiuC2dhs0GS+dZE0cBdqjGVv1XMnRnoMCyh9DPa+bk+MGkGW OgTj5qvTHkZOXKKrBay6eFXt+H6Ja3kl0KAg/oT5u64rjfT4kPv17DJA9EtkcoewL3lZ YWomvV2jSPcsqs17lv5zeUVPbei2DKB+XYff4c3pqCY7kI5+gqsDFOmQ8PpTS3TSh6v3 4yfkj4EODW8jQkMIY5NLeqCLHldP/BlG3G7dMHL9Q4j6uPzlYFUp2Pd6GUEosJ2yCPpl PSkA==
On 24 July 2012 17:08, Wim Jongman <wim.jongman@xxxxxxxxx>
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.
Thanks and Regards,
On Tue, Jul 24, 2012 at 1:07 PM, tishan pubudu kanishka dahanayakage <dtishanpubudu@xxxxxxxxx>
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?
ecf-dev mailing list
Thanks and Regards,
Harshana Eranga Martin
Senior Software Engineer,