Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 202109
Collapse All | Expand All

(-)src/org/eclipse/dd/dsf/ui/viewmodel/dm/AbstractDMVMLayoutNode.java (-1 / +1 lines)
Lines 504-510 Link Here
504
    protected void fillUpdateWithVMCs(IChildrenUpdate update, IDMContext<V>[] dmcs) {
504
    protected void fillUpdateWithVMCs(IChildrenUpdate update, IDMContext<V>[] dmcs) {
505
        int startIdx = update.getOffset() != -1 ? update.getOffset() : 0;
505
        int startIdx = update.getOffset() != -1 ? update.getOffset() : 0;
506
        int endIdx = update.getLength() != -1 ? startIdx + update.getLength() : dmcs.length;
506
        int endIdx = update.getLength() != -1 ? startIdx + update.getLength() : dmcs.length;
507
        for (int i = startIdx; i < endIdx; i++) {
507
        for (int i = startIdx; i < endIdx && i < dmcs.length; i++) {
508
            update.setChild(createVMContext(dmcs[i]), i);
508
            update.setChild(createVMContext(dmcs[i]), i);
509
        }
509
        }
510
    }
510
    }
(-)src/org/eclipse/dd/dsf/ui/viewmodel/update/VMCache.java (-3 / +12 lines)
Lines 272-280 Link Here
272
    			@Override
272
    			@Override
273
    			protected void handleCompleted()
273
    			protected void handleCompleted()
274
    			{
274
    			{
275
    				if(getStatus().isOK())
275
    				if(getData() != null)
276
    				{
276
    				{
277
	    				for(int j = 0; j < update.getLength(); j++)
277
	    				for(int j = 0; j < getData().size(); j++)
278
	    				{
278
	    				{
279
	    					if(isCacheWriteEnabled())
279
	    					if(isCacheWriteEnabled())
280
	    					{
280
	    					{
Lines 289-295 Link Here
289
    				}
289
    				}
290
    				update.done();
290
    				update.done();
291
				}
291
				}
292
			});
292
			})
293
    		{
294
    			@Override
295
    		    public void done() {
296
    		        @SuppressWarnings("unchecked")
297
    		        DataRequestMonitor<List<Object>> rm = (DataRequestMonitor<List<Object>>)fRequestMonitor;
298
    		        rm.setData(fElements);
299
    		        super.done();
300
    		    }
301
    		};
293
    	}
302
    	}
294
303
295
    	return updates;
304
    	return updates;
(-)src/org/eclipse/dd/dsf/ui/viewmodel/VMElementsUpdate.java (-1 / +1 lines)
Lines 29-35 Link Here
29
public class VMElementsUpdate extends VMViewerUpdate implements IChildrenUpdate {
29
public class VMElementsUpdate extends VMViewerUpdate implements IChildrenUpdate {
30
    private final int fOffset;
30
    private final int fOffset;
31
    private final int fLength;
31
    private final int fLength;
32
    private final List<Object> fElements;
32
    protected final List<Object> fElements;
33
    
33
    
34
    public VMElementsUpdate(IChildrenUpdate clientUpdate, int offset, int length, DataRequestMonitor<List<Object>> requestMonitor) {
34
    public VMElementsUpdate(IChildrenUpdate clientUpdate, int offset, int length, DataRequestMonitor<List<Object>> requestMonitor) {
35
        super(clientUpdate, requestMonitor);
35
        super(clientUpdate, requestMonitor);

Return to bug 202109