I have the follwoing code that is working in eclipse 3.7:
private static IEditorReference getReference(IEditorPart part) {
return (IEditorReference) ((PartSite) part.getSite()).getPane().getPartReference();
}
In eclipse 4.2 I get an error at getPane().
With what should it be replaced?
just do
((PartSite) part.getSite()).getPartReference();