mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
5226c0b13a
commit
b26d21eb32
1 changed files with 35 additions and 41 deletions
|
@ -45,7 +45,6 @@ import org.eclipse.ui.PlatformUI;
|
|||
* The dynamic tab for gdb-based debugger implementations.
|
||||
*/
|
||||
public class GdbDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
||||
|
||||
protected TabFolder fTabFolder;
|
||||
protected Text fGDBCommandText;
|
||||
protected Text fGDBInitText;
|
||||
|
@ -93,8 +92,7 @@ public class GdbDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
if (valid) {
|
||||
setErrorMessage(null);
|
||||
setMessage(null);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
setErrorMessage(LaunchUIMessages.getString("GDBDebuggerPage.gdb_executable_not_specified")); //$NON-NLS-1$
|
||||
setMessage(null);
|
||||
}
|
||||
|
@ -105,8 +103,7 @@ public class GdbDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
private String getStringAttr(ILaunchConfiguration config, String attributeName, String defaultValue) {
|
||||
try {
|
||||
return config.getAttribute(attributeName, defaultValue);
|
||||
}
|
||||
catch (CoreException exc) {
|
||||
} catch (CoreException exc) {
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
|
@ -114,8 +111,7 @@ public class GdbDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
private boolean getBooleanAttr(ILaunchConfiguration config, String attributeName, boolean defaultValue) {
|
||||
try {
|
||||
return config.getAttribute(attributeName, defaultValue);
|
||||
}
|
||||
catch (CoreException exc) {
|
||||
} catch (CoreException exc) {
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
|
@ -230,7 +226,6 @@ public class GdbDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
});
|
||||
Button button = createPushButton(subComp, LaunchUIMessages.getString("GDBDebuggerPage.gdb_browse"), null); //$NON-NLS-1$
|
||||
button.addSelectionListener(new SelectionAdapter() {
|
||||
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent evt) {
|
||||
handleGDBButtonSelected();
|
||||
|
@ -268,7 +263,6 @@ public class GdbDebuggerPage extends AbstractCDebuggerPage implements Observer {
|
|||
});
|
||||
button = createPushButton(subComp, LaunchUIMessages.getString("GDBDebuggerPage.gdb_cmdfile_browse"), null); //$NON-NLS-1$
|
||||
button.addSelectionListener(new SelectionAdapter() {
|
||||
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent evt) {
|
||||
handleGDBInitButtonSelected();
|
||||
|
|
Loading…
Add table
Reference in a new issue