1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-12 18:55:38 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-12-04 01:48:15 +00:00
parent 0391ede740
commit 6b9291e199

View file

@ -136,7 +136,7 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
* @see org.eclipse.jface.dialogs.Dialog#okPressed() * @see org.eclipse.jface.dialogs.Dialog#okPressed()
*/ */
protected void okPressed() { protected void okPressed() {
//single selection dialog, so take first item in array // Single selection dialog, so take first item in array
// there will always be a selected item since we set it with viewer.setSelection // there will always be a selected item since we set it with viewer.setSelection
ISourceContainerType type = (ISourceContainerType) ((StructuredSelection) fViewer.getSelection()).getFirstElement(); ISourceContainerType type = (ISourceContainerType) ((StructuredSelection) fViewer.getSelection()).getFirstElement();
ISourceContainerBrowser browser = DebugUITools.getSourceContainerBrowser(type.getId()); ISourceContainerBrowser browser = DebugUITools.getSourceContainerBrowser(type.getId());