core/com.nokia.carbide.bugreport/src/com/nokia/carbide/internal/bugreport/ui/wizards/BugDescriptionPage.java
equal
deleted
inserted
replaced
38 import org.eclipse.jface.dialogs.MessageDialog; |
38 import org.eclipse.jface.dialogs.MessageDialog; |
39 import com.nokia.carbide.internal.bugreport.export.IProduct; |
39 import com.nokia.carbide.internal.bugreport.export.IProduct; |
40 import com.nokia.carbide.internal.bugreport.model.*; |
40 import com.nokia.carbide.internal.bugreport.model.*; |
41 import com.nokia.carbide.internal.bugreport.resources.HelpContextIDs; |
41 import com.nokia.carbide.internal.bugreport.resources.HelpContextIDs; |
42 import com.nokia.carbide.internal.bugreport.resources.Messages; |
42 import com.nokia.carbide.internal.bugreport.resources.Messages; |
|
43 import com.nokia.cpp.internal.api.utils.ui.BrowseDialogUtils; |
43 |
44 |
44 |
45 |
45 /** |
46 /** |
46 * Details Description wizard page. This page is used entering issue type, summary, |
47 * Details Description wizard page. This page is used entering issue type, summary, |
47 * description and attachment file. |
48 * description and attachment file. |
194 |
195 |
195 public void widgetSelected(SelectionEvent event) { |
196 public void widgetSelected(SelectionEvent event) { |
196 if (event.widget == browseButton) { |
197 if (event.widget == browseButton) { |
197 FileDialog dialog = new FileDialog(this.getShell(), SWT.OPEN); |
198 FileDialog dialog = new FileDialog(this.getShell(), SWT.OPEN); |
198 dialog.setText(Messages.getString("BugDescriptionPage.SelectAttachmentFile")); //$NON-NLS-1$ |
199 dialog.setText(Messages.getString("BugDescriptionPage.SelectAttachmentFile")); //$NON-NLS-1$ |
|
200 BrowseDialogUtils.initializeFrom(dialog, attachmentText); |
199 String result = dialog.open(); |
201 String result = dialog.open(); |
200 attachmentText.setText(result); |
202 attachmentText.setText(result); |
201 } else if (event.widget == uiServiceLink) { |
203 } else if (event.widget == uiServiceLink) { |
202 product.showUiService(this.getShell()); |
204 product.showUiService(this.getShell()); |
203 } |
205 } |