mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Added a protected createVMContext() to allow sub-classes to supply own VMC implementation.
This commit is contained in:
parent
126c61affe
commit
995cd3177c
1 changed files with 5 additions and 1 deletions
|
@ -478,9 +478,13 @@ abstract public class AbstractDMVMLayoutNode<V extends IDMData> extends Abstract
|
|||
int startIdx = update.getOffset() != -1 ? update.getOffset() : 0;
|
||||
int endIdx = update.getLength() != -1 ? startIdx + update.getLength() : dmcs.length;
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue