Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2012-01-17 14:42:18 +0000
committerMarc Khouzam2012-01-17 14:42:18 +0000
commit2bafef2e42a8fc04637fef5bd468e0cd893894a0 (patch)
tree8e1a3e813bd22dd84d7ee3af613b65fe32d3e218 /debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse
parentd184e414d04125c66d85cf0c55e6b921d4d7c420 (diff)
downloadorg.eclipse.cdt-2bafef2e42a8fc04637fef5bd468e0cd893894a0.tar.gz
org.eclipse.cdt-2bafef2e42a8fc04637fef5bd468e0cd893894a0.tar.xz
org.eclipse.cdt-2bafef2e42a8fc04637fef5bd468e0cd893894a0.zip
Code cleanup, mostly about missing @Override
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/ActionFilterAdapterFactory.java2
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/CygwinDebuggerPage.java2
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBDebuggerPage.java19
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBServerDebuggerPage.java7
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBSolibBlock.java10
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBTargetActionFilter.java1
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MinGWDebuggerPage.java1
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SerialPortSettingsBlock.java2
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java18
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/StandardGDBDebuggerPage.java24
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java2
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java10
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/VerboseModeActionDelegate.java3
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/CheckedListDialogField.java6
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ComboDialogField.java7
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/DialogField.java1
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/LayoutUtil.java1
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ListDialogField.java11
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogField.java5
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java5
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/Separator.java2
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonDialogField.java5
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonStatusDialogField.java3
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringDialogField.java5
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/preferences/MIPreferencePage.java41
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java4
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/MiConsolePageParticipant.java9
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleSaveAction.java2
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleVerboseModeAction.java1
29 files changed, 208 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/ActionFilterAdapterFactory.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/ActionFilterAdapterFactory.java
index 2aa761d4bda..f85e2ff836b 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/ActionFilterAdapterFactory.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/ActionFilterAdapterFactory.java
@@ -22,6 +22,7 @@ public class ActionFilterAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
*/
+ @Override
public Object getAdapter( Object adaptableObject, Class adapterType ) {
if ( adapterType.isInstance( adaptableObject ) ) {
return adaptableObject;
@@ -37,6 +38,7 @@ public class ActionFilterAdapterFactory implements IAdapterFactory {
/* (non-Javadoc)
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
*/
+ @Override
public Class[] getAdapterList() {
return new Class[] {
IActionFilter.class
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/CygwinDebuggerPage.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/CygwinDebuggerPage.java
index 561c8ed16f0..fe3d6d78492 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/CygwinDebuggerPage.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/CygwinDebuggerPage.java
@@ -17,6 +17,7 @@ import org.eclipse.swt.widgets.TabFolder;
*/
public class CygwinDebuggerPage extends GDBDebuggerPage {
+ @Override
public String getName() {
return MIUIMessages.getString( "CygwinDebuggerPage.0" ); //$NON-NLS-1$
}
@@ -24,6 +25,7 @@ public class CygwinDebuggerPage extends GDBDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.GDBDebuggerPage#createTabs(org.eclipse.swt.widgets.TabFolder)
*/
+ @Override
public void createTabs( TabFolder tabFolder ) {
createMainTab( tabFolder );
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBDebuggerPage.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBDebuggerPage.java
index 7dadda9bc6c..26bb7ffbb79 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBDebuggerPage.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBDebuggerPage.java
@@ -62,6 +62,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
private Button fBreakpointsFullPath;
+ @Override
public void createControl( Composite parent ) {
Composite comp = new Composite( parent, SWT.NONE );
comp.setLayout( new GridLayout() );
@@ -73,6 +74,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
setControl( parent );
}
+ @Override
public void setDefaults( ILaunchConfigurationWorkingCopy configuration ) {
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_DEBUG_NAME, "gdb" ); //$NON-NLS-1$
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_GDB_INIT, IMILaunchConfigurationConstants.DEBUGGER_GDB_INIT_DEFAULT );
@@ -81,6 +83,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
fSolibBlock.setDefaults( configuration );
}
+ @Override
public boolean isValid( ILaunchConfiguration launchConfig ) {
boolean valid = fGDBCommandText.getText().length() != 0;
if ( valid ) {
@@ -94,6 +97,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
return valid;
}
+ @Override
public void initializeFrom( ILaunchConfiguration configuration ) {
setInitializing( true );
String gdbCommand = "gdb"; //$NON-NLS-1$
@@ -137,6 +141,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
setInitializing( false );
}
+ @Override
public void performApply( ILaunchConfigurationWorkingCopy configuration ) {
String str = fGDBCommandText.getText();
str.trim();
@@ -154,6 +159,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
fSolibBlock.performApply( configuration );
}
+ @Override
public String getName() {
return MIUIMessages.getString( "GDBDebuggerPage.1" ); //$NON-NLS-1$
}
@@ -161,6 +167,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
/**
* @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#getShell()
*/
+ @Override
protected Shell getShell() {
return super.getShell();
}
@@ -168,6 +175,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
/**
* @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#updateLaunchConfigurationDialog()
*/
+ @Override
protected void updateLaunchConfigurationDialog() {
super.updateLaunchConfigurationDialog();
}
@@ -177,6 +185,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
*
* @see java.util.Observer#update(java.util.Observable, java.lang.Object)
*/
+ @Override
public void update( Observable o, Object arg ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -210,6 +219,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
fGDBCommandText = ControlFactory.createTextField( subComp, SWT.SINGLE | SWT.BORDER );
fGDBCommandText.addModifyListener( new ModifyListener() {
+ @Override
public void modifyText( ModifyEvent evt ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -218,6 +228,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
Button button = createPushButton( subComp, MIUIMessages.getString( "GDBDebuggerPage.4" ), null ); //$NON-NLS-1$
button.addSelectionListener( new SelectionAdapter() {
+ @Override
public void widgetSelected( SelectionEvent evt ) {
handleGDBButtonSelected();
updateLaunchConfigurationDialog();
@@ -247,6 +258,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
fGDBInitText.setLayoutData( gd );
fGDBInitText.addModifyListener( new ModifyListener() {
+ @Override
public void modifyText( ModifyEvent evt ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -255,6 +267,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
button = createPushButton( subComp, MIUIMessages.getString( "GDBDebuggerPage.7" ), null ); //$NON-NLS-1$
button.addSelectionListener( new SelectionAdapter() {
+ @Override
public void widgetSelected( SelectionEvent evt ) {
handleGDBInitButtonSelected();
updateLaunchConfigurationDialog();
@@ -306,6 +319,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
*
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#dispose()
*/
+ @Override
public void dispose() {
if ( fSolibBlock != null ) {
if ( fSolibBlock instanceof Observable )
@@ -318,6 +332,7 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void activated( ILaunchConfigurationWorkingCopy workingCopy ) {
// Override the default behavior
}
@@ -337,11 +352,13 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
fProtocolCombo.setItems( protocolItems );
fProtocolCombo.addSelectionListener( new SelectionListener() {
+ @Override
public void widgetDefaultSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
}
+ @Override
public void widgetSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -352,10 +369,12 @@ public class GDBDebuggerPage extends AbstractCDebuggerPage implements Observer {
protected void createBreakpointFullPathName( Composite parent ) {
fBreakpointsFullPath = createCheckButton( parent, MIUIMessages.getString( "StandardGDBDebuggerPage.14" ) ); //$NON-NLS-1$
fBreakpointsFullPath.addSelectionListener( new SelectionListener() {
+ @Override
public void widgetDefaultSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
}
+ @Override
public void widgetSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBServerDebuggerPage.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBServerDebuggerPage.java
index 5f974c51be2..16a0852c1ae 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBServerDebuggerPage.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBServerDebuggerPage.java
@@ -85,6 +85,7 @@ public class GDBServerDebuggerPage extends StandardGDBDebuggerPage {
field.setItems( fConnections );
field.setDialogFieldListener( new IDialogFieldListener() {
+ @Override
public void dialogFieldChanged( DialogField f ) {
if ( !isInitializing() )
connectionTypeChanged();
@@ -111,6 +112,7 @@ public class GDBServerDebuggerPage extends StandardGDBDebuggerPage {
fConnectionStack.layout();
}
+ @Override
public boolean isValid( ILaunchConfiguration launchConfig ) {
if ( super.isValid( launchConfig ) ) {
setErrorMessage( null );
@@ -136,6 +138,7 @@ public class GDBServerDebuggerPage extends StandardGDBDebuggerPage {
return false;
}
+ @Override
public void initializeFrom( ILaunchConfiguration configuration ) {
setInitializing( true );
super.initializeFrom( configuration );
@@ -152,6 +155,7 @@ public class GDBServerDebuggerPage extends StandardGDBDebuggerPage {
setInitializing( false );
}
+ @Override
public void performApply( ILaunchConfigurationWorkingCopy configuration ) {
super.performApply( configuration );
if ( fConnectionField != null )
@@ -160,6 +164,7 @@ public class GDBServerDebuggerPage extends StandardGDBDebuggerPage {
fSerialBlock.performApply( configuration );
}
+ @Override
public void setDefaults( ILaunchConfigurationWorkingCopy configuration ) {
super.setDefaults( configuration );
configuration.setAttribute( IGDBServerMILaunchConfigurationConstants.ATTR_REMOTE_TCP, false );
@@ -167,6 +172,7 @@ public class GDBServerDebuggerPage extends StandardGDBDebuggerPage {
fSerialBlock.setDefaults( configuration );
}
+ @Override
protected boolean isInitializing() {
return fIsInitializing;
}
@@ -178,6 +184,7 @@ public class GDBServerDebuggerPage extends StandardGDBDebuggerPage {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.GDBDebuggerPage#createTabs(org.eclipse.swt.widgets.TabFolder)
*/
+ @Override
public void createTabs( TabFolder tabFolder ) {
super.createTabs( tabFolder );
createConnectionTab( tabFolder );
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBSolibBlock.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBSolibBlock.java
index ba2bd14862c..359c73fdfb6 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBSolibBlock.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBSolibBlock.java
@@ -55,6 +55,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#createControl(org.eclipse.swt.widgets.Composite)
*/
+ @Override
public void createControl( Composite parent ) {
Composite subComp = ControlFactory.createCompositeEx( parent, 1, GridData.FILL_HORIZONTAL );
((GridLayout)subComp.getLayout()).makeColumnsEqualWidth = false;
@@ -69,6 +70,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
fAutoSoLibButton = ControlFactory.createCheckBox( subComp, MIUIMessages.getString( "GDBSolibBlock.0" ) ); //$NON-NLS-1$
fAutoSoLibButton.addSelectionListener( new SelectionAdapter() {
+ @Override
public void widgetSelected( SelectionEvent e ) {
updateButtons();
changed();
@@ -79,6 +81,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
fStopOnSolibEventsButton = ControlFactory.createCheckBox( subComp, MIUIMessages.getString( "GDBSolibBlock.1" ) ); //$NON-NLS-1$
fStopOnSolibEventsButton.addSelectionListener( new SelectionAdapter() {
+ @Override
public void widgetSelected( SelectionEvent e ) {
updateButtons();
changed();
@@ -91,6 +94,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public void initializeFrom( ILaunchConfiguration configuration ) {
if ( fSolibSearchPathBlock != null )
fSolibSearchPathBlock.initializeFrom( configuration );
@@ -109,6 +113,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void performApply( ILaunchConfigurationWorkingCopy configuration ) {
if ( fSolibSearchPathBlock != null )
fSolibSearchPathBlock.performApply( configuration );
@@ -127,6 +132,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void setDefaults( ILaunchConfigurationWorkingCopy configuration ) {
if ( fSolibSearchPathBlock != null )
fSolibSearchPathBlock.setDefaults( configuration );
@@ -140,6 +146,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#dispose()
*/
+ @Override
public void dispose() {
deleteObservers();
if ( fSolibSearchPathBlock != null ) {
@@ -154,6 +161,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
*
* @see java.util.Observer#update(java.util.Observable, java.lang.Object)
*/
+ @Override
public void update( Observable o, Object arg ) {
changed();
}
@@ -178,6 +186,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#getControl()
*/
+ @Override
public Control getControl() {
return fControl;
}
@@ -185,6 +194,7 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#isValid(org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public boolean isValid( ILaunchConfiguration launchConfig ) {
// TODO Auto-generated method stub
return false;
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBTargetActionFilter.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBTargetActionFilter.java
index ec02bca3b01..64cba06acbe 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBTargetActionFilter.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBTargetActionFilter.java
@@ -23,6 +23,7 @@ public class GDBTargetActionFilter implements IActionFilter {
/* (non-Javadoc)
* @see org.eclipse.ui.IActionFilter#testAttribute(java.lang.Object, java.lang.String, java.lang.String)
*/
+ @Override
public boolean testAttribute( Object target, String name, String value ) {
if ( target instanceof ICDebugTarget ) {
if ( name.equals( "GDBTargetActionFilter" ) && value.equals( "isGDBTarget" ) ) { //$NON-NLS-1$//$NON-NLS-2$
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MinGWDebuggerPage.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MinGWDebuggerPage.java
index 9dec034b93f..ebfd635be80 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MinGWDebuggerPage.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/MinGWDebuggerPage.java
@@ -35,6 +35,7 @@ import org.eclipse.debug.core.ILaunchConfiguration;
*/
public class MinGWDebuggerPage extends StandardGDBDebuggerPage {
+ @Override
protected String defaultGdbCommand(ILaunchConfiguration configuration) {
// Lets look it up in the project
try {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SerialPortSettingsBlock.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SerialPortSettingsBlock.java
index 6e8077d0ab9..05315816024 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SerialPortSettingsBlock.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SerialPortSettingsBlock.java
@@ -102,6 +102,7 @@ public class SerialPortSettingsBlock extends Observable {
field.setLabelText( MIUIMessages.getString( "SerialPortSettingsBlock.0" ) ); //$NON-NLS-1$
field.setDialogFieldListener( new IDialogFieldListener() {
+ @Override
public void dialogFieldChanged( DialogField f ) {
deviceFieldChanged();
}
@@ -115,6 +116,7 @@ public class SerialPortSettingsBlock extends Observable {
field.setItems( fSpeedChoices );
field.setDialogFieldListener( new IDialogFieldListener() {
+ @Override
public void dialogFieldChanged( DialogField f ) {
speedFieldChanged();
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java
index 8a7da35746b..e34d4258df4 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java
@@ -110,6 +110,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
fText.setLayoutData( new GridData( GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL ) );
fText.addModifyListener( new ModifyListener() {
+ @Override
public void modifyText( ModifyEvent e ) {
updateOKButton();
}
@@ -245,9 +246,11 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
buttonLabels[i] = customButtonLabels[i - fgStaticButtonLabels.length];
}
IListAdapter listAdapter = new IListAdapter() {
+ @Override
public void customButtonPressed( DialogField field, int index ) {
buttonPressed( index );
}
+ @Override
public void selectionChanged( DialogField field ) {
}
};
@@ -271,6 +274,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#createControl(org.eclipse.swt.widgets.Composite)
*/
+ @Override
public void createControl( Composite parent ) {
fShell = parent.getShell();
Composite comp = ControlFactory.createCompositeEx( parent, 2, GridData.FILL_BOTH );
@@ -289,6 +293,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public void initializeFrom( ILaunchConfiguration configuration ) {
IProject project = null;
try {
@@ -328,6 +333,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void setDefaults( ILaunchConfigurationWorkingCopy configuration ) {
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, Collections.EMPTY_LIST );
}
@@ -335,6 +341,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void performApply( ILaunchConfigurationWorkingCopy configuration ) {
if ( fDirList != null ) {
List elements = fDirList.getElements();
@@ -398,6 +405,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#dispose()
*/
+ @Override
public void dispose() {
deleteObservers();
}
@@ -405,6 +413,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#getControl()
*/
+ @Override
public Control getControl() {
return fControl;
}
@@ -412,6 +421,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.internal.ui.IMILaunchConfigurationComponent#isValid(org.eclipse.debug.core.ILaunchConfiguration)
*/
+ @Override
public boolean isValid( ILaunchConfiguration launchConfig ) {
// TODO Auto-generated method stub
return false;
@@ -443,20 +453,24 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
if ( generateLibraryList( (IPath[])dirList.toArray( new IPath[dirList.size()] ), libs ) ) {
ITreeContentProvider cp = new ITreeContentProvider() {
+ @Override
public Object[] getChildren( Object parentElement ) {
return getElements( parentElement );
}
+ @Override
public Object getParent( Object element ) {
if ( libs.contains( element ) )
return libs;
return null;
}
+ @Override
public boolean hasChildren( Object element ) {
return false;
}
+ @Override
public Object[] getElements( Object inputElement ) {
if ( inputElement instanceof Set ) {
return ((Set)inputElement).toArray();
@@ -464,9 +478,11 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
return new Object[0];
}
+ @Override
public void dispose() {
}
+ @Override
public void inputChanged( Viewer viewer, Object oldInput, Object newInput ) {
}
};
@@ -500,6 +516,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
boolean result = true;
IRunnableWithProgress runnable = new IRunnableWithProgress() {
+ @Override
public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException {
for ( int i = 0; i < paths.length; ++i ) {
@@ -597,6 +614,7 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
return ( name.indexOf( ".so." ) >= 0 ); //$NON-NLS-1$
}
+ @Override
public void dialogFieldChanged(DialogField field) {
setChanged();
notifyObservers();
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/StandardGDBDebuggerPage.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/StandardGDBDebuggerPage.java
index 242a19134ab..21381c219bb 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/StandardGDBDebuggerPage.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/StandardGDBDebuggerPage.java
@@ -78,6 +78,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
private static boolean cachedGdb64Exists;
+ @Override
public void createControl( Composite parent ) {
Composite comp = new Composite( parent, SWT.NONE );
comp.setLayout( new GridLayout() );
@@ -89,6 +90,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
setControl( parent );
}
+ @Override
public void setDefaults( ILaunchConfigurationWorkingCopy configuration ) {
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_DEBUG_NAME, defaultGdbCommand(configuration));
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_GDB_INIT, IMILaunchConfigurationConstants.DEBUGGER_GDB_INIT_DEFAULT );
@@ -144,6 +146,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
}
+ @Override
public boolean isValid( ILaunchConfiguration launchConfig ) {
boolean valid = fGDBCommandText.getText().length() != 0;
if ( valid ) {
@@ -157,6 +160,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
return valid;
}
+ @Override
public void initializeFrom( ILaunchConfiguration configuration ) {
setInitializing( true );
String gdbCommand = defaultGdbCommand(configuration);
@@ -180,6 +184,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
fCommandFactoryDescriptors = MIPlugin.getDefault().getCommandFactoryManager().getDescriptors( debuggerID );
Arrays.sort( fCommandFactoryDescriptors,
new Comparator() {
+ @Override
public int compare( Object arg0, Object arg1 ) {
return ((CommandFactoryDescriptor)arg0).getName().compareTo( ((CommandFactoryDescriptor)arg1).getName() );
}
@@ -250,6 +255,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
}
return result;
}
+ @Override
public void performApply( ILaunchConfigurationWorkingCopy configuration ) {
String str = fGDBCommandText.getText();
str.trim();
@@ -269,6 +275,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
configuration.setAttribute( IMILaunchConfigurationConstants.ATTR_DEBUGGER_FULLPATH_BREAKPOINTS, fBreakpointsFullPath.getSelection() );
}
+ @Override
public String getName() {
return MIUIMessages.getString( "StandardGDBDebuggerPage.1" ); //$NON-NLS-1$
}
@@ -276,6 +283,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
/**
* @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#getShell()
*/
+ @Override
protected Shell getShell() {
return super.getShell();
}
@@ -283,6 +291,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
/**
* @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#updateLaunchConfigurationDialog()
*/
+ @Override
protected void updateLaunchConfigurationDialog() {
super.updateLaunchConfigurationDialog();
}
@@ -292,6 +301,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
*
* @see java.util.Observer#update(java.util.Observable, java.lang.Object)
*/
+ @Override
public void update( Observable o, Object arg ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -325,6 +335,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
fGDBCommandText = ControlFactory.createTextField( subComp, SWT.SINGLE | SWT.BORDER );
fGDBCommandText.addModifyListener( new ModifyListener() {
+ @Override
public void modifyText( ModifyEvent evt ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -333,6 +344,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
Button button = createPushButton( subComp, MIUIMessages.getString( "StandardGDBDebuggerPage.4" ), null ); //$NON-NLS-1$
button.addSelectionListener( new SelectionAdapter() {
+ @Override
public void widgetSelected( SelectionEvent evt ) {
handleGDBButtonSelected();
updateLaunchConfigurationDialog();
@@ -362,6 +374,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
fGDBInitText.setLayoutData( gd );
fGDBInitText.addModifyListener( new ModifyListener() {
+ @Override
public void modifyText( ModifyEvent evt ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -370,6 +383,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
button = createPushButton( subComp, MIUIMessages.getString( "StandardGDBDebuggerPage.7" ), null ); //$NON-NLS-1$
button.addSelectionListener( new SelectionAdapter() {
+ @Override
public void widgetSelected( SelectionEvent evt ) {
handleGDBInitButtonSelected();
updateLaunchConfigurationDialog();
@@ -430,6 +444,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
*
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#dispose()
*/
+ @Override
public void dispose() {
if ( fSolibBlock != null ) {
if ( fSolibBlock instanceof Observable )
@@ -442,6 +457,7 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
/* (non-Javadoc)
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
+ @Override
public void activated( ILaunchConfigurationWorkingCopy workingCopy ) {
// Override the default behavior
}
@@ -460,11 +476,13 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
fCommandFactoryCombo = new Combo( parent, SWT.READ_ONLY | SWT.DROP_DOWN );
fCommandFactoryCombo.addSelectionListener( new SelectionListener() {
+ @Override
public void widgetDefaultSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
}
+ @Override
public void widgetSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -478,11 +496,13 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
fProtocolCombo = new Combo( parent, SWT.READ_ONLY | SWT.DROP_DOWN );
fProtocolCombo.addSelectionListener( new SelectionListener() {
+ @Override
public void widgetDefaultSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
}
+ @Override
public void widgetSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -504,11 +524,13 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
fVerboseModeButton = createCheckButton( parent, MIUIMessages.getString( "StandardGDBDebuggerPage.13" ) ); //$NON-NLS-1$
fVerboseModeButton.addSelectionListener( new SelectionListener() {
+ @Override
public void widgetDefaultSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
}
+ @Override
public void widgetSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
@@ -520,11 +542,13 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
fBreakpointsFullPath.addSelectionListener( new SelectionListener() {
+ @Override
public void widgetDefaultSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
}
+ @Override
public void widgetSelected( SelectionEvent e ) {
if ( !isInitializing() )
updateLaunchConfigurationDialog();
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java
index 47bedd141c5..47236c0d422 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/TCPSettingsBlock.java
@@ -97,6 +97,7 @@ public class TCPSettingsBlock extends Observable {
field.setLabelText( MIUIMessages.getString( "TCPSettingsBlock.0" ) ); //$NON-NLS-1$
field.setDialogFieldListener( new IDialogFieldListener() {
+ @Override
public void dialogFieldChanged( DialogField f ) {
hostNameFieldChanged();
}
@@ -109,6 +110,7 @@ public class TCPSettingsBlock extends Observable {
field.setLabelText( MIUIMessages.getString( "TCPSettingsBlock.1" ) ); //$NON-NLS-1$
field.setDialogFieldListener( new IDialogFieldListener() {
+ @Override
public void dialogFieldChanged( DialogField f ) {
portNumberFieldChanged();
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java
index 167ebf1d17e..6accc0d5cad 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/SetAutoSolibActionDelegate.java
@@ -59,6 +59,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
*/
+ @Override
public void init( IViewPart view ) {
fView = view;
view.getSite().getPage().addPartListener( this );
@@ -70,6 +71,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.ISelectionListener#selectionChanged(IWorkbenchPart, ISelection)
*/
+ @Override
public void selectionChanged( IWorkbenchPart part, ISelection selection ) {
if ( part.getSite().getId().equals( IDebugUIConstants.ID_DEBUG_VIEW ) ) {
update( getAction() );
@@ -81,9 +83,11 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.IActionDelegate#run(IAction)
*/
+ @Override
public void run( IAction action ) {
BusyIndicator.showWhile( Display.getCurrent(), new Runnable() {
+ @Override
public void run() {
try {
doAction( DebugUITools.getDebugContext() );
@@ -111,6 +115,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
setAction( action );
if ( getView() != null ) {
@@ -131,6 +136,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.IPartListener#partActivated(IWorkbenchPart)
*/
+ @Override
public void partActivated( IWorkbenchPart part ) {
}
@@ -139,6 +145,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.IPartListener#partBroughtToTop(IWorkbenchPart)
*/
+ @Override
public void partBroughtToTop( IWorkbenchPart part ) {
}
@@ -147,6 +154,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.IPartListener#partClosed(IWorkbenchPart)
*/
+ @Override
public void partClosed( IWorkbenchPart part ) {
if ( part.equals( getView() ) ) {
dispose();
@@ -158,6 +166,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.IPartListener#partDeactivated(IWorkbenchPart)
*/
+ @Override
public void partDeactivated( IWorkbenchPart part ) {
}
@@ -166,6 +175,7 @@ public class SetAutoSolibActionDelegate implements IViewActionDelegate, ISelecti
*
* @see org.eclipse.ui.IPartListener#partOpened(IWorkbenchPart)
*/
+ @Override
public void partOpened( IWorkbenchPart part ) {
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/VerboseModeActionDelegate.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/VerboseModeActionDelegate.java
index 944308f4b05..f0af6c30859 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/VerboseModeActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/actions/VerboseModeActionDelegate.java
@@ -26,12 +26,14 @@ public class VerboseModeActionDelegate extends ActionDelegate implements IObject
/* (non-Javadoc)
* @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
*/
+ @Override
public void setActivePart( IAction action, IWorkbenchPart targetPart ) {
}
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#run(org.eclipse.jface.action.IAction)
*/
+ @Override
public void run( IAction action ) {
if ( fProcess != null ) {
boolean enabled = fProcess.getTarget().isVerboseModeEnabled();
@@ -43,6 +45,7 @@ public class VerboseModeActionDelegate extends ActionDelegate implements IObject
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
+ @Override
public void selectionChanged( IAction action, ISelection selection ) {
IStructuredSelection s = (IStructuredSelection)selection;
fProcess = ( !s.isEmpty() ) ? (GDBProcess)s.getFirstElement() : null;
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/CheckedListDialogField.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/CheckedListDialogField.java
index 892f2c06302..4f48a06155a 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/CheckedListDialogField.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/CheckedListDialogField.java
@@ -69,10 +69,12 @@ public class CheckedListDialogField extends ListDialogField {
/*
* @see ListDialogField#createTableViewer
*/
+ @Override
protected TableViewer createTableViewer(Composite parent) {
Table table= new Table(parent, SWT.CHECK + getListStyle());
CheckboxTableViewer tableViewer= new CheckboxTableViewer(table);
tableViewer.addCheckStateListener(new ICheckStateListener() {
+ @Override
public void checkStateChanged(CheckStateChangedEvent e) {
doCheckStateChanged(e);
}
@@ -84,6 +86,7 @@ public class CheckedListDialogField extends ListDialogField {
/*
* @see ListDialogField#getListControl
*/
+ @Override
public Control getListControl(Composite parent) {
Control control= super.getListControl(parent);
if (parent != null) {
@@ -96,6 +99,7 @@ public class CheckedListDialogField extends ListDialogField {
* @see DialogField#dialogFieldChanged
* Hooks in to get element changes to update check model.
*/
+ @Override
public void dialogFieldChanged() {
for (int i= fCheckElements.size() -1; i >= 0; i--) {
if (!fElements.contains(fCheckElements.get(i))) {
@@ -192,6 +196,7 @@ public class CheckedListDialogField extends ListDialogField {
/*
* @see ListDialogField#getManagedButtonState
*/
+ @Override
protected boolean getManagedButtonState(ISelection sel, int index) {
if (index == fCheckAllButtonIndex) {
return !fElements.isEmpty();
@@ -204,6 +209,7 @@ public class CheckedListDialogField extends ListDialogField {
/*
* @see ListDialogField#extraButtonPressed
*/
+ @Override
protected boolean managedButtonPressed(int index) {
if (index == fCheckAllButtonIndex) {
checkAll(true);
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ComboDialogField.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ComboDialogField.java
index 85fa7d643a6..e8e2674ad8e 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ComboDialogField.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ComboDialogField.java
@@ -45,6 +45,7 @@ public class ComboDialogField extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -59,6 +60,7 @@ public class ComboDialogField extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 2;
}
@@ -76,6 +78,7 @@ public class ComboDialogField extends DialogField {
/*
* @see DialogField#setFocus
*/
+ @Override
public boolean setFocus() {
if (isOkToUse(fComboControl)) {
fComboControl.setFocus();
@@ -94,15 +97,18 @@ public class ComboDialogField extends DialogField {
if (fComboControl == null) {
assertCompositeNotNull(parent);
fModifyListener= new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
doModifyText(e);
}
};
SelectionListener selectionListener= new SelectionListener() {
+ @Override
public void widgetSelected(SelectionEvent e) {
doSelectionChanged(e);
}
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
}
};
@@ -145,6 +151,7 @@ public class ComboDialogField extends DialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fComboControl)) {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/DialogField.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/DialogField.java
index 7d23cbeea8e..92cbd3324a7 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/DialogField.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/DialogField.java
@@ -85,6 +85,7 @@ public class DialogField {
if (display != null) {
display.asyncExec(
new Runnable() {
+ @Override
public void run() {
setFocus();
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/LayoutUtil.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/LayoutUtil.java
index 963dd16cda2..bdf51aefa18 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/LayoutUtil.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/LayoutUtil.java
@@ -56,6 +56,7 @@ public class LayoutUtil {
* @param marginHeight The margin height to be used by the composite
* @deprecated
*/
+ @Deprecated
public static void doDefaultLayout(Composite parent, DialogField[] editors, boolean labelOnTop, int minWidth, int minHeight, int marginWidth, int marginHeight) {
int nCulumns= getNumberOfColumns(editors);
Control[][] controls= new Control[editors.length][];
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ListDialogField.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ListDialogField.java
index cc744a38b9d..2bfd745a8e8 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ListDialogField.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/ListDialogField.java
@@ -177,6 +177,7 @@ public class ListDialogField extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
PixelConverter converter= new PixelConverter(parent);
@@ -214,6 +215,7 @@ public class ListDialogField extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 3;
}
@@ -315,9 +317,11 @@ public class ListDialogField extends DialogField {
assertCompositeNotNull(parent);
SelectionListener listener= new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
doButtonSelected(e);
}
+ @Override
public void widgetSelected(SelectionEvent e) {
doButtonSelected(e);
}
@@ -368,6 +372,7 @@ public class ListDialogField extends DialogField {
/*
* @see DialogField#dialogFieldChanged
*/
+ @Override
public void dialogFieldChanged() {
super.dialogFieldChanged();
updateButtonState();
@@ -403,6 +408,7 @@ public class ListDialogField extends DialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
@@ -614,6 +620,7 @@ public class ListDialogField extends DialogField {
if (isOkToUse(fTableControl)) {
Display d= fTableControl.getDisplay();
d.asyncExec(new Runnable() {
+ @Override
public void run() {
if (isOkToUse(fTableControl)) {
selectElements(selection);
@@ -736,6 +743,7 @@ public class ListDialogField extends DialogField {
// ------- ITableContentProvider Interface ------------
+ @Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
// will never happen
}
@@ -744,15 +752,18 @@ public class ListDialogField extends DialogField {
return false;
}
+ @Override
public void dispose() {
}
+ @Override
public Object[] getElements(Object obj) {
return fElements.toArray();
}
// ------- ISelectionChangedListener Interface ------------
+ @Override
public void selectionChanged(SelectionChangedEvent event) {
doListSelected(event);
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogField.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogField.java
index 6e1ea5432b2..5edcadf4cce 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogField.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogField.java
@@ -78,6 +78,7 @@ public class SelectionButtonDialogField extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -97,6 +98,7 @@ public class SelectionButtonDialogField extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 1;
}
@@ -118,9 +120,11 @@ public class SelectionButtonDialogField extends DialogField {
fButton.setEnabled(isEnabled());
fButton.setSelection(fIsSelected);
fButton.addSelectionListener(new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
doWidgetSelected(e);
}
+ @Override
public void widgetSelected(SelectionEvent e) {
doWidgetSelected(e);
}
@@ -177,6 +181,7 @@ public class SelectionButtonDialogField extends DialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fButton)) {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java
index ea108921e38..8469ae89742 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/SelectionButtonDialogFieldGroup.java
@@ -80,6 +80,7 @@ public class SelectionButtonDialogFieldGroup extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -105,6 +106,7 @@ public class SelectionButtonDialogFieldGroup extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public int getNumberOfControls() {
return (fGroupBorderStyle == SWT.NONE) ? 2 : 1;
}
@@ -150,9 +152,11 @@ public class SelectionButtonDialogFieldGroup extends DialogField {
fButtonComposite.setLayout(layout);
SelectionListener listener= new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
doWidgetSelected(e);
}
+ @Override
public void widgetSelected(SelectionEvent e) {
doWidgetSelected(e);
}
@@ -224,6 +228,7 @@ public class SelectionButtonDialogFieldGroup extends DialogField {
// ------ enable / disable management
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (fButtons != null) {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/Separator.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/Separator.java
index c0e8173867e..2a81fd2365c 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/Separator.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/Separator.java
@@ -55,6 +55,7 @@ public class Separator extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
return doFillIntoGrid(parent, nColumns, 4);
}
@@ -62,6 +63,7 @@ public class Separator extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 1;
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonDialogField.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonDialogField.java
index d8bbdaecbe4..1a6900775fd 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonDialogField.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonDialogField.java
@@ -60,6 +60,7 @@ public class StringButtonDialogField extends StringDialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -76,6 +77,7 @@ public class StringButtonDialogField extends StringDialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 3;
}
@@ -104,9 +106,11 @@ public class StringButtonDialogField extends StringDialogField {
fBrowseButton.setText(fBrowseButtonLabel);
fBrowseButton.setEnabled(isEnabled() && fButtonEnabled);
fBrowseButton.addSelectionListener(new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
changeControlPressed();
}
+ @Override
public void widgetSelected(SelectionEvent e) {
changeControlPressed();
}
@@ -131,6 +135,7 @@ public class StringButtonDialogField extends StringDialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fBrowseButton)) {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonStatusDialogField.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonStatusDialogField.java
index 18b6994afda..ce039f9a563 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonStatusDialogField.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringButtonStatusDialogField.java
@@ -89,6 +89,7 @@ public class StringButtonStatusDialogField extends StringButtonDialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -107,6 +108,7 @@ public class StringButtonStatusDialogField extends StringButtonDialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 4;
}
@@ -157,6 +159,7 @@ public class StringButtonStatusDialogField extends StringButtonDialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fStatusLabelControl)) {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringDialogField.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringDialogField.java
index 586c7d57d69..5b7e08b3476 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringDialogField.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/dialogfields/StringDialogField.java
@@ -38,6 +38,7 @@ public class StringDialogField extends DialogField {
/*
* @see DialogField#doFillIntoGrid
*/
+ @Override
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
assertEnoughColumns(nColumns);
@@ -52,6 +53,7 @@ public class StringDialogField extends DialogField {
/*
* @see DialogField#getNumberOfControls
*/
+ @Override
public int getNumberOfControls() {
return 2;
}
@@ -69,6 +71,7 @@ public class StringDialogField extends DialogField {
/*
* @see DialogField#setFocus
*/
+ @Override
public boolean setFocus() {
if (isOkToUse(fTextControl)) {
fTextControl.setFocus();
@@ -88,6 +91,7 @@ public class StringDialogField extends DialogField {
if (fTextControl == null) {
assertCompositeNotNull(parent);
fModifyListener= new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
doModifyText(e);
}
@@ -116,6 +120,7 @@ public class StringDialogField extends DialogField {
/*
* @see DialogField#updateEnableState
*/
+ @Override
protected void updateEnableState() {
super.updateEnableState();
if (isOkToUse(fTextControl)) {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/preferences/MIPreferencePage.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/preferences/MIPreferencePage.java
index b27223893a2..926045e4300 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/preferences/MIPreferencePage.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/preferences/MIPreferencePage.java
@@ -55,6 +55,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/**
* @see org.eclipse.jface.preference.FieldEditor#refreshValidState()
*/
+ @Override
protected void refreshValidState() {
super.refreshValidState();
}
@@ -63,6 +64,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
* Clears the error message from the message line if the error
* message is the error message from this field editor.
*/
+ @Override
protected void clearErrorMessage() {
if (canClearErrorMessage()) {
super.clearErrorMessage();
@@ -82,9 +84,11 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener)
*/
+ @Override
public void addPropertyChangeListener( final IPropertyChangeListener listener ) {
Preferences.IPropertyChangeListener l = new Preferences.IPropertyChangeListener() {
+ @Override
public void propertyChange( org.eclipse.core.runtime.Preferences.PropertyChangeEvent event ) {
listener.propertyChange( new PropertyChangeEvent( MIPreferenceStore.this, event.getProperty(), event.getNewValue(), event.getOldValue() ) );
}
@@ -95,6 +99,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#contains(java.lang.String)
*/
+ @Override
public boolean contains( String name ) {
return getPreferences().contains( name );
}
@@ -102,6 +107,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#firePropertyChangeEvent(java.lang.String, java.lang.Object, java.lang.Object)
*/
+ @Override
public void firePropertyChangeEvent( String name, Object oldValue, Object newValue ) {
Iterator it = fListeners.keySet().iterator();
while( it.hasNext() ) {
@@ -112,6 +118,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getBoolean(java.lang.String)
*/
+ @Override
public boolean getBoolean( String name ) {
return fPreferences.getBoolean( name );
}
@@ -119,6 +126,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getDefaultBoolean(java.lang.String)
*/
+ @Override
public boolean getDefaultBoolean( String name ) {
return fPreferences.getDefaultBoolean( name );
}
@@ -126,6 +134,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getDefaultDouble(java.lang.String)
*/
+ @Override
public double getDefaultDouble( String name ) {
return fPreferences.getDefaultDouble( name );
}
@@ -133,6 +142,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getDefaultFloat(java.lang.String)
*/
+ @Override
public float getDefaultFloat( String name ) {
return fPreferences.getDefaultFloat( name );
}
@@ -140,6 +150,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getDefaultInt(java.lang.String)
*/
+ @Override
public int getDefaultInt( String name ) {
return fPreferences.getDefaultInt( name );
}
@@ -147,6 +158,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getDefaultLong(java.lang.String)
*/
+ @Override
public long getDefaultLong( String name ) {
return fPreferences.getDefaultLong( name );
}
@@ -154,6 +166,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getDefaultString(java.lang.String)
*/
+ @Override
public String getDefaultString( String name ) {
return fPreferences.getDefaultString( name );
}
@@ -161,6 +174,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getDouble(java.lang.String)
*/
+ @Override
public double getDouble( String name ) {
return fPreferences.getDouble( name );
}
@@ -168,6 +182,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getFloat(java.lang.String)
*/
+ @Override
public float getFloat( String name ) {
return fPreferences.getFloat( name );
}
@@ -175,6 +190,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getInt(java.lang.String)
*/
+ @Override
public int getInt( String name ) {
return fPreferences.getInt( name );
}
@@ -182,6 +198,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getLong(java.lang.String)
*/
+ @Override
public long getLong( String name ) {
return fPreferences.getLong( name );
}
@@ -189,6 +206,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#getString(java.lang.String)
*/
+ @Override
public String getString( String name ) {
return fPreferences.getString( name );
}
@@ -196,6 +214,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#isDefault(java.lang.String)
*/
+ @Override
public boolean isDefault( String name ) {
return fPreferences.isDefault( name );
}
@@ -203,6 +222,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#needsSaving()
*/
+ @Override
public boolean needsSaving() {
return getPreferences().needsSaving();
}
@@ -210,6 +230,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#putValue(java.lang.String, java.lang.String)
*/
+ @Override
public void putValue( String name, String value ) {
getPreferences().setValue( name, value );
}
@@ -217,6 +238,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener)
*/
+ @Override
public void removePropertyChangeListener( IPropertyChangeListener listener ) {
fListeners.remove( listener );
}
@@ -224,6 +246,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setDefault(java.lang.String, double)
*/
+ @Override
public void setDefault( String name, double value ) {
getPreferences().setDefault( name, value );
}
@@ -231,6 +254,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setDefault(java.lang.String, float)
*/
+ @Override
public void setDefault( String name, float value ) {
getPreferences().setDefault( name, value );
}
@@ -238,6 +262,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setDefault(java.lang.String, int)
*/
+ @Override
public void setDefault( String name, int value ) {
getPreferences().setDefault( name, value );
}
@@ -245,6 +270,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setDefault(java.lang.String, long)
*/
+ @Override
public void setDefault( String name, long value ) {
getPreferences().setDefault( name, value );
}
@@ -252,6 +278,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setDefault(java.lang.String, java.lang.String)
*/
+ @Override
public void setDefault( String name, String defaultObject ) {
getPreferences().setDefault( name, defaultObject );
}
@@ -259,6 +286,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setDefault(java.lang.String, boolean)
*/
+ @Override
public void setDefault( String name, boolean value ) {
getPreferences().setDefault( name, value );
}
@@ -266,6 +294,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setToDefault(java.lang.String)
*/
+ @Override
public void setToDefault( String name ) {
getPreferences().setToDefault( name );
}
@@ -273,6 +302,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setValue(java.lang.String, double)
*/
+ @Override
public void setValue( String name, double value ) {
getPreferences().setValue( name, value );
}
@@ -280,6 +310,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setValue(java.lang.String, float)
*/
+ @Override
public void setValue( String name, float value ) {
getPreferences().setValue( name, value );
}
@@ -287,6 +318,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setValue(java.lang.String, int)
*/
+ @Override
public void setValue( String name, int value ) {
getPreferences().setValue( name, value );
}
@@ -294,6 +326,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setValue(java.lang.String, long)
*/
+ @Override
public void setValue( String name, long value ) {
getPreferences().setValue( name, value );
}
@@ -301,6 +334,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setValue(java.lang.String, java.lang.String)
*/
+ @Override
public void setValue( String name, String value ) {
getPreferences().setValue( name, value );
}
@@ -308,6 +342,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.preference.IPreferenceStore#setValue(java.lang.String, boolean)
*/
+ @Override
public void setValue( String name, boolean value ) {
getPreferences().setValue( name, value );
}
@@ -343,6 +378,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
*
* @see org.eclipse.jface.preference.PreferencePage#createContents(Composite)
*/
+ @Override
protected Control createContents( Composite parent ) {
getWorkbench().getHelpSystem().setHelp( getControl(), IMIHelpContextIds.MI_PREFERENCE_PAGE );
//The main composite
@@ -376,6 +412,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/**
* @see IPreferencePage#performOk()
*/
+ @Override
public boolean performOk() {
boolean result = super.performOk();
storeValues();
@@ -389,6 +426,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
*
* @see PreferencePage#performDefaults()
*/
+ @Override
protected void performDefaults() {
setDefaultValues();
super.performDefaults();
@@ -405,6 +443,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
*
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(IWorkbench)
*/
+ @Override
public void init( IWorkbench workbench ) {
fWorkbench = workbench;
}
@@ -472,6 +511,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.IDialogPage#dispose()
*/
+ @Override
public void dispose() {
fDebugTimeoutText.dispose();
fLaunchTimeoutText.dispose();
@@ -490,6 +530,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
/**
* @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
+ @Override
public void propertyChange(PropertyChangeEvent event) {
if (event.getProperty().equals(FieldEditor.IS_VALID)) {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java
index 562ba3cede4..aa036425068 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/propertypages/OptionsPropertyPage.java
@@ -40,6 +40,7 @@ public class OptionsPropertyPage extends PropertyPage {
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
+ @Override
protected Control createContents( Composite parent ) {
Composite comp = ControlFactory.createComposite( parent, 1 );
fRefreshSolibsButton = createCheckButton( comp, PropertyMessages.getString( "OptionsPropertyPage.1" ) ); //$NON-NLS-1$
@@ -66,11 +67,13 @@ public class OptionsPropertyPage extends PropertyPage {
}
+ @Override
protected void performApply() {
storeValues();
super.performApply();
}
+ @Override
public boolean performOk() {
storeValues();
return super.performOk();
@@ -86,6 +89,7 @@ public class OptionsPropertyPage extends PropertyPage {
if ( target.isSuspended() && solibUpdate ) {
DebugPlugin.getDefault().asyncExec( new Runnable() {
+ @Override
public void run() {
if ( target.isSuspended() ) {
if ( solibUpdate ) {
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/MiConsolePageParticipant.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/MiConsolePageParticipant.java
index 031678d07e3..01014bf8baf 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/MiConsolePageParticipant.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/MiConsolePageParticipant.java
@@ -40,12 +40,15 @@ public class MiConsolePageParticipant implements IConsolePageParticipant, IDebug
private org.eclipse.debug.ui.console.IConsole fConsole = null;
private org.eclipse.cdt.debug.mi.core.GDBProcess GDBProcess = null;
+ @Override
public void activated() {
}
+ @Override
public void deactivated() {
}
+ @Override
public void dispose() {
if (GDBProcess != null) {
DebugPlugin.getDefault().removeDebugEventListener(this);
@@ -56,6 +59,7 @@ public class MiConsolePageParticipant implements IConsolePageParticipant, IDebug
fConsole = null;
}
+ @Override
public void init(IPageBookViewPage page, IConsole console) {
if(console instanceof org.eclipse.debug.ui.console.IConsole)
@@ -87,11 +91,13 @@ public class MiConsolePageParticipant implements IConsolePageParticipant, IDebug
}
}
+ @Override
@SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter) {
return null;
}
+ @Override
public void handleDebugEvents(DebugEvent[] events) {
for (int i = 0; i < events.length; i++) {
DebugEvent event = events[i];
@@ -111,7 +117,8 @@ public class MiConsolePageParticipant implements IConsolePageParticipant, IDebug
/**
* Handle MISession notification
*/
- public void update(Observable arg0, Object arg1) {
+ @Override
+ public void update(Observable arg0, Object arg1) {
if((arg1!=null) && (arg1 instanceof VerboseModeChangedEvent) && (fVerboseMode != null)) {
try {
fVerboseMode.updateStateAndEnablement();
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleSaveAction.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleSaveAction.java
index 38111c7e051..bebbf740209 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleSaveAction.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleSaveAction.java
@@ -41,6 +41,7 @@ public class MiConsoleSaveAction extends Action{
fConsole = console;
}
+ @Override
public void run() {
FileDialog fileDialog = new FileDialog(Display.getCurrent().getActiveShell(), SWT.SAVE);
@@ -50,6 +51,7 @@ public class MiConsoleSaveAction extends Action{
}
Runnable saveJob = new Runnable() {
+ @Override
public void run() {
saveContent();
}
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleVerboseModeAction.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleVerboseModeAction.java
index 6fe1ad28f1a..86ff6972aa6 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleVerboseModeAction.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/ui/console/actions/MiConsoleVerboseModeAction.java
@@ -43,6 +43,7 @@ public class MiConsoleVerboseModeAction extends Action {
}
}
+ @Override
public void run() {
GDBProcess fProcess = (GDBProcess) fConsole.getProcess();
fProcess.getTarget().enableVerboseMode(isChecked());

Back to the top