public Object getAdapter(Class adapter) {
if (adapter == ISharedDocumentAdapter.class) {
synchronized (this) {
if (sharedDocumentAdapter == null)
sharedDocumentAdapter = new SharedDocumentAdapter() {
public IEditorInput getDocumentKey(Object element) {
return StorageTypedElement.this
.getDocumentKey(element);
}