mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
New getter for the CSourceViewer. Useful for fixing #129768
This commit is contained in:
parent
37fb31f3ca
commit
7a910a5abb
1 changed files with 9 additions and 0 deletions
|
@ -1450,4 +1450,13 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IS
|
||||||
// CoreModel WorkingCopy changes instead.
|
// CoreModel WorkingCopy changes instead.
|
||||||
// It will allow more fined grained.
|
// It will allow more fined grained.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CSourceViewer getCSourceViewer() {
|
||||||
|
ISourceViewer viewer = getSourceViewer();
|
||||||
|
CSourceViewer cViewer = null ;
|
||||||
|
if (viewer instanceof CSourceViewer) {
|
||||||
|
cViewer = (CSourceViewer) viewer;
|
||||||
|
}
|
||||||
|
return cViewer ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue