Hi all,
I am currently try to finish a long untouched patch[1]. Feel free to have a
look at the commit message for more infos.
The patch used the ISarosContext that isn't present anymore. The context
that was injected as dependency.
Please correct me if I am wrong: I figured that there where some
refactorings, and I think the functionality that I'm looking for is no
moved to 'ContainerContext'[3]. I want to add a method that can return a
component by its name (a String key). Currently you can only get a
component via the class[4].
My question is how do I get the pico container that include the
HTMLUIcontext[5]?
To clarify, I want to get a specific page instances from the context (aka
pico container), depending on the key value given by the browser function
call:
public void manageDialog(String dialogID){
IBrowserPage page = (IBrowserPage) sarosContext.getComponent(dialogID);
// do something with this page
}
[1]http://saros-build.imp.fu-berlin.de/gerrit/#/c/3125/
[2]
http://www.saros-project.org/html-gui#providing-functionality-the-java-part
[3]
https://github.com/saros-project/saros/blob/master/de.fu_berlin.inf.dpp.core/src/de/fu_berlin/inf/dpp/context/ContainerContext.java
[4]
https://github.com/saros-project/saros/blob/master/de.fu_berlin.inf.dpp.core/src/de/fu_berlin/inf/dpp/context/IContainerContext.java#L48
[5]
https://github.com/saros-project/saros/blob/master/de.fu_berlin.inf.dpp.ui/src/de/fu_berlin/inf/dpp/HTMLUIContextFactory.java#L45
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
DPP-Devel mailing list
DPP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-devel