throw new CoreException( new Status( IStatus.ERROR, BrowserUIConstants.PLUGIN_ID, NLS.bind( Messages
.getString( "LdifEntryEditorDocumentProvider.InvalidLdif" ), cont.getInvalidString() ) ) ); //$NON-NLS-1$
}
}
EntryEditorInput input = getEntryEditorInput( element );
try
{
Dn newDn = new Dn( records[0].getDnLine().getValueAsString() );
if ( !newDn.equals( input.getResolvedEntry().getDn() ) )
{
throw new CoreException( new Status( IStatus.ERROR, BrowserUIConstants.PLUGIN_ID, NLS.bind( Messages
.getString( "LdifEntryEditorDocumentProvider.ModDnNotSupported" ), records[0].getInvalidString() ) ) ); //$NON-NLS-1$
}
}
catch ( LdapInvalidDnException e )
{
throw new CoreException( new Status( IStatus.ERROR, BrowserUIConstants.PLUGIN_ID, Messages
.getString( "LdifEntryEditorDocumentProvider.InvalidDN" ) ) ); //$NON-NLS-1$
}
IStatus status = input.saveSharedWorkingCopy( false, editor );
if ( status != null && !status.isOK() )
{
BrowserUIPlugin.getDefault().getLog().log( status );
throw new CoreException( status );
}