1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

Added a protected createVMContext() to allow sub-classes to supply own VMC implementation.

This commit is contained in:
Pawel Piech 2007-05-02 17:57:15 +00:00
parent 126c61affe
commit 995cd3177c

View file

@ -478,9 +478,13 @@ abstract public class AbstractDMVMLayoutNode<V extends IDMData> extends Abstract
int startIdx = update.getOffset() != -1 ? update.getOffset() : 0; int startIdx = update.getOffset() != -1 ? update.getOffset() : 0;
int endIdx = update.getLength() != -1 ? startIdx + update.getLength() : dmcs.length; int endIdx = update.getLength() != -1 ? startIdx + update.getLength() : dmcs.length;
for (int i = startIdx; i < endIdx; i++) { for (int i = startIdx; i < endIdx; i++) {
update.setChild(new DMVMContext(dmcs[i]), i); update.setChild(createVMContext(dmcs[i]), i);
} }
} }
protected IVMContext createVMContext(IDMContext<V> dmc) {
return new DMVMContext(dmc);
}
/** /**
* Searches for a DMC of given type in the tree patch contained in given * Searches for a DMC of given type in the tree patch contained in given