protected override void DoDefaultAction()
{
var manager = (FileDocumentManager)this.GetDocumentManager();
Debug.Assert(manager != null, "Could not get the FileDocumentManager");
Guid viewGuid;
if(HasDesigner) {
viewGuid = VSConstants.LOGVIEWID_Designer;
} else if(GetItemType(this.FileName) == ProjectFileConstants.Compile) {
viewGuid = VSConstants.LOGVIEWID_Code;
} else {
viewGuid = VSConstants.LOGVIEWID_Primary;
}
IVsWindowFrame frame;
manager.Open(false, false, viewGuid, out frame, WindowFrameShowAction.Show);
}