Buggy code:
gKeystore . setLayoutData ( data ) ; Group gKey = new Group ( parent , SWT . SHADOW_ETCHED_IN ) ; gKey . setLayout ( layout ) ; gKey . setText ( key ) ; data = new FormData ( ) ; data . top = new FormAttachment ( gKeystore , Globals . MARGIN , SWT . DEFAULT ) ; data . left = new FormAttachment ( 0 , 0 ) ; data . right = new FormAttachment ( Globals . GROUP_NUMERATOR ) ; gKey . setLayoutData ( data ) ; Group gEncryptionId = new Group ( parent , SWT . SHADOW_ETCHED_IN ) ; gEncryptionId . setLayout ( layout ) ; gEncryptionId . setText ( encryptionId ) ; data = new FormData ( ) ; data . top = new FormAttachment ( gKey , Globals . MARGIN , SWT . DEFAULT ) ; data . top = new FormAttachment ( gKey , Globals . MARGIN , SWT . DEFAULT ) ; data . left = new FormAttachment ( 0 , 0 ) ; data . right = new FormAttachment ( Globals . GROUP_NUMERATOR ) ; gEncryptionId . setLayoutData ( data ) ; Label lKeystoreName = new Label ( gKeystore , SWT . SHADOW_IN ) ; lKeystoreName . setText ( name ) ; data = new FormData ( ) ; data . width = PageResource . LABELWIDTH ; data . top = new FormAttachment ( gKeystore ) ; data . left = new FormAttachment ( gKeystore ) ; lKeystoreName . setLayoutData ( data ) ; tKeystore = new Text ( gKeystore , SWT . SINGLE ) ; data = new FormData ( ) ; data . width = Globals . SHORT_TEXT_WIDTH ; data . top = new FormAttachment ( lKeystoreName , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( lKeystoreName ) ; tKeystore . setLayoutData ( data ) ; bOpen = new Button ( gKeystore , SWT . PUSH ) ; bOpen . setText ( selectButton ) ; data = new FormData ( ) ; data . top = new FormAttachment ( tKeystore , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( tKeystore , Globals . MARGIN ) ; bOpen . setLayoutData ( data ) ; Label lKeystorePassword = new Label ( gKeystore , SWT . SHADOW_IN ) ; lKeystorePassword . setText ( password ) ; data = new FormData ( ) ; data . width = PageResource . LABELWIDTH ; data . top = new FormAttachment ( lKeystoreName , Globals . MARGIN ) ; data . left = new FormAttachment ( gKeystore ) ; lKeystorePassword . setLayoutData ( data ) ; tKeystorePassword = new Text ( gKeystore , SWT . SINGLE ) ; tKeystorePassword . setTextLimit ( KEYSTORE_PASSWORD_MAX_SIZE ) ; data = new FormData ( ) ; data . width = Globals . SHORT_TEXT_WIDTH ; data . top = new FormAttachment ( lKeystorePassword , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( lKeystorePassword ) ; tKeystorePassword . setEchoChar ( '*' ) ; tKeystorePassword . setLayoutData ( data ) ; bEchoKeystorePassword = new Button ( gKeystore , SWT . PUSH ) ; bEchoKeystorePassword . setImage ( XmlSecurityImageRegistry . getImageRegistry ( ) . get ( "echo_password" ) ) ; bEchoKeystorePassword . setToolTipText ( echoPassword ) ; data = new FormData ( ) ; data . top = new FormAttachment ( tKeystorePassword , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( tKeystorePassword , Globals . MARGIN ) ; bEchoKeystorePassword . setLayoutData ( data ) ; Label lKeyName = new Label ( gKey , SWT . SHADOW_IN ) ; lKeyName . setText ( name ) ; data = new FormData ( ) ; data . width = PageResource . LABELWIDTH ; data . top = new FormAttachment ( gKey ) ; data . left = new FormAttachment ( gKey ) ; lKeyName . setLayoutData ( data ) ; tKeyName = new Text ( gKey , SWT . SINGLE ) ; <START_BUG> tKeyName . setTextLimit ( KEY_ALIAS_MAX_SIZE ) ; <END_BUG> data = new FormData ( ) ; data . width = Globals . SHORT_TEXT_WIDTH ; data . top = new FormAttachment ( lKeyName , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( lKeyName ) ; tKeyName . setLayoutData ( data ) ; Label lKeyPassword = new Label ( gKey , SWT . SHADOW_IN ) ; lKeyPassword . setText ( password ) ; data = new FormData ( ) ; data . width = PageResource . LABELWIDTH ; data . top = new FormAttachment ( lKeyName , Globals . MARGIN ) ; data . left = new FormAttachment ( gKey ) ; lKeyPassword . setLayoutData ( data ) ; tKeyPassword = new Text ( gKey , SWT . SINGLE ) ; tKeyPassword . setTextLimit ( KEYSTORE_PASSWORD_MAX_SIZE ) ; data = new FormData ( ) ; data . width = Globals . SHORT_TEXT_WIDTH ; data . top = new FormAttachment ( lKeyPassword , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( lKeyPassword ) ; tKeyPassword . setEchoChar ( '*' ) ; tKeyPassword . setLayoutData ( data ) ; bEchoKeyPassword = new Button ( gKey , SWT . PUSH ) ; bEchoKeyPassword . setImage ( XmlSecurityImageRegistry . getImageRegistry ( ) . get ( "echo_password" ) ) ; bEchoKeyPassword . setToolTipText ( echoPassword ) ; data = new FormData ( ) ; data . top = new FormAttachment ( tKeyPassword , 0 , SWT . CENTER ) ; data . left = new FormAttachment ( tKeyPassword , Globals . MARGIN ) ; bEchoKeyPassword . setLayoutData ( data ) ; cEncryptionId = new Combo ( gEncryptionId , SWT . READ_ONLY ) ; data = new FormData ( ) ; data . top = new FormAttachment ( gEncryptionId ) ; data . left = new FormAttachment ( gEncryptionId ) ; data . width = Globals . COMBO_LARGE_WIDTH ; cEncryptionId . setLayoutData ( data ) ; }

Fix:
tKeyName . setTextLimit ( KEY_NAME_MAX_SIZE ) ;