src/Misc/EFTools/EntityDesign/VisualStudio/Package/EntityDesignDocumentFrameMgr.cs
// <summary>
//     This method will set the editing context for the mapping details and model browser. This will
//     also show/hide these tool windows.
// </summary>
This method will set the editing context for the mapping details and model browser. This will
also show/hide these tool windows.
This method will set the editing context for the mapping details and model browser . This will also show / hide these tool windows .
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
        protected internal override void SetCurrentContext(EditingContext context)
        {
            try
            {
                if (PackageManager.Package != null)
                {
                    if (PackageManager.Package.MappingDetailsWindow != null)
                    {
                        PackageManager.Package.MappingDetailsWindow.Context = context;
                    }
                    if (PackageManager.Package.ExplorerWindow != null)
                    {
                        PackageManager.Package.ExplorerWindow.Context = context;
                    }
                }
            }
            catch
            {
            }
        }
[ SuppressMessage ( " " , " " ) ] protected internal override void SetCurrentContext ( EditingContext context ) { try { if ( PackageManager . Package != null ) { if ( PackageManager . Package . MappingDetailsWindow != null ) { PackageManager . Package . MappingDetailsWindow . Context = context ; } if ( PackageManager . Package . ExplorerWindow != null ) { PackageManager . Package . ExplorerWindow . Context = context ; } } } catch { } }
This method will set the editing context for the mapping details and model browser.
This method will set the editing context for the mapping details and model browser .
// Hack Hack; FindToolWindow will throw an exception if we can't find the ExplorerWindow. We should find // a more specific way to handle this if we run into this situation.
context
EditingContext