Excellent. Thanks M
On 7 Feb 2012, at 18:20, Sascha Zelzer wrote: > Hi Matt, > > what you need is a berry::IPerspectiveListener (and berry::IWindowListener). > > You can have a look at the code in the new org.blueberry.ui.qt.help plug-in. > If the user switches to the "Help" perspective, the "Help Editor" is opened > (if not already opened) and activated. The trick is to register the listeners > in your plug-in's activator start() method. This guarantees that the > listeners are registered early (when your plug-in is activated, which might > be due to the user switching to a perspective defined in your plug-in). > > https://github.com/MITK/MITK/blob/master/BlueBerry/Bundles/org.blueberry.ui.qt.help/src/internal/berryHelpPluginActivator.cpp > > - Sascha > > On 02/07/2012 04:52 PM, Clarkson, Matt wrote: >> Hi there, >> >> hopefully a simple question..... >> >> in the application framework, when I switch perspective, what is the right >> way to force an editor to be visible? >> I have 2 editors, so need to make sure the right one for that perspective is >> present. >> >> Currently subclasses of QmitkFunctionality do a lookup on >> QmitkStdMultiWidget... and I don't know if any other way to do it. >> >> Thanks >> >> Matt >> >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> mitk-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mitk-users > > ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
