1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

CDT has not moved up to Java 1.6. Can't use String.isEmpty()

This commit is contained in:
John Cortell 2010-05-06 17:51:58 +00:00
parent 2f76ea4d10
commit e699f8cfba
2 changed files with 4 additions and 4 deletions

View file

@ -367,7 +367,7 @@ public class GDBJtagDSFDebuggerTab extends AbstractLaunchConfigurationTab {
useRemote.setSelection(useRemoteAttr);
savedJtagDevice = configuration.getAttribute(IGDBJtagConstants.ATTR_JTAG_DEVICE, "");
if (savedJtagDevice.isEmpty()) {
if (savedJtagDevice.length() == 0) {
jtagDevice.select(0);
} else {
String storedAddress = ""; //$NON-NLS-1$
@ -424,7 +424,7 @@ public class GDBJtagDSFDebuggerTab extends AbstractLaunchConfigurationTab {
savedJtagDevice = jtagDevice.getText();
configuration.setAttribute(IGDBJtagConstants.ATTR_JTAG_DEVICE, savedJtagDevice);
configuration.setAttribute(IGDBJtagConstants.ATTR_USE_REMOTE_TARGET, useRemote.getSelection());
if (!savedJtagDevice.isEmpty()) {
if (savedJtagDevice.length() > 0) {
try {
IGDBJtagDevice device = findJtagDeviceByName(jtagDevice.getText()).getDevice();
if (device instanceof IGDBJtagConnection) {

View file

@ -459,7 +459,7 @@ public class GDBJtagDebuggerTab extends AbstractLaunchConfigurationTab {
useRemoteChanged();
savedJtagDevice = configuration.getAttribute(IGDBJtagConstants.ATTR_JTAG_DEVICE, ""); //$NON-NLS-1$
if (savedJtagDevice.isEmpty()) {
if (savedJtagDevice.length() == 0) {
jtagDevice.select(0);
} else {
String storedAddress = ""; //$NON-NLS-1$
@ -514,7 +514,7 @@ public class GDBJtagDebuggerTab extends AbstractLaunchConfigurationTab {
savedJtagDevice = jtagDevice.getText();
configuration.setAttribute(IGDBJtagConstants.ATTR_JTAG_DEVICE, savedJtagDevice);
configuration.setAttribute(IGDBJtagConstants.ATTR_USE_REMOTE_TARGET, useRemote.getSelection());
if (!savedJtagDevice.isEmpty()) {
if (savedJtagDevice.length() > 0) {
try {
IGDBJtagDevice device = findJtagDeviceByName(jtagDevice.getText()).getDevice();
if (device instanceof IGDBJtagConnection) {