Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 201900
Collapse All | Expand All

(-)src/org/eclipse/hyades/test/tools/ui/common/internal/editor/BehaviorSection.java (-2 / +9 lines)
Lines 67-74 Link Here
67
import org.eclipse.ui.actions.SelectionListenerAction;
67
import org.eclipse.ui.actions.SelectionListenerAction;
68
68
69
/**
69
/**
70
 * @author marcelop
70
 * BehaviorSection.java
71
 * @since 1.0.2
71
 * <p/>
72
 * 
73
 * 
74
 * @author  Marcelo Paternostro
75
 * @author  Paul E. Slauenwhite
76
 * @version April 16, 2008
77
 * @since   February 1, 2005
72
 */
78
 */
73
public class BehaviorSection extends EObjectTreeSection implements IITestSuiteProvider {
79
public class BehaviorSection extends EObjectTreeSection implements IITestSuiteProvider {
74
    protected static final int HELP_SECTION_CONTROL = 1;
80
    protected static final int HELP_SECTION_CONTROL = 1;
Lines 276-281 Link Here
276
     */
282
     */
277
    public BehaviorSection(BehaviorForm behaviorForm) {
283
    public BehaviorSection(BehaviorForm behaviorForm) {
278
        super(behaviorForm, Common_Behavior_FragmentsPackage.eINSTANCE.getBVRInteraction_InteractionFragments(), null);
284
        super(behaviorForm, Common_Behavior_FragmentsPackage.eINSTANCE.getBVRInteraction_InteractionFragments(), null);
285
        setCollapsable(true);
279
    }
286
    }
280
287
281
    /**
288
    /**
(-)src/org/eclipse/hyades/test/tools/ui/common/internal/editor/TestInvocationDetailForm.java (-10 / +13 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials 
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 58-71 Link Here
58
import org.eclipse.ui.forms.widgets.Hyperlink;
58
import org.eclipse.ui.forms.widgets.Hyperlink;
59
import org.eclipse.ui.model.IWorkbenchAdapter;
59
import org.eclipse.ui.model.IWorkbenchAdapter;
60
60
61
62
/**
61
/**
63
 * Replaces org.eclipse.hyades.test.tools.ui.common.internal.editor.TestInvocationDetailPage to be able
62
 * Replaces org.eclipse.hyades.test.tools.ui.common.internal.editor.TestInvocationDetailPage to be able
64
 * to use Eclipse Form APIs.
63
 * to use Eclipse Form APIs.
64
 * <p/>
65
 * 
65
 * 
66
 * 
66
 * @author Ali Mehregani
67
 * @author  Ali Mehregani
67
 * @author marcelop
68
 * @author  Paul E. Slauenwhite
68
 * @since 0.3.0
69
 * @author  Marcelo Paternostro
70
 * @version April 16, 2008
71
 * @since   August 19, 2005
69
 */
72
 */
70
public abstract class TestInvocationDetailForm extends AbstractDetailForm 
73
public abstract class TestInvocationDetailForm extends AbstractDetailForm 
71
implements SelectionListener
74
implements SelectionListener
Lines 157-164 Link Here
157
        c1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL|GridData.GRAB_HORIZONTAL));
160
        c1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL|GridData.GRAB_HORIZONTAL));
158
        
161
        
159
		testLink = widgetFactory.createHyperlink(c1, "", SWT.WRAP);
162
		testLink = widgetFactory.createHyperlink(c1, "", SWT.WRAP);
160
		testLink.setText(getDeftaultLinkText());
163
		testLink.setText(getDefaultLinkText());
161
		testLink.setToolTipText(getDeftaultLinkToolTip()); 
164
		testLink.setToolTipText(getDefaultLinkToolTip()); 
162
        GridData testLinkGD = new GridData();
165
        GridData testLinkGD = new GridData();
163
        testLinkGD.grabExcessHorizontalSpace = true;
166
        testLinkGD.grabExcessHorizontalSpace = true;
164
        testLinkGD.horizontalAlignment = SWT.FILL;		
167
        testLinkGD.horizontalAlignment = SWT.FILL;		
Lines 178-189 Link Here
178
        
181
        
179
	}
182
	}
180
	
183
	
181
	protected String getDeftaultLinkText()
184
	protected String getDefaultLinkText()
182
	{
185
	{
183
		return "unspecified";
186
		return "unspecified";
184
	}
187
	}
185
188
186
	protected String getDeftaultLinkToolTip()
189
	protected String getDefaultLinkToolTip()
187
	{
190
	{
188
		return "";
191
		return "";
189
	}
192
	}
Lines 271-277 Link Here
271
		{
274
		{
272
			doPack = true;
275
			doPack = true;
273
			imageLabel.setImage(TestUIImages.INSTANCE.getImage(TestUIImages.IMG_ERROR));
276
			imageLabel.setImage(TestUIImages.INSTANCE.getImage(TestUIImages.IMG_ERROR));
274
			testLink.setText(getDeftaultLinkText());
277
			testLink.setText(getDefaultLinkText());
275
			testLink.setData(null);
278
			testLink.setData(null);
276
			fileText.setText("");
279
			fileText.setText("");
277
			typeText.setText("");
280
			typeText.setText("");
(-)src/org/eclipse/hyades/test/tools/ui/common/internal/editor/TestInvocationDetailPage.java (-11 / +11 lines)
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$
(-)src/org/eclipse/hyades/test/tools/ui/common/internal/editor/TestSuiteForm.java (-1 / +3 lines)
Lines 41-51 Link Here
41
41
42
/**
42
/**
43
 * Source info viewer.
43
 * Source info viewer.
44
 * <p/>
44
 * 
45
 * 
45
 * 
46
 * 
46
 * @author  Marcelo Paternostro
47
 * @author  Marcelo Paternostro
47
 * @author  Paul E. Slauenwhite
48
 * @author  Paul E. Slauenwhite
48
 * @version January 22, 2008
49
 * @version April 16, 2008
49
 * @since   February 1, 2005
50
 * @since   February 1, 2005
50
 */
51
 */
51
abstract public class TestSuiteForm 
52
abstract public class TestSuiteForm 
Lines 232-237 Link Here
232
	 */
233
	 */
233
	public boolean activated()
234
	public boolean activated()
234
	{
235
	{
236
		updateScrollBars();
235
		return true;
237
		return true;
236
	}
238
	}
237
}
239
}
(-)src/org/eclipse/hyades/test/tools/ui/java/internal/junit/editor/JUnitBehaviorForm.java (-4 / +10 lines)
Lines 30-37 Link Here
30
import org.eclipse.swt.widgets.Control;
30
import org.eclipse.swt.widgets.Control;
31
31
32
/**
32
/**
33
 * @author marcelop
33
 * JUnitBehaviorForm.java
34
 * @since 0.3.0
34
 * <p/>
35
 * 
36
 * 
37
 * @author  Paul E. Slauenwhite
38
 * @author  Marcelo Paternostro
39
 * @version April 16, 2008
40
 * @since   February 1, 2005
35
 */
41
 */
36
public class JUnitBehaviorForm
42
public class JUnitBehaviorForm
37
extends BehaviorForm
43
extends BehaviorForm
Lines 129-140 Link Here
129
				return ToolsUiPluginResourceBundle.BTN_IS_SYNC; 
135
				return ToolsUiPluginResourceBundle.BTN_IS_SYNC; 
130
			}
136
			}
131
137
132
			protected String getDeftaultLinkText()
138
			protected String getDefaultLinkText()
133
			{
139
			{
134
				return UiPluginResourceBundle.NO_TST_TO_INV; 
140
				return UiPluginResourceBundle.NO_TST_TO_INV; 
135
			}
141
			}
136
			
142
			
137
			protected String getDeftaultLinkToolTip()
143
			protected String getDefaultLinkToolTip()
138
			{
144
			{
139
				return UiPluginResourceBundle.TIP_INV_TEST; 
145
				return UiPluginResourceBundle.TIP_INV_TEST; 
140
			}
146
			}
(-)src-ui/org/eclipse/tptp/test/tools/manual/ui/internal/editor/ManualBehaviorForm.java (-4 / +4 lines)
Lines 29-40 Link Here
29
import org.eclipse.tptp.test.tools.manual.ui.internal.resources.ManualUIResourceBundle;
29
import org.eclipse.tptp.test.tools.manual.ui.internal.resources.ManualUIResourceBundle;
30
30
31
/**
31
/**
32
 * Behavior tabbed pane of the Manual Test Editor.
32
 * Behavior form of the Manual Test Editor.
33
 * <p>
33
 * <p>
34
 * 
34
 * 
35
 * 
35
 * 
36
 * @author  Paul E. Slauenwhite
36
 * @author  Paul E. Slauenwhite
37
 * @version January 16, 2008
37
 * @version April 16, 2008
38
 * @since   December 5, 2007
38
 * @since   December 5, 2007
39
 * @see     JUnitBehaviorForm
39
 * @see     JUnitBehaviorForm
40
 */
40
 */
Lines 112-122 Link Here
112
				return ManualUIResourceBundle.BTN_IS_SYNC; 
112
				return ManualUIResourceBundle.BTN_IS_SYNC; 
113
			}
113
			}
114
114
115
			protected String getDeftaultLinkText(){
115
			protected String getDefaultLinkText(){
116
				return ManualUIResourceBundle.NO_TST_TO_INV; 
116
				return ManualUIResourceBundle.NO_TST_TO_INV; 
117
			}
117
			}
118
			
118
			
119
			protected String getDeftaultLinkToolTip(){
119
			protected String getDefaultLinkToolTip(){
120
				return ManualUIResourceBundle.TIP_INV_TEST; 
120
				return ManualUIResourceBundle.TIP_INV_TEST; 
121
			}
121
			}
122
		});
122
		});
(-)src/org/eclipse/tptp/test/auto/gui/internal/editor/AutoGUIBehaviorForm.java (-4 / +5 lines)
Lines 90-101 Link Here
90
import org.w3c.dom.Text;
90
import org.w3c.dom.Text;
91
91
92
/**
92
/**
93
 * This is the behaviour page of the automated gui test suite
93
 * This is the behavior page of the Aautomated GUI Recorder (AGR) test suite
94
 * <p/>
94
 * 
95
 * 
95
 * 
96
 * 
96
 * @author      Ali Mehregani
97
 * @author      Ali Mehregani
97
 * @author      Paul E. Slauenwhite
98
 * @author      Paul E. Slauenwhite
98
 * @version     March 7, 2008
99
 * @version     April 18, 2008
99
 * @since       August 19, 2005
100
 * @since       August 19, 2005
100
 */
101
 */
101
public class AutoGUIBehaviorForm 
102
public class AutoGUIBehaviorForm 
Lines 606-617 Link Here
606
			return ToolsUiPluginResourceBundle.BTN_IS_SYNC; 
607
			return ToolsUiPluginResourceBundle.BTN_IS_SYNC; 
607
		}
608
		}
608
609
609
		protected String getDeftaultLinkText()
610
		protected String getDefaultLinkText()
610
		{
611
		{
611
			return UiPluginResourceBundle.NO_TST_TO_INV; 
612
			return UiPluginResourceBundle.NO_TST_TO_INV; 
612
		}
613
		}
613
		
614
		
614
		protected String getDeftaultLinkToolTip()
615
		protected String getDefaultLinkToolTip()
615
		{
616
		{
616
			return UiPluginResourceBundle.TIP_INV_TEST; 
617
			return UiPluginResourceBundle.TIP_INV_TEST; 
617
		}
618
		}

Return to bug 201900