ISharedDocumentAdapter elementAdapter= SharedDocumentAdapterWrapper.getAdapter(fInput); if (elementAdapter == null) return null;  return new SharedDocumentAdapterWrapper(elementAdapter) { public IEditorInput getDocumentKey(Object element) { if (element instanceof JavaNode) return getWrappedAdapter().getDocumentKey(fInput);  return super.getDocumentKey(element); } };
return fAdapter;
		public Object getAdapter(Class adapter) {			if (adapter == ISharedDocumentAdapter.class) {				ISharedDocumentAdapter elementAdapter= SharedDocumentAdapterWrapper.getAdapter(fInput);				if (elementAdapter == null)					return null;								return new SharedDocumentAdapterWrapper(elementAdapter) {					public IEditorInput getDocumentKey(Object element) {						if (element instanceof JavaNode)							return getWrappedAdapter().getDocumentKey(fInput);						return super.getDocumentKey(element);					}				};			}						return super.getAdapter(adapter);		}