Skip to main content
summaryrefslogtreecommitdiffstats
path: root/cross
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 11:20:42 -0500
committerJonah Graham2018-11-22 16:51:31 -0500
commit8985c7b63f04ad139e8b93160798e642d2addc55 (patch)
treef47208be3bf39983209f2433f307bf73a3474952 /cross
parenta923614c73274179d56e78d35d17aef149c23a03 (diff)
downloadorg.eclipse.cdt-8985c7b63f04ad139e8b93160798e642d2addc55.tar.gz
org.eclipse.cdt-8985c7b63f04ad139e8b93160798e642d2addc55.tar.xz
org.eclipse.cdt-8985c7b63f04ad139e8b93160798e642d2addc55.zip
Bug 540373: Cleanup: Add missing annotations
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Add missing Annotations - and selecting all three types: - @Override - @Override on interface methods - @Deprecated and completing the wizard Change-Id: I5d367dacb04327107f25e147edc08efc4eb1c2fe
Diffstat (limited to 'cross')
-rwxr-xr-xcross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/Activator.java2
-rw-r--r--cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java6
-rw-r--r--cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandOperation.java1
-rw-r--r--cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java18
-rw-r--r--cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/launching/RemoteGdbLaunchDelegate.java2
-rw-r--r--cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java4
-rw-r--r--cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteDSFGDBDebuggerPage.java4
7 files changed, 37 insertions, 0 deletions
diff --git a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/Activator.java b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/Activator.java
index 0077d5491b..93bb347db8 100755
--- a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/Activator.java
+++ b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/Activator.java
@@ -40,6 +40,7 @@ public class Activator extends Plugin {
* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
*/
+ @Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
@@ -49,6 +50,7 @@ public class Activator extends Plugin {
* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
*/
+ @Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
diff --git a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java
index 0e6f07afa5..6846033b1c 100644
--- a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java
+++ b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java
@@ -25,6 +25,7 @@ import org.eclipse.core.runtime.Platform;
public class CrossEnvironmentVariableSupplier implements IConfigurationEnvironmentVariableSupplier {
+ @Override
public IBuildEnvironmentVariable getVariable(String variableName, IConfiguration configuration,
IEnvironmentVariableProvider provider) {
if (PathEnvironmentVariable.isVar(variableName))
@@ -33,6 +34,7 @@ public class CrossEnvironmentVariableSupplier implements IConfigurationEnvironme
return null;
}
+ @Override
public IBuildEnvironmentVariable[] getVariables(IConfiguration configuration,
IEnvironmentVariableProvider provider) {
IBuildEnvironmentVariable path = PathEnvironmentVariable.create(configuration);
@@ -66,18 +68,22 @@ public class CrossEnvironmentVariableSupplier implements IConfigurationEnvironme
: name.equals(PathEnvironmentVariable.name);
}
+ @Override
public String getDelimiter() {
return Platform.getOS().equals(Platform.OS_WIN32) ? ";" : ":"; //$NON-NLS-1$ //$NON-NLS-2$
}
+ @Override
public String getName() {
return name;
}
+ @Override
public int getOperation() {
return IBuildEnvironmentVariable.ENVVAR_PREPEND;
}
+ @Override
public String getValue() {
return path.getPath();
}
diff --git a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandOperation.java b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandOperation.java
index 2f156a08e7..ab6eda4317 100644
--- a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandOperation.java
+++ b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandOperation.java
@@ -36,6 +36,7 @@ import org.eclipse.jface.operation.IRunnableWithProgress;
*/
public class SetCrossCommandOperation implements IRunnableWithProgress {
+ @Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
String projectName = (String) MBSCustomPageManager.getPageProperty(SetCrossCommandWizardPage.PAGE_ID,
diff --git a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java
index 4eb0caa46b..a2a19c0ea8 100644
--- a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java
+++ b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java
@@ -71,10 +71,12 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
return finish;
}
+ @Override
public String getName() {
return Messages.SetCrossCommandWizardPage_name;
}
+ @Override
public void createControl(Composite parent) {
composite = new Composite(parent, SWT.NULL);
@@ -95,6 +97,7 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
}
prefixTxt.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
updatePrefixProperty();
}
@@ -113,6 +116,7 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
pathTxt.setLayoutData(layoutData);
pathTxt.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
updatePathProperty();
}
@@ -122,9 +126,11 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
button.setText(Messages.SetCrossCommandWizardPage_browse);
button.addSelectionListener(new SelectionListener() {
+ @Override
public void widgetDefaultSelected(SelectionEvent e) {
}
+ @Override
public void widgetSelected(SelectionEvent e) {
DirectoryDialog dirDialog = new DirectoryDialog(composite.getShell(), SWT.APPLICATION_MODAL);
String browsedDirectory = dirDialog.open();
@@ -137,42 +143,53 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
button.setLayoutData(layoutData);
}
+ @Override
public Control getControl() {
return composite;
}
+ @Override
public String getDescription() {
return Messages.SetCrossCommandWizardPage_description;
}
+ @Override
public String getErrorMessage() {
return null;
}
+ @Override
public Image getImage() {
return wizard.getDefaultPageImage();
}
+ @Override
public String getMessage() {
return null;
}
+ @Override
public String getTitle() {
return Messages.SetCrossCommandWizardPage_title;
}
+ @Override
public void performHelp() {
}
+ @Override
public void setDescription(String description) {
}
+ @Override
public void setImageDescriptor(ImageDescriptor image) {
}
+ @Override
public void setTitle(String title) {
}
+ @Override
public void setVisible(boolean visible) {
if (visible) {
finish = true;
@@ -180,6 +197,7 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
composite.setVisible(visible);
}
+ @Override
public void dispose() {
}
diff --git a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/launching/RemoteGdbLaunchDelegate.java b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/launching/RemoteGdbLaunchDelegate.java
index 03bc479aec..687a582885 100644
--- a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/launching/RemoteGdbLaunchDelegate.java
+++ b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/launching/RemoteGdbLaunchDelegate.java
@@ -110,6 +110,7 @@ public class RemoteGdbLaunchDelegate extends GdbLaunchDelegate {
if (session != null) {
try {
session.getExecutor().execute(new DsfRunnable() {
+ @Override
public void run() {
DsfServicesTracker tracker = new DsfServicesTracker(
Activator.getBundleContext(), session.getId());
@@ -166,6 +167,7 @@ public class RemoteGdbLaunchDelegate extends GdbLaunchDelegate {
// partially started already.
try {
l.getSession().getExecutor().execute(new DsfRunnable() {
+ @Override
public void run() {
l.shutdownSession(new ImmediateRequestMonitor());
}
diff --git a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java
index 3aa6f8fb17..97abd6828b 100644
--- a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java
+++ b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteCDSFMainTab.java
@@ -118,6 +118,7 @@ public class RemoteCDSFMainTab extends CMainTab {
/* If the local binary path changes, modify the remote binary location */
fProgText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent evt) {
setLocalPathForRemotePath();
}
@@ -194,6 +195,7 @@ public class RemoteCDSFMainTab extends CMainTab {
connectionCombo.setLayoutData(gd);
connectionCombo.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent e) {
useDefaultsFromConnection();
updateConnectionButtons();
@@ -260,6 +262,7 @@ public class RemoteCDSFMainTab extends CMainTab {
remoteProgText.setLayoutData(gd);
remoteProgText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent evt) {
updateLaunchConfigurationDialog();
}
@@ -288,6 +291,7 @@ public class RemoteCDSFMainTab extends CMainTab {
preRunText.setLayoutData(gd);
preRunText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent evt) {
updateLaunchConfigurationDialog();
}
diff --git a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteDSFGDBDebuggerPage.java b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteDSFGDBDebuggerPage.java
index 7e24600024..c626617bc4 100644
--- a/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteDSFGDBDebuggerPage.java
+++ b/cross/org.eclipse.cdt.launch.remote/src/org/eclipse/cdt/launch/remote/tabs/RemoteDSFGDBDebuggerPage.java
@@ -172,6 +172,7 @@ public class RemoteDSFGDBDebuggerPage extends GdbDebuggerPage {
fGDBServerCommandText.setLayoutData(data);
fGDBServerCommandText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent evt) {
updateLaunchConfigurationDialog();
}
@@ -186,6 +187,7 @@ public class RemoteDSFGDBDebuggerPage extends GdbDebuggerPage {
fGDBServerPortNumberText.setLayoutData(data);
fGDBServerPortNumberText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent evt) {
updateLaunchConfigurationDialog();
}
@@ -200,6 +202,7 @@ public class RemoteDSFGDBDebuggerPage extends GdbDebuggerPage {
fGDBServerOptionsText.setLayoutData(data);
fGDBServerOptionsText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent evt) {
updateLaunchConfigurationDialog();
}
@@ -224,6 +227,7 @@ public class RemoteDSFGDBDebuggerPage extends GdbDebuggerPage {
fRemoteTimeoutValueText.setToolTipText(Messages.Remotetimeout_tooltip);
fRemoteTimeoutValueText.addModifyListener(new ModifyListener() {
+ @Override
public void modifyText(ModifyEvent evt) {
updateLaunchConfigurationDialog();
}

Back to the top