mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
new method getBufferFactory() to overload the parent.
This commit is contained in:
parent
d495a4ffa5
commit
66a20f07fd
1 changed files with 3 additions and 1 deletions
|
@ -194,7 +194,8 @@ public class CDocumentProvider extends FileDocumentProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
IAnnotationModel m= createAnnotationModel(input);
|
IAnnotationModel m= createAnnotationModel(input);
|
||||||
IWorkingCopy c= (IWorkingCopy) original.getSharedWorkingCopy(getProgressMonitor(), fBufferFactory);
|
IBufferFactory factory = getBufferFactory();
|
||||||
|
IWorkingCopy c= (IWorkingCopy) original.getSharedWorkingCopy(getProgressMonitor(), factory);
|
||||||
|
|
||||||
DocumentAdapter a= null;
|
DocumentAdapter a= null;
|
||||||
try {
|
try {
|
||||||
|
@ -321,6 +322,7 @@ public class CDocumentProvider extends FileDocumentProvider {
|
||||||
public IBufferFactory getBufferFactory() {
|
public IBufferFactory getBufferFactory() {
|
||||||
return fBufferFactory;
|
return fBufferFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the underlying resource for the given element.
|
* Returns the underlying resource for the given element.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue