result = super.getAdapter(key);
/** * This is how the framework determines which interfaces we implement. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public Object getAdapter(Class key) { if (key.equals(IContentOutlinePage.class)) { return showOutlineView() ? getContentOutlinePage() : null; } else if (key.equals(IPropertySheetPage.class)) { return getPropertySheetPage(); } else if (key.equals(IGotoMarker.class)) { return this; } else { return super.getAdapter(key); } }
public Object getAdapter(Class type) { if (type == CommandStack.class) return getCommandStack(); if (type == ActionRegistry.class) return getActionRegistry(); if (type == EditorModeManager.class) return getEditorModeManager(); if (type == IGotoMarker.class) { return new IGotoMarker() { public void gotoMarker(IMarker marker) { CommonMultiPageEditor.this.gotoMarker(marker); } }; } if (type == ITextEditor.class) return getTextEditor(); return super.getAdapter(type); }