Buggy code:
public class PageResource extends WizardPage implements Listener { public static final String PAGE_NAME = "EncryptPageResource" ; private Button bBrowseXpath = null ; private Button bSelectDetachedFile = null ; private Button bBsp = null ; private Button bDocument = null ; private Button bSelection = null ; private Button bXpath = null ; private Button bDetached = null ; private Button bEnveloping = null ; private Button bCreateKeystore = null ; private Button bCreateKey = null ; private Button bOpenKey = null ; private Text tXpath = null ; private Text tDetachedFile = null ; private IFile file = null ; private boolean textSelection ; private Document document = null ; private static final String EMPTY = "" ; private String project ; private Encryption encryption = null ; public PageResource ( final Encryption encryption , final IFile file , final String project , final boolean textSelection ) { } public void createControl ( final Composite parent ) { } private void createPageContent ( final Composite parent ) { FormLayout layout = new FormLayout ( ) ; layout . marginTop = ( Globals . MARGIN ) // 2 ; layout . marginBottom = ( Globals . MARGIN ) // 2 ; layout . marginLeft = ( Globals . MARGIN ) // 2 ; layout . marginRight = ( Globals . MARGIN ) // 2 ; parent . setLayout ( layout ) ; Group gResource = new Group ( parent , SWT . SHADOW_ETCHED_IN ) ; gResource . setLayout ( layout ) ; gResource . setText ( resource ) ; FormData data = new FormData ( ) ; data . top = new FormAttachment ( 0 , 0 ) ; data . left = new FormAttachment ( 0 , 0 ) ; data . right = new FormAttachment ( Globals . GROUP_NUMERATOR ) ; gResource . setLayoutData ( data ) ; Group gType = new Group ( parent , SWT . SHADOW_ETCHED_IN ) ; gType . setLayout ( layout ) ; gType . setText ( encryptionType ) ; data = new FormData ( ) ; data . top = new FormAttachment ( gResource , Globals . MARGIN , SWT . DEFAULT ) ; data . left = new FormAttachment ( 0 , 0 ) ; data . right = new FormAttachment ( Globals . GROUP_NUMERATOR ) ; gType . setLayoutData ( data ) ; Group gKey = new Group ( parent , SWT . SHADOW_ETCHED_IN ) ; gKey . setLayout ( layout ) ; <START_BUG> gKey . setText ( key ) ; <END_BUG> data = new FormData ( ) ; data . top = new FormAttachment ( gType , Globals . MARGIN , SWT . DEFAULT ) ; data . left = new FormAttachment ( 0 , 0 ) ; data . right = new FormAttachment ( Globals . GROUP_NUMERATOR ) ; gKey . setLayoutData ( data ) ; Group gBsp = new Group ( parent , SWT . SHADOW_ETCHED_IN ) ; gBsp . setLayout ( layout ) ; gBsp . setText ( basicSecurityProfile ) ; data = new FormData ( ) ; data . top = new FormAttachment ( gKey , Globals . MARGIN , SWT . DEFAULT ) ; data . left = new FormAttachment ( 0 , 0 ) ; data . right = new FormAttachment ( Globals . GROUP_NUMERATOR ) ; gBsp . setLayoutData ( data ) ; bDocument = new Button ( gResource , SWT . RADIO ) ; bDocument . setText ( Messages . document ) ; bDocument . setSelection ( true ) ; data = new FormData ( ) ; data . top = new FormAttachment ( gResource ) ; data . left = new FormAttachment ( gResource ) ; bDocument . setLayoutData ( data ) ; bSelection = new Button ( gResource , SWT . RADIO ) ; bSelection . setText ( selection ) ; bSelection . setEnabled ( textSelection ) ; data = new FormData ( ) ; data . top = new FormAttachment ( bDocument , Globals . MARGIN ) ; data . left = new FormAttachment ( gResource ) ; bSelection . setLayoutData ( data ) ; bXpath = new Button ( gResource , SWT . RADIO ) ; bXpath . setText ( xpath ) ; data = new FormData ( ) ; data . top = new FormAttachment ( bSelection , Globals . MARGIN ) ; data . left = new FormAttachment ( gResource ) ; bXpath . setLayoutData ( data ) ; tXpath = new Text ( gResource , SWT . SINGLE ) ; tXpath . setEnabled ( false ) ; data = new FormData ( ) ; data . top = new FormAttachment ( bXpath , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( gResource , 100 ) ; data . width = Globals . MEDIUM_TEXT_WIDTH ; tXpath . setLayoutData ( data ) ; bBrowseXpath = new Button ( gResource , SWT . PUSH ) ; bBrowseXpath . setEnabled ( false ) ; bBrowseXpath . setText ( browse ) ; data = new FormData ( ) ; data . top = new FormAttachment ( bXpath , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( tXpath , Globals . MARGIN ) ; bBrowseXpath . setLayoutData ( data ) ; bEnveloping = new Button ( gType , SWT . RADIO ) ; bEnveloping . setText ( encryptionEnveloping ) ; bEnveloping . setSelection ( true ) ; data = new FormData ( ) ; data . top = new FormAttachment ( gType ) ; data . left = new FormAttachment ( gType ) ; bEnveloping . setLayoutData ( data ) ; bDetached = new Button ( gType , SWT . RADIO ) ; bDetached . setText ( encryptionDetached ) ; data = new FormData ( ) ; data . top = new FormAttachment ( bEnveloping , Globals . MARGIN ) ; data . left = new FormAttachment ( gType ) ; bDetached . setLayoutData ( data ) ;

Fix:
gKey . setText ( keystoreAndKey ) ;