Community
Participate
Working Groups
I have been able to get the platform's TextEditor to work (mostly) as a page in a MultiPageEditor. I copied code from org.eclipse.ui.texteditor.BasicTextEditorActionContributor into my contributor to implement the GOTO_LINE function. It works almost perfectly except... Somewhere during the processing of this action org.eclipse.ui.internal.WorkbenchPage.getReference(IWorkbenchPart part) is called. The first line in this method calls getSite() on the part. The returned object is then cast to PartSite. However it actually is an org.eclipse.ui.part.MultiPageEditorSite and a ClassCastException happens. This seems to be a rather benign exception in my case as the gotoline function appears to complete.
Moving to Platform UI.
*** This bug has been marked as a duplicate of 22325 ***