public INavigationLocation createEmptyNavigationLocation() {
if (getActivePage() == fDesignPageIndex) {
return new DesignPageNavigationLocation(this, fDesignViewer, false);
}
// Makes sure that the text editor is returned
return new TextSelectionNavigationLocation(fTextEditor, false) {
protected IEditorPart getEditorPart() {
IEditorPart part = super.getEditorPart();
if (part != null) {
part = (ITextEditor) part.getAdapter(ITextEditor.class);
}