public SourcePosition getSourcePosition(Location location) { for (PositionManager positionManager : myPositionManagers) { try { return positionManager.getSourcePosition(location); } catch (NoDataException ignored) { } } return null; }
@Override public boolean isApplicable(final SuspendContext context) { try { if ((Objects.equal(context, null) || (!this.isXtextSourced(context)))) { return false; } final DebugProcess debugProcess = context.getDebugProcess(); final PositionManager positionManager = debugProcess.getPositionManager(); StackFrameProxy _frameProxy = context.getFrameProxy(); final Location location = _frameProxy.location(); boolean _isEmptyAnonymousClassConstructor = this.isEmptyAnonymousClassConstructor(context); if (_isEmptyAnonymousClassConstructor) { return true; } SourcePosition _sourcePosition = positionManager.getSourcePosition(location); final boolean result = Objects.equal(_sourcePosition, null); if (result) { return true; } return false; } catch (Throwable _e) { throw Exceptions.sneakyThrow(_e); } }