Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2013-07-16 16:57:17 +0000
committerMike Rennie2013-07-16 16:57:17 +0000
commit44c60018da2e1e14ec6b2d0b0f2b01a71df104fc (patch)
tree45b05cd32d2c68aec0046b2204d81a0d40e5645a /org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi
parent2123eb384fbb6bfe61a03e40ffe6836b2daf4696 (diff)
downloadeclipse.platform.debug-44c60018da2e1e14ec6b2d0b0f2b01a71df104fc.tar.gz
eclipse.platform.debug-44c60018da2e1e14ec6b2d0b0f2b01a71df104fc.tar.xz
eclipse.platform.debug-44c60018da2e1e14ec6b2d0b0f2b01a71df104fc.zip
Bug 413095 - Clean up deprecation and code warnings
Diffstat (limited to 'org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi')
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlLabelProvider.java4
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlsMementoProvider.java6
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventLabelProvider.java4
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java5
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiStepOverHandler.java4
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/SequencerColumnPresentation.java14
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackColumnPresentation.java22
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackLabelProvider.java8
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ClockSliderDetailPane.java6
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java14
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/TempoSliderDetailPane.java6
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/ExampleLaunchStatusHandler.java4
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java8
-rw-r--r--org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiMainTab.java22
14 files changed, 64 insertions, 63 deletions
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlLabelProvider.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlLabelProvider.java
index f54234bf8..febdf3e42 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlLabelProvider.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlLabelProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -34,7 +34,7 @@ public class ControlLabelProvider extends ElementLabelProvider {
if (SequencerColumnPresentation.COL_VALUE.equals(columnId)) {
return control.getValue();
}
- return "";
+ return ""; //$NON-NLS-1$
}
}
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlsMementoProvider.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlsMementoProvider.java
index 6df637fc8..1e3988ad1 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlsMementoProvider.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/ControlsMementoProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -28,10 +28,10 @@ public class ControlsMementoProvider extends DebugElementMementoProvider {
*/
protected String getElementName(Object element, IPresentationContext context) throws CoreException {
if (element instanceof MidiLaunch) {
- return "SEQUENCER";
+ return "SEQUENCER"; //$NON-NLS-1$
}
if (element instanceof TempoControl) {
- return "TEMPO_CONTROL";
+ return "TEMPO_CONTROL"; //$NON-NLS-1$
}
return null;
}
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventLabelProvider.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventLabelProvider.java
index 6ea60ef96..13406acda 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventLabelProvider.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventLabelProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2009 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -55,7 +55,7 @@ public class MidiEventLabelProvider extends ElementLabelProvider {
return Integer.toString(((ShortMessage)message).getChannel());
}
}
- return "";
+ return ""; //$NON-NLS-1$
}
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java
index b535c3d2d..884062f09 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiEventModelProxy.java
@@ -1,5 +1,5 @@
/*****************************************************************
- * Copyright (c) 2009 Texas Instruments and others
+ * Copyright (c) 2009, 2013 Texas Instruments and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Patrick Chuong (Texas Instruments) - Initial API and implementation (Bug 286310)
+ * IBM Corporation - bug fixing
*****************************************************************/
package org.eclipse.debug.examples.ui.midi.adapters;
@@ -26,7 +27,7 @@ public class MidiEventModelProxy extends AbstractModelProxy implements ICheckbox
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.ICheckboxModelProxy#setChecked(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object, org.eclipse.jface.viewers.TreePath, boolean)
*/
public boolean setChecked(IPresentationContext context, Object viewerInput, TreePath path, boolean checked) {
- System.out.println("TrackCheckListener.setChecked() element = " + path.getLastSegment() + " checked = " + checked);
+ System.out.println("TrackCheckListener.setChecked() element = " + path.getLastSegment() + " checked = " + checked); //$NON-NLS-1$ //$NON-NLS-2$
gChecked.put(path, Boolean.valueOf(checked));
return true;
}
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiStepOverHandler.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiStepOverHandler.java
index fb2bdaafa..440b79e46 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiStepOverHandler.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/MidiStepOverHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -38,7 +38,7 @@ public class MidiStepOverHandler implements IStepOverHandler {
public boolean execute(IDebugCommandRequest request) {
// We could create a job to do this work, schedule it, then return to be asynchronous
// If running asynchronously, remember to return the enablement you want the action to have while this action is run
- request.setStatus(new Status(IStatus.WARNING,"org.eclipse.debug.examples.ui","This is an example command handler overriding the default using an adapter on " + request.getElements()[0].getClass().getName()));
+ request.setStatus(new Status(IStatus.WARNING, "org.eclipse.debug.examples.ui", "This is an example command handler overriding the default using an adapter on " + request.getElements()[0].getClass().getName())); //$NON-NLS-1$ //$NON-NLS-2$
request.done();
return true;
}
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/SequencerColumnPresentation.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/SequencerColumnPresentation.java
index 4542f844e..5be898b41 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/SequencerColumnPresentation.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/SequencerColumnPresentation.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -22,8 +22,8 @@ public class SequencerColumnPresentation extends AbstractColumnPresentation {
/**
* Column identifiers
*/
- public static final String COL_NAME = "NAME";
- public static final String COL_VALUE = "VALUE";
+ public static final String COL_NAME = "NAME"; //$NON-NLS-1$
+ public static final String COL_VALUE = "VALUE"; //$NON-NLS-1$
/**
* All columns
@@ -33,7 +33,7 @@ public class SequencerColumnPresentation extends AbstractColumnPresentation {
/**
* Column presentation ID.
*/
- public static final String ID = "org.eclipse.debug.examples.ui.midi.columnPresentation";
+ public static final String ID = "org.eclipse.debug.examples.ui.midi.columnPresentation"; //$NON-NLS-1$
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#getAvailableColumns()
@@ -47,12 +47,12 @@ public class SequencerColumnPresentation extends AbstractColumnPresentation {
*/
public String getHeader(String id) {
if (COL_NAME.equals(id)) {
- return "Control";
+ return "Control"; //$NON-NLS-1$
}
if (COL_VALUE.equals(id)) {
- return "Value";
+ return "Value"; //$NON-NLS-1$
}
- return "";
+ return ""; //$NON-NLS-1$
}
/* (non-Javadoc)
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackColumnPresentation.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackColumnPresentation.java
index 05713db26..a24ce8c19 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackColumnPresentation.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackColumnPresentation.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -22,10 +22,10 @@ public class TrackColumnPresentation extends AbstractColumnPresentation {
/**
* Column identifiers
*/
- public static final String COL_TICK = "TICK";
- public static final String COL_BYTES = "BYTES";
- public static final String COL_COMMAND = "COMMAND";
- public static final String COL_CHANNEL = "CHANNEL";
+ public static final String COL_TICK = "TICK"; //$NON-NLS-1$
+ public static final String COL_BYTES = "BYTES"; //$NON-NLS-1$
+ public static final String COL_COMMAND = "COMMAND"; //$NON-NLS-1$
+ public static final String COL_CHANNEL = "CHANNEL"; //$NON-NLS-1$
/**
* All columns
@@ -40,7 +40,7 @@ public class TrackColumnPresentation extends AbstractColumnPresentation {
/**
* Column presentation ID.
*/
- public static final String ID = "org.eclipse.debug.examples.ui.midi.trackColumns";
+ public static final String ID = "org.eclipse.debug.examples.ui.midi.trackColumns"; //$NON-NLS-1$
/* (non-Javadoc)
* @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation#getAvailableColumns()
@@ -54,18 +54,18 @@ public class TrackColumnPresentation extends AbstractColumnPresentation {
*/
public String getHeader(String id) {
if (COL_TICK.equals(id)) {
- return "Tick";
+ return "Tick"; //$NON-NLS-1$
}
if (COL_BYTES.equals(id)) {
- return "Bytes";
+ return "Bytes"; //$NON-NLS-1$
}
if (COL_CHANNEL.equals(id)) {
- return "Channel";
+ return "Channel"; //$NON-NLS-1$
}
if (COL_COMMAND.equals(id)) {
- return "Command";
+ return "Command"; //$NON-NLS-1$
}
- return "";
+ return ""; //$NON-NLS-1$
}
/* (non-Javadoc)
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackLabelProvider.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackLabelProvider.java
index fa8f891fb..817ebb5be 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackLabelProvider.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/adapters/TrackLabelProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -39,11 +39,11 @@ public class TrackLabelProvider extends ElementLabelProvider {
}
}
StringBuffer buf = new StringBuffer();
- buf.append("Track ");
+ buf.append("Track "); //$NON-NLS-1$
buf.append(i);
- buf.append(" [");
+ buf.append(" ["); //$NON-NLS-1$
buf.append(track.size());
- buf.append(" events]");
+ buf.append(" events]"); //$NON-NLS-1$
return buf.toString();
}
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ClockSliderDetailPane.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ClockSliderDetailPane.java
index 234618f4a..d80481839 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ClockSliderDetailPane.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ClockSliderDetailPane.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -77,7 +77,7 @@ public class ClockSliderDetailPane implements IDetailPane {
* @see org.eclipse.debug.ui.IDetailPane#getDescription()
*/
public String getDescription() {
- return "Location (seconds)";
+ return "Location (seconds)"; //$NON-NLS-1$
}
/* (non-Javadoc)
@@ -91,7 +91,7 @@ public class ClockSliderDetailPane implements IDetailPane {
* @see org.eclipse.debug.ui.IDetailPane#getName()
*/
public String getName() {
- return "Clock Slider (seconds)";
+ return "Clock Slider (seconds)"; //$NON-NLS-1$
}
/* (non-Javadoc)
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java
index 10353fd57..fda22c034 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/ControlDetailPaneFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -29,12 +29,12 @@ public class ControlDetailPaneFactory implements IDetailPaneFactory {
/**
* Identifier for the tempo slider detail pane
*/
- public static final String ID_TEMPO_SLIDER = "TEMPO_SLIDER";
+ public static final String ID_TEMPO_SLIDER = "TEMPO_SLIDER"; //$NON-NLS-1$
/**
* Identifier for the clock slider detail pane
*/
- public static final String ID_CLOCK_SLIDER = "CLOCK_SLIDER";
+ public static final String ID_CLOCK_SLIDER = "CLOCK_SLIDER"; //$NON-NLS-1$
/* (non-Javadoc)
* @see org.eclipse.debug.ui.IDetailPaneFactory#createDetailPane(java.lang.String)
@@ -70,10 +70,10 @@ public class ControlDetailPaneFactory implements IDetailPaneFactory {
*/
public String getDetailPaneDescription(String paneID) {
if (ID_TEMPO_SLIDER.equals(paneID)) {
- return "Tempo Slider";
+ return "Tempo Slider"; //$NON-NLS-1$
}
if (ID_CLOCK_SLIDER.equals(paneID)) {
- return "Clock Slider";
+ return "Clock Slider"; //$NON-NLS-1$
}
return null;
}
@@ -83,10 +83,10 @@ public class ControlDetailPaneFactory implements IDetailPaneFactory {
*/
public String getDetailPaneName(String paneID) {
if (ID_TEMPO_SLIDER.equals(paneID)) {
- return "Tempo Slider";
+ return "Tempo Slider"; //$NON-NLS-1$
}
if (ID_CLOCK_SLIDER.equals(paneID)) {
- return "Clock Slider";
+ return "Clock Slider"; //$NON-NLS-1$
}
return null;
}
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/TempoSliderDetailPane.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/TempoSliderDetailPane.java
index d5e1c7bb7..ccce38df3 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/TempoSliderDetailPane.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/detailpanes/TempoSliderDetailPane.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -74,7 +74,7 @@ public class TempoSliderDetailPane implements IDetailPane {
* @see org.eclipse.debug.ui.IDetailPane#getDescription()
*/
public String getDescription() {
- return "Tempo (beats per minute)";
+ return "Tempo (beats per minute)"; //$NON-NLS-1$
}
/* (non-Javadoc)
@@ -88,7 +88,7 @@ public class TempoSliderDetailPane implements IDetailPane {
* @see org.eclipse.debug.ui.IDetailPane#getName()
*/
public String getName() {
- return "Tempo Slider (BPM)";
+ return "Tempo Slider (BPM)"; //$NON-NLS-1$
}
/* (non-Javadoc)
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/ExampleLaunchStatusHandler.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/ExampleLaunchStatusHandler.java
index 16562cdd8..2af3957ef 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/ExampleLaunchStatusHandler.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/ExampleLaunchStatusHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010 IBM Corporation and others.
+ * Copyright (c) 2010, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -26,7 +26,7 @@ public class ExampleLaunchStatusHandler implements IStatusHandler {
if (source instanceof ILaunchConfigurationDialog) {
return null;
}
- throw new CoreException(new Status(IStatus.ERROR, "org.eclipse.debug.examples.ui", "'source' should be an instanceof ILaunchConfigrationDialog"));
+ throw new CoreException(new Status(IStatus.ERROR, "org.eclipse.debug.examples.ui", "'source' should be an instanceof ILaunchConfigrationDialog")); //$NON-NLS-1$ //$NON-NLS-2$
}
}
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
index 3421dd217..987b12bb4 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiLaunchShortcut.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2009 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -121,8 +121,8 @@ public class MidiLaunchShortcut implements ILaunchShortcut {
IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();
ElementListSelectionDialog dialog= new ElementListSelectionDialog(DebugUIPlugin.getActiveWorkbenchShell(), labelProvider);
dialog.setElements(configList.toArray());
- dialog.setTitle("Select Configuraiton");
- dialog.setMessage("&Select an existing configuration:");
+ dialog.setTitle("Select Configuraiton"); //$NON-NLS-1$
+ dialog.setMessage("&Select an existing configuration:"); //$NON-NLS-1$
dialog.setMultipleSelection(false);
int result = dialog.open();
labelProvider.dispose();
@@ -144,7 +144,7 @@ public class MidiLaunchShortcut implements ILaunchShortcut {
try {
ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, getLaunchManager().
generateLaunchConfigurationName(
- "[" + file.getProject().getName() + "] " + file.getName()));
+"[" + file.getProject().getName() + "] " + file.getName())); //$NON-NLS-1$ //$NON-NLS-2$
workingCopy.setAttribute(MidiLaunchDelegate.ATTR_MIDI_FILE, file.getFullPath().toString());
workingCopy.setMappedResources(new IResource[]{file});
return workingCopy.doSave();
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiMainTab.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiMainTab.java
index d063008b4..b7d2bd092 100644
--- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiMainTab.java
+++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/midi/launcher/MidiMainTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -71,7 +71,7 @@ public class MidiMainTab extends AbstractLaunchConfigurationTab {
createVerticalSpacer(comp, 3);
Label programLabel = new Label(comp, SWT.NONE);
- programLabel.setText("&Midi File:");
+ programLabel.setText("&Midi File:"); //$NON-NLS-1$
GridData gd = new GridData(GridData.BEGINNING);
programLabel.setLayoutData(gd);
programLabel.setFont(font);
@@ -98,13 +98,13 @@ public class MidiMainTab extends AbstractLaunchConfigurationTab {
gd.horizontalSpan = 3;
Group test = new Group(comp, SWT.NONE);
- test.setText("Exceptions");
+ test.setText("Exceptions"); //$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = 3;
test.setLayoutData(gd);
test.setLayout(new GridLayout());
fExceptions = new Button(test, SWT.CHECK);
- fExceptions.setText("&Throw an exception during launch for testing purposes");
+ fExceptions.setText("&Throw an exception during launch for testing purposes"); //$NON-NLS-1$
gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = 3;
fExceptions.setLayoutData(gd);
@@ -116,7 +116,7 @@ public class MidiMainTab extends AbstractLaunchConfigurationTab {
}
});
fHandled = new Button(test, SWT.RADIO);
- fHandled.setText("Throw a handled e&xception during launch to re-open launch dialog");
+ fHandled.setText("Throw a handled e&xception during launch to re-open launch dialog"); //$NON-NLS-1$
SelectionAdapter sa = new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
updateLaunchConfigurationDialog();
@@ -124,7 +124,7 @@ public class MidiMainTab extends AbstractLaunchConfigurationTab {
};
fHandled.addSelectionListener(sa);
fUnhandled = new Button(test, SWT.RADIO);
- fUnhandled.setText("Throw an &unhandled exception during launch to open error dialog");
+ fUnhandled.setText("Throw an &unhandled exception during launch to open error dialog"); //$NON-NLS-1$
fUnhandled.addSelectionListener(sa);
}
@@ -133,8 +133,8 @@ public class MidiMainTab extends AbstractLaunchConfigurationTab {
*/
protected void browseMidiFiles() {
ResourceListSelectionDialog dialog = new ResourceListSelectionDialog(getShell(), ResourcesPlugin.getWorkspace().getRoot(), IResource.FILE);
- dialog.setTitle("MIDI File");
- dialog.setMessage("Select MIDI File");
+ dialog.setTitle("MIDI File"); //$NON-NLS-1$
+ dialog.setMessage("Select MIDI File"); //$NON-NLS-1$
if (dialog.open() == Window.OK) {
Object[] files = dialog.getResult();
IFile file = (IFile) files[0];
@@ -206,7 +206,7 @@ public class MidiMainTab extends AbstractLaunchConfigurationTab {
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
*/
public String getName() {
- return "Main";
+ return "Main"; //$NON-NLS-1$
}
/* (non-Javadoc)
@@ -219,11 +219,11 @@ public class MidiMainTab extends AbstractLaunchConfigurationTab {
if (text.length() > 0) {
IPath path = new Path(text);
if (ResourcesPlugin.getWorkspace().getRoot().findMember(path) == null) {
- setErrorMessage("File does not exist");
+ setErrorMessage("File does not exist"); //$NON-NLS-1$
return false;
}
} else {
- setMessage("Select a MIDI file");
+ setMessage("Select a MIDI file"); //$NON-NLS-1$
}
return true;
}

Back to the top