public void setText(String text) { this.text = text; if (formText != null) formText.setText(text); } }
private void updateContent() { StringBuilder buf = new StringBuilder(); buf.append("<form>"); //$NON-NLS-1$ IConfigurationElement selection = wizard.getSelection(); if (selection != null) { setMessage(null); IConfigurationElement[] desc = selection.getChildren("description"); //$NON-NLS-1$ if (desc.length == 1) buf.append(NLS.bind(PDEUIMessages.ReviewPage_descContent, (new String[] {selection.getAttribute("name"), desc[0].getValue()}))); //$NON-NLS-1$ else buf.append(NLS.bind(PDEUIMessages.ReviewPage_content, selection.getAttribute("name"))); //$NON-NLS-1$ } else { setMessage(PDEUIMessages.ReviewPage_noSampleFound, IMessageProvider.WARNING); } buf.append("</form>"); //$NON-NLS-1$ formText.setText(buf.toString()); }
formText.setText(text);