protected String getPersistedEncoding( Object element ) { if ( element instanceof IStorageEditorInput ) { IStorage storage; try { storage = ( (IStorageEditorInput) element ).getStorage( ); if ( storage instanceof IEncodedStorage ) return ( (IEncodedStorage) storage ).getCharset( ); } catch ( CoreException e ) { return null; } } return null; }
abstract protected String getPersistedEncoding( Object element );
	protected String getPersistedEncoding( Object element )	{		if ( element instanceof IStorageEditorInput )		{			IStorage storage;			try			{				storage = ( (IStorageEditorInput) element ).getStorage( );				if ( storage instanceof IEncodedStorage )					return ( (IEncodedStorage) storage ).getCharset( );			}			catch ( CoreException e )			{				return null;			}		}		return null;	}