コード例 #1
0
 public SourcePosition getSourcePosition(Location location) {
   for (PositionManager positionManager : myPositionManagers) {
     try {
       return positionManager.getSourcePosition(location);
     } catch (NoDataException ignored) {
     }
   }
   return null;
 }
コード例 #2
0
 @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();
 }
コード例 #3
0
 @NotNull
 public List<ReferenceType> getAllClasses(SourcePosition classPosition) {
   for (PositionManager positionManager : myPositionManagers) {
     try {
       return positionManager.getAllClasses(classPosition);
     } catch (NoDataException ignored) {
     }
   }
   return Collections.emptyList();
 }
コード例 #4
0
  public ClassPrepareRequest createPrepareRequest(
      ClassPrepareRequestor requestor, SourcePosition position) {
    for (PositionManager positionManager : myPositionManagers) {
      try {
        return positionManager.createPrepareRequest(requestor, position);
      } catch (NoDataException ignored) {
      }
    }

    return null;
  }
コード例 #5
0
 @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);
   }
 }