public SourcePosition getSourcePosition(Location location) { for (PositionManager positionManager : myPositionManagers) { try { return positionManager.getSourcePosition(location); } catch (NoDataException ignored) { } } return null; }
@NotNull public List<Location> locationsOfLine(ReferenceType type, SourcePosition position) { for (PositionManager positionManager : myPositionManagers) { try { return positionManager.locationsOfLine(type, position); } catch (NoDataException ignored) { } } return Collections.emptyList(); }
@NotNull public List<ReferenceType> getAllClasses(SourcePosition classPosition) { for (PositionManager positionManager : myPositionManagers) { try { return positionManager.getAllClasses(classPosition); } catch (NoDataException ignored) { } } return Collections.emptyList(); }
public ClassPrepareRequest createPrepareRequest( ClassPrepareRequestor requestor, SourcePosition position) { for (PositionManager positionManager : myPositionManagers) { try { return positionManager.createPrepareRequest(requestor, position); } 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); } }