Skip to content

Commit 2e7adbb

Browse files
author
Andreas Stange
committed
removed warnings because of hiding fields
1 parent 1b1232d commit 2e7adbb

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/LaunchConfiguration.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ public class LaunchConfiguration implements ILaunchConfigurationDelegate{
5050
IProgressMonitor monitor;
5151

5252
@Override
53-
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor)
53+
public void launch(ILaunchConfiguration launchConfig, String launchMode, ILaunch launchHandle, IProgressMonitor launchMonitor)
5454
throws CoreException {
5555

56-
this.config = config;
57-
this.mode = mode;
58-
this.launch = launch;
59-
this.monitor = monitor;
56+
this.config = launchConfig;
57+
this.mode = launchMode;
58+
this.launch = launchHandle;
59+
this.monitor = launchMonitor;
6060

6161
// Get data from config
6262
loadSettingsFromConfiguration();

it.baeyens.arduino.core/src/it/baeyens/arduino/ui/launchconfig/LaunchShortcut.java

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,42 +39,40 @@ public class LaunchShortcut implements ILaunchShortcut {
3939
* {@inheritDoc}
4040
*/
4141
@Override
42-
public void launch(IEditorPart editor, String mode) {
43-
IFile file = ResourceUtil.getFile(editor.getEditorInput());
44-
if (file != null) {
45-
launch(file, mode);
42+
public void launch(IEditorPart editor, String launchMode) {
43+
IFile editorFile = ResourceUtil.getFile(editor.getEditorInput());
44+
if (editorFile != null) {
45+
launch(editorFile, launchMode);
4646
}
4747
}
4848

4949
/**
5050
* {@inheritDoc}
5151
*/
5252
@Override
53-
public void launch(ISelection selection, String mode) {
53+
public void launch(ISelection selection, String launchMode) {
5454
if (selection instanceof IStructuredSelection) {
5555
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
5656
if (structuredSelection.getFirstElement() instanceof IFile) {
57-
launch((IFile) structuredSelection.getFirstElement(), mode);
57+
launch((IFile) structuredSelection.getFirstElement(), launchMode);
5858
}
5959
}
6060
}
6161

6262
/**
63-
* Launch the file by adding it to an existing launch config of this project
64-
* or creating a new one if none yet. If a new config is created the main
65-
* file and environment used to initialize it will be fetched from the
66-
* project preferences if possible or from a user dialog if not.
63+
* Launch the project of the file via an existing launch configuration
64+
* or create a new one if there is none yet.
6765
*
6866
* @param file
6967
* The file to be launched
7068
* @param mode
7169
* The mode the launch should be performed in (e.g. 'run' or
7270
* 'debug')
7371
*/
74-
private void launch(IFile file, String mode) {
75-
this.file = file;
72+
private void launch(IFile launchFile, String launchMode) {
73+
this.file = launchFile;
7674
this.project = file.getProject();
77-
this.mode = mode;
75+
this.mode = launchMode;
7876

7977
// Find launch config for the project or initialize new one.
8078
ILaunchConfiguration config = findOrCreateLaunchConfiguration();

0 commit comments

Comments
 (0)