final Text nameField= new Text(result, SWT.BORDER | SWT.SINGLE); nameField.setText(getPromoteTempRefactoring().getFieldName()); nameField.selectAll(); nameField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); nameField.addModifyListener(new ModifyListener(){
fNameField = new Text(result, SWT.BORDER | SWT.SINGLE); fNameField.setText(getPromoteTempRefactoring().getFieldName()); fNameField.selectAll(); fNameField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); fNameField.addModifyListener(new ModifyListener(){
    private void addFieldNameField(Composite result) {        Label nameLabel= new Label(result, SWT.NONE);        nameLabel.setText(RefactoringMessages.getString("PromoteTempInputPage.Field_name")); //$NON-NLS-1$        nameLabel.setLayoutData(new GridData());                final Text nameField= new Text(result, SWT.BORDER | SWT.SINGLE);        nameField.setText(getPromoteTempRefactoring().getFieldName());        nameField.selectAll();        nameField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));        nameField.addModifyListener(new ModifyListener(){        	public void modifyText(ModifyEvent e) {        		PromoteTempInputPage.this.getPromoteTempRefactoring().setFieldName(nameField.getText());        		PromoteTempInputPage.this.updateStatus();            }        });    }