locked
How to create a multiple Document window in vspackages ? RRS feed

  • Question

  •  

    I have created a ToolWindow in VSPackages(vs2013) and binded the list of items from database to that ToolWindow,Now i want to open  Document Window in diffrent tabs when i click the multiple  items in Toolwindow.

     

    Wednesday, December 10, 2014 5:35 AM

Answers

  • Document windows (also called editors or designers), are always tied to a project hierarchy. Even "loose" files not associated with a specific project tied to a project implementation (the Miscellaneous Files project).

    If you want to launch document windows from your own Toolwindow implementation, your ToolWindow will need to implement (at a minimum), the IVsUIHierarchy/IVsHierarchy interfaces. Basically, you should think of this a minimal implementation of a project type. Each of the items in your Toolwindow list, should be bound to a unique hierarchy item.

    Then when you wish to launch the editor/designer associated with the hierarchy item, you can just leverage the IVsUIShellOpenDocument.OpenSpecificEditor to launch the desired editor/designer.

    Sincerely,


    Ed Dore

    Friday, December 19, 2014 8:21 PM

All replies

  • Hi jnanesh,

    What do you want to show in the new Document Window? If you want to open some custom file type, you may need to create custom exitor to show or modify the custom file type. Check this wolkthrough for reference:

    Walkthrough: Creating a Custom Editor


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, December 11, 2014 9:19 AM
  • Document windows (also called editors or designers), are always tied to a project hierarchy. Even "loose" files not associated with a specific project tied to a project implementation (the Miscellaneous Files project).

    If you want to launch document windows from your own Toolwindow implementation, your ToolWindow will need to implement (at a minimum), the IVsUIHierarchy/IVsHierarchy interfaces. Basically, you should think of this a minimal implementation of a project type. Each of the items in your Toolwindow list, should be bound to a unique hierarchy item.

    Then when you wish to launch the editor/designer associated with the hierarchy item, you can just leverage the IVsUIShellOpenDocument.OpenSpecificEditor to launch the desired editor/designer.

    Sincerely,


    Ed Dore

    Friday, December 19, 2014 8:21 PM