# HG changeset patch # User rsaid # Date 1259877811 21600 # Node ID 85065f3cc0689e5a9f2520ee0c1322f29616bb01 # Parent 46d5c0ecead0584595156b9ed6417353d1bb70f2 Override createControl() to add UIDs to the widgets diff -r 46d5c0ecead0 -r 85065f3cc068 debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/CarbideMainTab.java --- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/CarbideMainTab.java Thu Dec 03 14:08:37 2009 -0600 +++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/CarbideMainTab.java Thu Dec 03 16:03:31 2009 -0600 @@ -20,10 +20,16 @@ import org.eclipse.cdt.launch.ui.CMainTab; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; import org.eclipse.swt.SWT; -import org.eclipse.swt.events.*; +import org.eclipse.swt.events.ModifyEvent; +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.*; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Text; public class CarbideMainTab extends CMainTab { @@ -47,12 +53,14 @@ mainComp.setLayoutData(gd); fProgLabel = new Label(mainComp, SWT.NONE); fProgLabel.setText(LaunchMessages.getString("CMainTab.C/C++_Application")); //$NON-NLS-1$ + fProgLabel.setData(".uid", "CarbideMainTab.ProgramLabel"); gd = new GridData(); gd.horizontalSpan = 3; fProgLabel.setLayoutData(gd); fProgText = new Text(mainComp, SWT.SINGLE | SWT.BORDER); gd = new GridData(GridData.FILL_HORIZONTAL); fProgText.setLayoutData(gd); + fProgText.setData(".uid", "CarbideMainTab.ProgramText"); fProgText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent evt) { @@ -62,6 +70,7 @@ Button fBrowseForBinaryButton; fBrowseForBinaryButton = createPushButton(mainComp, LaunchMessages.getString("Launch.common.Browse_2"), null); //$NON-NLS-1$ + fBrowseForBinaryButton.setData(".uid", "CarbideMainTab.BrowseForBinaryButton"); fBrowseForBinaryButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent evt) { @@ -78,4 +87,13 @@ // forces page to get focus so that help works without having to select some control first. getControl().setFocus(); } + + @Override + public void createControl(Composite parent) { + super.createControl(parent); + fEnableBuildButton.setData(".uid", "CMainTab.EnableBuildButton"); //$NON-NLS-1$ //$NON-NLS-2$ + fDisableBuildButton.setData(".uid", "CMainTab.DisableBuildButton"); //$NON-NLS-1$ //$NON-NLS-2$ + fWorkspaceSettingsButton.setData(".uid", "CMainTab.WorkspaceSettingsButton"); //$NON-NLS-1$ //$NON-NLS-2$ + fWorkpsaceSettingsLink.setData(".uid", "CMainTab.WorkspaceSettingsLink"); //$NON-NLS-1$ //$NON-NLS-2$ + } } \ No newline at end of file