1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

New getter for the CSourceViewer. Useful for fixing #129768

This commit is contained in:
Norbert Pltt 2006-03-06 09:24:25 +00:00
parent 37fb31f3ca
commit 7a910a5abb

View file

@ -1450,4 +1450,13 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IS
// CoreModel WorkingCopy changes instead.
// It will allow more fined grained.
}
public CSourceViewer getCSourceViewer() {
ISourceViewer viewer = getSourceViewer();
CSourceViewer cViewer = null ;
if (viewer instanceof CSourceViewer) {
cViewer = (CSourceViewer) viewer;
}
return cViewer ;
}
}