src/Misc/EFTools/XmlCore/Model/EFArtifact.cs
/// <summary>
///     This method will reload the artifact from the XLinq tree. This *DOES NOT* do a 'deep reloading', i.e. reloading from disk.
/// </summary>
This method will reload the artifact from the XLinq tree. This *DOES NOT* do a 'deep reloading', i.e. reloading from disk.
This method will reload the artifact from the XLinq tree . This * DOES NOT * do a ' deep reloading ' i . e . reloading from disk .
internal virtual void ReloadArtifact()
        {
            try
            {
                IsArtifactReloading = true;
                ArtifactSet.RemoveArtifact(this);
                ArtifactSet.Add(this);
                State = EFElementState.None;
                Parse(new List<XName>());
                if (State == EFElementState.Parsed)
                {
                    XmlModelHelper.NormalizeAndResolve(this);
                }
                DetermineIfArtifactIsDesignerSafe();
                FireArtifactReloadedEvent();
                _requiresReloading = false;
                IsDirty = false;
            }
            finally
            {
                IsArtifactReloading = false;
            }
        }
internal virtual void ReloadArtifact ( ) { try { IsArtifactReloading = true ; ArtifactSet . RemoveArtifact ( this ) ; ArtifactSet . Add ( this ) ; State = EFElementState . None ; Parse ( new List < XName > ( ) ) ; if ( State == EFElementState . Parsed ) { XmlModelHelper . NormalizeAndResolve ( this ) ; } DetermineIfArtifactIsDesignerSafe ( ) ; FireArtifactReloadedEvent ( ) ; _requiresReloading = false ; IsDirty = false ; } finally { IsArtifactReloading = false ; } }
This method will reload the artifact from the XLinq tree.
This method will reload the artifact from the XLinq tree .
// clear out the artifact set of our information // reparse this artifact // this will do some analysis to determine if the artifact is safe for the designer, or should be displayed in the xml editor