On Saturday 12 September 2009 22:33:30 ext Nicolas Arnaud-Cormos wrote: > Hi, > > I want to switch header/source from another plugin, I was wondering what is > the best way to do this. > Right now, I'm doing this: > Core::ActionManager *am = core->actionManager(); > am->command(CppTools::Constants::SWITCH_HEADER_SOURCE)->action()- > > >trigger();
What we usually do, is to make thus dependencies explicit. In your case, I would do: a) Adding a exported function to the cppplugin which gives you the header/source file corresponding to a source/header file. b) Add a explicit dependency on the cppplugin c) Call EditorManager::openEditor() That's all from memory, if anything seems wrong ask again. :) daniel _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
