diff options
3 files changed, 11 insertions, 19 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationAdvancedTabSection.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationAdvancedTabSection.java index 6704d447d..b34248cd2 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationAdvancedTabSection.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationAdvancedTabSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2015 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 2012, 2016 Wind River Systems, Inc. and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -92,8 +92,7 @@ public class LaunchConfigurationAdvancedTabSection extends AbstractSection imple panel2.setLayout(layout); panel2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); - lineSeparatorDefault = new Button(panel2, SWT.RADIO); - lineSeparatorDefault.setText(Messages.LaunchConfigurationAdvancedTabSection_lineseparator_default); + lineSeparatorDefault = toolkit.createButton(panel2, Messages.LaunchConfigurationAdvancedTabSection_lineseparator_default, SWT.RADIO); lineSeparatorDefault.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -105,8 +104,7 @@ public class LaunchConfigurationAdvancedTabSection extends AbstractSection imple } }); - lineSeparatorLF = new Button(panel2, SWT.RADIO); - lineSeparatorLF.setText(Messages.LaunchConfigurationAdvancedTabSection_lineseparator_lf); + lineSeparatorLF = toolkit.createButton(panel2, Messages.LaunchConfigurationAdvancedTabSection_lineseparator_lf, SWT.RADIO); lineSeparatorLF.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -118,8 +116,7 @@ public class LaunchConfigurationAdvancedTabSection extends AbstractSection imple } }); - lineSeparatorCRLF = new Button(panel2, SWT.RADIO); - lineSeparatorCRLF.setText(Messages.LaunchConfigurationAdvancedTabSection_lineseparator_crlf); + lineSeparatorCRLF = toolkit.createButton(panel2, Messages.LaunchConfigurationAdvancedTabSection_lineseparator_crlf, SWT.RADIO); lineSeparatorCRLF.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -131,8 +128,7 @@ public class LaunchConfigurationAdvancedTabSection extends AbstractSection imple } }); - lineSeparatorCR = new Button(panel2, SWT.RADIO); - lineSeparatorCR.setText(Messages.LaunchConfigurationAdvancedTabSection_lineseparator_cr); + lineSeparatorCR = toolkit.createButton(panel2, Messages.LaunchConfigurationAdvancedTabSection_lineseparator_cr, SWT.RADIO); lineSeparatorCR.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationMainTabSection.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationMainTabSection.java index 01be12277..ddb4423a4 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationMainTabSection.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationMainTabSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2015 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 2012, 2016 Wind River Systems, Inc. and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -157,8 +157,7 @@ public class LaunchConfigurationMainTabSection extends AbstractSection implement layoutData.horizontalSpan = 3; label.setLayoutData(layoutData); - stopAtEntry = new Button(client, SWT.CHECK); - stopAtEntry.setText(Messages.LaunchConfigurationMainTabSection_stopAtEntry_label); + stopAtEntry = toolkit.createButton(client, Messages.LaunchConfigurationMainTabSection_stopAtEntry_label, SWT.CHECK); layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false); layoutData.horizontalSpan = 3; stopAtEntry.setLayoutData(layoutData); @@ -169,8 +168,7 @@ public class LaunchConfigurationMainTabSection extends AbstractSection implement } }); - stopAtMain = new Button(client, SWT.CHECK); - stopAtMain.setText(Messages.LaunchConfigurationMainTabSection_stopAtMain_label); + stopAtMain = toolkit.createButton(client, Messages.LaunchConfigurationMainTabSection_stopAtMain_label, SWT.CHECK); layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false); layoutData.horizontalSpan = 3; stopAtMain.setLayoutData(layoutData); @@ -181,8 +179,7 @@ public class LaunchConfigurationMainTabSection extends AbstractSection implement } }); - attachChildren = new Button(client, SWT.CHECK); - attachChildren.setText(Messages.LaunchConfigurationMainTabSection_attachChildren_label); + attachChildren = toolkit.createButton(client, Messages.LaunchConfigurationMainTabSection_attachChildren_label, SWT.CHECK); layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false); layoutData.horizontalSpan = 3; attachChildren.setLayoutData(layoutData); diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java index e6e8ef53e..60c2489a6 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2014 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 2012, 2016 Wind River Systems, Inc. and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -396,8 +396,7 @@ public class NewTargetWizardPage extends AbstractValidatingWizardPage implements autoConnect = Boolean.getBoolean("NewWizard_" + IPeerProperties.PROP_AUTO_CONNECT); //$NON-NLS-1$ } - connect = new Button(client, SWT.CHECK); - connect.setText(Messages.AbstractConfigWizardPage_connect_label); + connect = toolkit.createButton(client, Messages.AbstractConfigWizardPage_connect_label, SWT.CHECK); layoutData = new GridData(SWT.FILL, SWT.CENTER, true, false); layoutData.horizontalSpan = 2; connect.setLayoutData(layoutData); |