Buggy code:
public class NewEncryptionCommand extends AbstractHandler { private ITextSelection textSelection = null ; private ExecutionEvent event ; private IFile file = null ; public Object execute ( ExecutionEvent event ) throws ExecutionException { } private void createEncryption ( ) { try { NewEncryptionWizard wizard = new NewEncryptionWizard ( ) ; IDocument document = null ; if ( ( HandlerUtil . getActivePart ( event ) ) instanceof IEditorPart ) { final IEditorPart editorPart = ( ( IEditorPart ) ( HandlerUtil . getActivePart ( event ) ) ) ; if ( editorPart . isDirty ( ) ) { if ( ( null != ( editorPart . getTitle ( ) ) ) && ( ( editorPart . getTitle ( ) . length ( ) ) > 0 ) ) { IRunnableWithProgress op = new IRunnableWithProgress ( ) { public void run ( final IProgressMonitor monitor ) { editorPart . doSave ( monitor ) ; } } ; try { PlatformUI . getWorkbench ( ) . getProgressService ( ) . runInUI ( XSTUIPlugin . getActiveWorkbenchWindow ( ) , op , ResourcesPlugin . getWorkspace ( ) . getRoot ( ) ) ; } catch ( InvocationTargetException ite ) { Utils . log ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>saving<seq2seq4repair_space>editor<seq2seq4repair_space>content" , ite ) ; } catch ( InterruptedException ie ) { Utils . log ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>saving<seq2seq4repair_space>editor<seq2seq4repair_space>content" , ie ) ; } } else { editorPart . doSaveAs ( ) ; } } textSelection = ( ( ITextSelection ) ( ( ( org . eclipse . ui . texteditor . ITextEditor ) ( editorPart . getAdapter ( org . eclipse . ui . texteditor . ITextEditor . class ) ) ) . getSelectionProvider ( ) . getSelection ( ) ) ) ; file = ( ( IFile ) ( editorPart . getEditorInput ( ) . getAdapter ( IFile . class ) ) ) ; document = ( ( IDocument ) ( editorPart . getAdapter ( IDocument . class ) ) ) ; } else { textSelection = null ; ISelection selection = HandlerUtil . getCurrentSelection ( event ) ; if ( selection instanceof IStructuredSelection ) { file = ( ( IFile ) ( ( ( IStructuredSelection ) ( selection ) ) . getFirstElement ( ) ) ) ; } } if ( ( ( file ) != null ) && ( file . isAccessible ( ) ) ) { if ( ( ( textSelection ) != null ) && ( org . eclipse . wst . xml . security . core . utils . Utils . parseSelection ( textSelection . getText ( ) ) ) ) { wizard . init ( file , textSelection ) ; } else { wizard . init ( file ) ; } CreateEncryption encryption = new CreateEncryption ( ) ; String fileLocation = "" ; if ( document == null ) { fileLocation = file . getLocation ( ) . toString ( ) ; } encryptData ( encryption , wizard , document , fileLocation ) ; if ( wizard . getModel ( ) . getLaunchSignatureWizard ( ) ) { launchXMLSignatureWizard ( ) ; } } else { <START_BUG> MessageDialog . openInformation ( HandlerUtil . getActiveShell ( event ) , NewEncryptionCommand_0 , NLS . bind ( RemoveReadOnlyFlag , "encrypt" ) ) ; <END_BUG> } } catch ( Exception ex ) { Utils . showErrorDialog ( HandlerUtil . getActiveShell ( event ) , NewEncryptionCommand_0 , NewEncryptionCommand_1 , ex ) ; Utils . log ( "An<seq2seq4repair_space>error<seq2seq4repair_space>occured<seq2seq4repair_space>during<seq2seq4repair_space>encrypting" , ex ) ; } } private void encryptData ( final CreateEncryption data , final NewEncryptionWizard wizard , final IDocument document , final String filename ) throws Exception { } private void launchXMLSignatureWizard ( ) { } public void encryptAfterSignature ( final IFile signedFile ) { } }

Fix:
MessageDialog . openInformation ( HandlerUtil . getActiveShell ( event ) , NewEncryptionCommand_0 , NLS . bind ( RemoveReadOnlyFlag , NewEncryptionCommand_3 ) ) ;