Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2016-06-29 08:40:09 -0400
committerAnton Leherbauer2016-06-29 08:40:50 -0400
commit9f5abdf29e7e13c39b9f5447a4782a40aa04b8e5 (patch)
treed858259dc6d592997104ccbc61e74bf71c1c68ad /target_explorer
parent736147b1fc86d0bce21b37743bda572e9b6a5135 (diff)
downloadorg.eclipse.tcf-9f5abdf29e7e13c39b9f5447a4782a40aa04b8e5.tar.gz
org.eclipse.tcf-9f5abdf29e7e13c39b9f5447a4782a40aa04b8e5.tar.xz
org.eclipse.tcf-9f5abdf29e7e13c39b9f5447a4782a40aa04b8e5.zip
Target Explorer: Fix check and radio button look in GTK3
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationAdvancedTabSection.java14
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/LaunchConfigurationMainTabSection.java11
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java5
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);

Back to the top