|
Lines 65-72
Link Here
|
| 65 |
* |
65 |
* |
| 66 |
* @author Marcelo Paternostro |
66 |
* @author Marcelo Paternostro |
| 67 |
* @author Paul E. Slauenwhite |
67 |
* @author Paul E. Slauenwhite |
| 68 |
* @version January 16, 2008 |
68 |
* @version April 16, 2008 |
| 69 |
* @since 0.3.0 |
69 |
* @since February 1, 2005 |
| 70 |
* @see AbstractDetailPage |
70 |
* @see AbstractDetailPage |
| 71 |
* @see SelectionListener |
71 |
* @see SelectionListener |
| 72 |
* @see IHyperlinkListener |
72 |
* @see IHyperlinkListener |
|
Lines 159-168
Link Here
|
| 159 |
imageLabel = widgetFactory.createLabel(linkComposite, ""); //$NON-NLS-1$ |
159 |
imageLabel = widgetFactory.createLabel(linkComposite, ""); //$NON-NLS-1$ |
| 160 |
imageLabel.setImage(TestUIImages.INSTANCE.getImage(TestUIImages.IMG_ERROR)); |
160 |
imageLabel.setImage(TestUIImages.INSTANCE.getImage(TestUIImages.IMG_ERROR)); |
| 161 |
|
161 |
|
| 162 |
testLink = widgetFactory.createSelectableLabel(linkComposite, null); |
162 |
Composite testLinkComposite = widgetFactory.createComposite(linkComposite); |
| 163 |
//- Bugzilla #95930, the size of the initial text value should be larger than the invoked test name given in setInput |
163 |
testLinkComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); |
| 164 |
testLink.setText(getDeftaultLinkText()+" "); //$NON-NLS-1$ |
164 |
|
| 165 |
testLink.setToolTipText(getDeftaultLinkToolTip()); |
165 |
testLink = widgetFactory.createSelectableLabel(testLinkComposite, null); |
|
|
166 |
testLink.setText(getDefaultLinkText()); |
| 167 |
testLink.setToolTipText(getDefaultLinkToolTip()); |
| 166 |
testLink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false)); |
168 |
testLink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false)); |
| 167 |
widgetFactory.turnIntoHyperlink(testLink, this); |
169 |
widgetFactory.turnIntoHyperlink(testLink, this); |
| 168 |
|
170 |
|
|
Lines 188-205
Link Here
|
| 188 |
widgetFactory.paintBordersFor(detailComposite); |
190 |
widgetFactory.paintBordersFor(detailComposite); |
| 189 |
} |
191 |
} |
| 190 |
|
192 |
|
| 191 |
protected String getDeftaultLinkText() |
193 |
protected String getDefaultLinkText() |
| 192 |
{ |
194 |
{ |
| 193 |
return "x"; //$NON-NLS-1$ |
195 |
return "x"; //$NON-NLS-1$ |
| 194 |
} |
196 |
} |
| 195 |
|
197 |
|
| 196 |
protected String getDeftaultLinkToolTip() |
198 |
protected String getDefaultLinkToolTip() |
| 197 |
{ |
199 |
{ |
| 198 |
return ""; //$NON-NLS-1$ |
200 |
return ""; //$NON-NLS-1$ |
| 199 |
} |
201 |
} |
| 200 |
|
202 |
|
| 201 |
|
|
|
| 202 |
|
| 203 |
/** |
203 |
/** |
| 204 |
* @see org.eclipse.hyades.test.ui.internal.editor.form.util.EditorSection#setInput(java.lang.Object) |
204 |
* @see org.eclipse.hyades.test.ui.internal.editor.form.util.EditorSection#setInput(java.lang.Object) |
| 205 |
*/ |
205 |
*/ |
|
Lines 276-282
Link Here
|
| 276 |
{ |
276 |
{ |
| 277 |
doPack = true; |
277 |
doPack = true; |
| 278 |
imageLabel.setImage(TestUIImages.INSTANCE.getImage(TestUIImages.IMG_ERROR)); |
278 |
imageLabel.setImage(TestUIImages.INSTANCE.getImage(TestUIImages.IMG_ERROR)); |
| 279 |
testLink.setText(getDeftaultLinkText()); |
279 |
testLink.setText(getDefaultLinkText()); |
| 280 |
testLink.setData(null); |
280 |
testLink.setData(null); |
| 281 |
fileText.setText(""); //$NON-NLS-1$ |
281 |
fileText.setText(""); //$NON-NLS-1$ |
| 282 |
typeText.setText(""); //$NON-NLS-1$ |
282 |
typeText.setText(""); //$NON-NLS-1$ |