private void LocateRequested(DesignService service, Alphora.Dataphor.DAE.Debug.DebugLocator locator) { if (locator.Line >= 1) { GotoPosition(locator.Line, 1); } }
public static void SetLocator(this Exception exception, Alphora.Dataphor.DAE.Debug.DebugLocator locator) { ILocatorException locatorException = exception as ILocatorException; if (locatorException != null) { if (locator != null && (String.IsNullOrEmpty(locatorException.Locator) || locatorException.Locator == locator.Locator)) { locatorException.Locator = locator.Locator; locatorException.Line += locator.Line - 1; locatorException.LinePos += locator.LinePos - 1; } else { locatorException.Locator = null; } } }