Visual Studio Plugin for Team Explorer (TFS) - How to get a selection in query editor? -



Visual Studio Plugin for Team Explorer (TFS) - How to get a selection in query editor? -

i developing visual studio plugin extend tfs query handling (2012 version).

after lot of (re)search done.

what plugin can extend context menu in query editor. there can add together additional filters, works. insert filter above selected row in editor.

i cannot find possibility retrieve selection.

i fetch current querydocument

iworkitemtrackingdocument wtd = getactivedocument(); iquerydocument querydoc = wtd iquerydocument; public iworkitemtrackingdocument getactivedocument() { object _locktoken = new object(); // token used locking document if (dte.activedocument != null) { string activedocumentmoniker = dte.activedocument.fullname; iworkitemtrackingdocument doc = docservice.finddocument(activedocumentmoniker, _locktoken); if (doc != null) { doc.release(_locktoken); } homecoming doc; } homecoming null; }

but iquerydocument not seem have possibility selected rows. there selecteditemids-property, property contains selected work item ids in results view, not in query editor.

any ideas?

thanks, klaus

visual-studio plugins tfs

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -