diff options
author | Lars Vogel | 2017-09-08 08:02:53 +0000 |
---|---|---|
committer | Lars Vogel | 2017-09-08 10:37:15 +0000 |
commit | dbf66877f4ccb03b6bc5c5c25ad21445ad964789 (patch) | |
tree | dde8ecd634b4fae091334dac8562eabcd8df1cf7 /org.eclipse.debug.examples.core | |
parent | b3c56b7f12d085ef7a40b169876746c16871d8c6 (diff) | |
download | eclipse.platform.debug-dbf66877f4ccb03b6bc5c5c25ad21445ad964789.tar.gz eclipse.platform.debug-dbf66877f4ccb03b6bc5c5c25ad21445ad964789.tar.xz eclipse.platform.debug-dbf66877f4ccb03b6bc5c5c25ad21445ad964789.zip |
Bug 522027 - Remove trailing whitespace from
org.eclipse.debug.examples.core
Change-Id: Ie0df8a1b5dd22e1de49e5bc1de537e4a3dda2373
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.debug.examples.core')
69 files changed, 479 insertions, 479 deletions
diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/ClockControl.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/ClockControl.java index 242236705..7f00c883a 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/ClockControl.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/ClockControl.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -18,7 +18,7 @@ import org.eclipse.debug.examples.core.pda.DebugCorePlugin; /** * Controls the location of the sequencer in microseconds. - * + * * @since 1.0 */ public class ClockControl extends TimeControl { @@ -29,7 +29,7 @@ public class ClockControl extends TimeControl { public ClockControl(MidiLaunch launch) { super("Time" , launch); //$NON-NLS-1$ } - + /* (non-Javadoc) * @see org.eclipse.debug.examples.core.midi.launcher.TimeControl#getTimeValue() */ @@ -73,13 +73,13 @@ public class ClockControl extends TimeControl { return e.getStatus(); } } - + /** * Returns a float for the string. - * + * * @param value string * @return float - * @throws CoreException if not a valid value + * @throws CoreException if not a valid value */ protected long getLong(String value) throws CoreException { try { @@ -92,6 +92,6 @@ public class ClockControl extends TimeControl { } return 0L; } - + } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/LengthControl.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/LengthControl.java index 3ab8d18c4..173dad87c 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/LengthControl.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/LengthControl.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -13,7 +13,7 @@ package org.eclipse.debug.examples.core.midi.launcher; /** * Describes the length of the sequence in microseconds. - * + * * @since 1.0 */ public class LengthControl extends TimeControl { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/MidiLaunch.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/MidiLaunch.java index 674e2fc49..fd637904d 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/MidiLaunch.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/MidiLaunch.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -22,16 +22,16 @@ import org.eclipse.debug.core.model.ISuspendResume; /** * A launch containing a MIDI sequencer. - * + * * @since 1.0 */ public class MidiLaunch extends Launch implements ISuspendResume { - + /** * MIDI Sequencer */ private Sequencer fSequencer; - + /** * MIDI file format */ @@ -39,24 +39,24 @@ public class MidiLaunch extends Launch implements ISuspendResume { /** * Constructs a new MIDI launch. - * + * * @param launchConfiguration configuration to play * @param mode mode to play in */ public MidiLaunch(ILaunchConfiguration launchConfiguration, String mode) { super(launchConfiguration, mode, null); } - + /** * Sets the sequencer used to play MIDI files. - * + * * @param sequencer */ public void setSequencer(Sequencer sequencer) { fSequencer = sequencer; fireChanged(); } - + /** * Sets the format of the sequence * @param format @@ -67,7 +67,7 @@ public class MidiLaunch extends Launch implements ISuspendResume { /** * Returns the file format of the sequence. - * + * * @return file format */ public MidiFileFormat getFormat() { @@ -75,7 +75,7 @@ public class MidiLaunch extends Launch implements ISuspendResume { } /** * Returns the sequencer used to play MIDI files. - * + * * @return the sequencer used to play MIDI files */ public Sequencer getSequencer() { @@ -161,13 +161,13 @@ public class MidiLaunch extends Launch implements ISuspendResume { fireChanged(); fireEvent(new DebugEvent(getSequencer(), DebugEvent.SUSPEND, DebugEvent.CLIENT_REQUEST)); } - + /** * Fires a debug event. - * + * * @param event debug event to fire */ protected void fireEvent(DebugEvent event) { DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {event}); - } + } } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/MidiLaunchDelegate.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/MidiLaunchDelegate.java index 65123a55c..fdad7c253 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/MidiLaunchDelegate.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/MidiLaunchDelegate.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -35,7 +35,7 @@ import org.eclipse.debug.examples.core.pda.DebugCorePlugin; /** * Creates and starts a MIDI sequencer. - * + * * @since 1.0 */ public class MidiLaunchDelegate extends LaunchConfigurationDelegate { @@ -45,25 +45,25 @@ public class MidiLaunchDelegate extends LaunchConfigurationDelegate { * (value <code>midi.launchType</code>) */ public static final String ID_MIDI_LAUNCH_CONFIGURATION_TYPE = "midi.launchType"; //$NON-NLS-1$ - + /** * Launch configuration attribute for the MIDI file to play * (value <code>midi.file</code>) */ public static final String ATTR_MIDI_FILE = "midi.file"; //$NON-NLS-1$ - + /** * Launch configuration attribute for the MIDI launcher. Specifies whether to throw * an exception when present. Value is one of <code>HANDLED</code> or <code>UNHANDLED</code>. */ public static final String ATTR_THROW_EXCEPTION = "throw.exception"; //$NON-NLS-1$ - + /** * Possible values for the <code>ATTR_THROW_EXCEPTION</code>. */ public static final String HANDLED = "HANDLED"; //$NON-NLS-1$ public static final String UNHANDLED = "UNHANDLED"; //$NON-NLS-1$ - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.ILaunchConfigurationDelegate#launch(org.eclipse.debug.core.ILaunchConfiguration, java.lang.String, org.eclipse.debug.core.ILaunch, org.eclipse.core.runtime.IProgressMonitor) */ @@ -124,7 +124,7 @@ public class MidiLaunchDelegate extends LaunchConfigurationDelegate { /** * Throws an exception with a new status containing the given * message and optional exception. - * + * * @param message error message * @param e underlying exception * @throws CoreException @@ -132,7 +132,7 @@ public class MidiLaunchDelegate extends LaunchConfigurationDelegate { private void abort(String message, Throwable e) throws CoreException { throw new CoreException(new Status(IStatus.ERROR, DebugCorePlugin.PLUGIN_ID, 0, message, e)); } - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.ILaunchConfigurationDelegate2#getLaunch(org.eclipse.debug.core.ILaunchConfiguration, java.lang.String) */ @@ -148,7 +148,7 @@ public class MidiLaunchDelegate extends LaunchConfigurationDelegate { public boolean buildForLaunch(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException { return false; } - - + + } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/SequencerControl.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/SequencerControl.java index c5b51ea6a..11fa41510 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/SequencerControl.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/SequencerControl.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -18,21 +18,21 @@ import org.eclipse.debug.core.DebugPlugin; /** * Controls some aspect of a MIDI sequencer. - * + * * @since 1.0 */ public abstract class SequencerControl { - + /** * The launch */ private MidiLaunch fLaunch; - - /** + + /** * Control name */ private String fName; - + /** * Constructs a control with the given name. */ @@ -40,10 +40,10 @@ public abstract class SequencerControl { fName = name; fLaunch = launch; } - + /** * Returns the launch this control is associated with. - * + * * @return MIDI launch */ public MidiLaunch getLaunch() { @@ -52,64 +52,64 @@ public abstract class SequencerControl { /** * Returns the sequencer associated with this control. - * + * * @return associated sequencer */ public Sequencer getSequencer() { return fLaunch.getSequencer(); } - + /** * Returns the name of this control. - * + * * @return control name */ public String getName() { return fName; } - + /** * Returns this controls current value. - * + * * @return current value */ public abstract String getValue(); - + /** * Whether this contol's value can be modified. - * + * * @return Whether this contol's value can be modified */ public abstract boolean isEditable(); - + /** * Returns a status indicating if the given value is * a valid value for this control to accept. - * + * * @param value new value * @return whether the value is valid */ public abstract IStatus validateValue(String value); - + /** * Sets the value of this control to the given value * and returns a status indicating if the value was * successfully set. - * + * * @param newValue value * @return whether successful */ public abstract IStatus setValue(String newValue); - + /** * Fires a debug event. - * + * * @param event debug event to fire */ public void fireEvent(DebugEvent event) { DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {event}); - } - + } + /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -118,7 +118,7 @@ public abstract class SequencerControl { if (obj != null) { if (getClass().equals(obj.getClass())) { return ((SequencerControl)obj).getSequencer().equals(getSequencer()); - + } } return false; @@ -130,5 +130,5 @@ public abstract class SequencerControl { @Override public int hashCode() { return getSequencer().hashCode() + getClass().hashCode(); - } + } } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/TempoControl.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/TempoControl.java index 2980adc83..e16f002d7 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/TempoControl.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/TempoControl.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -18,7 +18,7 @@ import org.eclipse.debug.examples.core.pda.DebugCorePlugin; /** * Controls the tempo of a sequencer. - * + * * @since 1.0 */ public class TempoControl extends SequencerControl { @@ -77,14 +77,14 @@ public class TempoControl extends SequencerControl { /** * Returns a float for the string. - * + * * @param value string * @return float - * @throws CoreException if not a valid value + * @throws CoreException if not a valid value */ protected float getFloat(String value) throws CoreException { try { - return Float.parseFloat(value); + return Float.parseFloat(value); } catch (NumberFormatException e) { throw new CoreException(new Status(IStatus.ERROR, DebugCorePlugin.PLUGIN_ID, "Tempo must be a number", e)); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/TimeControl.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/TimeControl.java index 4bcb85ac6..cbc4c4cca 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/TimeControl.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/midi/launcher/TimeControl.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -14,7 +14,7 @@ import org.eclipse.core.runtime.IStatus; /** * Displays a time value based on underlying microsecond value - * + * * @since 1.0 */ public abstract class TimeControl extends SequencerControl { @@ -22,14 +22,14 @@ public abstract class TimeControl extends SequencerControl { /** * Constructs a time control with the given name for the * given launch. - * + * * @param name * @param launch */ public TimeControl(String name, MidiLaunch launch) { super(name, launch); } - + /* (non-Javadoc) * @see org.eclipse.debug.examples.core.midi.launcher.SequencerControl#getValue() */ @@ -57,10 +57,10 @@ public abstract class TimeControl extends SequencerControl { } return clock.toString(); } - + /** * Provided by subclasses for the control. - * + * * @return time in microseconds */ protected abstract long getTimeValue(); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/DebugCorePlugin.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/DebugCorePlugin.java index 759f1088a..870d8870d 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/DebugCorePlugin.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/DebugCorePlugin.java @@ -30,13 +30,13 @@ public class DebugCorePlugin extends Plugin { private static DebugCorePlugin plugin; //Resource bundle. private ResourceBundle resourceBundle; - + /** - * Unique identifier for the PDA debug model (value + * Unique identifier for the PDA debug model (value * <code>pda.debugModel</code>). */ public static final String ID_PDA_DEBUG_MODEL = "pda.debugModel"; //$NON-NLS-1$ - + /** * Name of the string substitution variable that resolves to the * location of a local Perl executable (value <code>perlExecutable</code>). @@ -45,21 +45,21 @@ public class DebugCorePlugin extends Plugin { /** * Launch configuration attribute key. Value is a path to a Perl * program. The path is a string representing a full path - * to a Perl program in the workspace. + * to a Perl program in the workspace. */ public static final String ATTR_PDA_PROGRAM = ID_PDA_DEBUG_MODEL + ".ATTR_PDA_PROGRAM"; //$NON-NLS-1$ - + /** * Identifier for the PDA launch configuration type * (value <code>pda.launchType</code>) */ public static final String ID_PDA_LAUNCH_CONFIGURATION_TYPE = "pda.launchType"; //$NON-NLS-1$ - + /** * Plug-in identifier. */ public static final String PLUGIN_ID = "org.eclipse.debug.examples.core"; //$NON-NLS-1$ - + /** * The constructor. */ @@ -118,7 +118,7 @@ public class DebugCorePlugin extends Plugin { } return resourceBundle; } - + /** * Return a <code>java.io.File</code> object that corresponds to the specified * <code>IPath</code> in the plug-in directory, or <code>null</code> if none. @@ -131,5 +131,5 @@ public class DebugCorePlugin extends Plugin { } catch (IOException ioe) { return null; } - } + } } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDALineBreakpoint.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDALineBreakpoint.java index 325402c7f..99775760d 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDALineBreakpoint.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDALineBreakpoint.java @@ -35,10 +35,10 @@ import org.eclipse.debug.examples.core.pda.protocol.PDAVMSuspendedEvent; * PDA line breakpoint */ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListener { - + // target currently installed in private PDADebugTarget fTarget; - + /** * Default constructor is required for the breakpoint manager * to re-create persisted breakpoints. After instantiating a breakpoint, @@ -47,13 +47,13 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen */ public PDALineBreakpoint() { } - + /** * Constructs a line breakpoint on the given resource at the given * line number. The line number is 1-based (i.e. the first line of a * file is line number 1). The PDA VM uses 0-based line numbers, * so this line number translation is done at breakpoint install time. - * + * * @param resource file on which to set the breakpoint * @param lineNumber 1-based line number of the breakpoint * @throws CoreException if unable to create the breakpoint @@ -72,7 +72,7 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen }; run(getMarkerRule(resource), runnable); } - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.IBreakpoint#getModelIdentifier() */ @@ -80,21 +80,21 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen public String getModelIdentifier() { return DebugCorePlugin.ID_PDA_DEBUG_MODEL; } - + /** * Returns whether this breakpoint is a run-to-line breakpoint - * + * * @return whether this breakpoint is a run-to-line breakpoint */ public boolean isRunToLineBreakpoint() { return false; } - + /** * Installs this breakpoint in the given interprettor. * Registeres this breakpoint as an event listener in the * given target and creates the breakpoint specific request. - * + * * @param target PDA interprettor * @throws CoreException if installation fails */ @@ -103,26 +103,26 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen target.addEventListener(this); createRequest(target); } - + /** * Create the breakpoint specific request in the target. Subclasses * should override. - * + * * @param target PDA interprettor * @throws CoreException if request creation fails */ protected void createRequest(PDADebugTarget target) throws CoreException { //#ifdef ex3 -//# // TODO: Exercise 3 - create breakpoint request in interpreter +//# // TODO: Exercise 3 - create breakpoint request in interpreter //#else target.sendCommand(new PDASetBreakpointCommand((getLineNumber() - 1), false)); //#endif } - + /** * Removes this breakpoint's event request from the target. Subclasses * should override. - * + * * @param target PDA interprettor * @throws CoreException if clearing the request fails */ @@ -133,12 +133,12 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen target.sendCommand(new PDAClearBreakpointCommand((getLineNumber() - 1))); //#endif } - + /** * Removes this breakpoint from the given interprettor. * Removes this breakpoint as an event listener and clears * the request for the interprettor. - * + * * @param target PDA interprettor * @throws CoreException if removal fails */ @@ -146,18 +146,18 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen target.removeEventListener(this); clearRequest(target); fTarget = null; - + } - + /** * Returns the target this breakpoint is installed in or <code>null</code>. - * + * * @return the target this breakpoint is installed in or <code>null</code> */ protected PDADebugTarget getDebugTarget() { return fTarget; } - + /** * Notify's the PDA interprettor that this breakpoint has been hit. */ @@ -171,9 +171,9 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen } /* (non-Javadoc) - * + * * Subclasses should override to handle their breakpoint specific event. - * + * * @see org.eclipse.debug.examples.core.pda.model.IPDAEventListener#handleEvent(java.lang.String) */ @Override @@ -185,10 +185,10 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen } } } - + /** * Determines if this breakpoint was hit and notifies the thread. - * + * * @param event breakpoint event */ private void handleHit(PDARunControlEvent event) { @@ -205,5 +205,5 @@ public class PDALineBreakpoint extends LineBreakpoint implements IPDAEventListen } catch (CoreException e) { } } - } + } } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDARunToLineBreakpoint.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDARunToLineBreakpoint.java index 2d406d9d2..584965ecf 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDARunToLineBreakpoint.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDARunToLineBreakpoint.java @@ -24,12 +24,12 @@ import org.eclipse.debug.core.model.IBreakpoint; * A run to line breakpoint. */ public class PDARunToLineBreakpoint extends PDALineBreakpoint { - + private IFile fSourceFile; - + /** * Constructs a run-to-line breakpoint in the given PDA program. - * + * * @param resource PDA source file * @param lineNumber line to run to * @exception DebugException if unable to create the breakpoint @@ -48,22 +48,22 @@ public class PDARunToLineBreakpoint extends PDALineBreakpoint { fSourceFile = resource; } }; - run(getMarkerRule(resource), runnable); + run(getMarkerRule(resource), runnable); } - + /** * Returns whether this breakpoint is a run-to-line breakpoint - * + * * @return whether this breakpoint is a run-to-line breakpoint */ @Override public boolean isRunToLineBreakpoint() { return true; } - + /** * Returns the source file this breakpoint is contained in. - * + * * @return the source file this breakpoint is contained in */ public IFile getSourceFile() { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDAWatchpoint.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDAWatchpoint.java index ce7c15226..b81992bed 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDAWatchpoint.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/breakpoints/PDAWatchpoint.java @@ -31,10 +31,10 @@ import org.eclipse.debug.examples.core.pda.protocol.PDAWatchCommand; * A watchpoint. */ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { - + // 'read' or 'write' depending on what caused the last suspend for this watchpoint private String fLastSuspendType; - + // marker attributes public static final String ACCESS = "ACCESS"; //$NON-NLS-1$ public static final String MODIFICATION = "MODIFICATION"; //$NON-NLS-1$ @@ -54,7 +54,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { * line number. The line number is 1-based (i.e. the first line of a * file is line number 1). The PDA VM uses 0-based line numbers, * so this line number translation is done at breakpoint install time. - * + * * @param resource file on which to set the breakpoint * @param lineNumber 1-based line number of the breakpoint * @param functionName function name the variable is defined in @@ -79,7 +79,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { } }; run(getMarkerRule(resource), runnable); - } + } /* (non-Javadoc) * @see org.eclipse.debug.core.model.IWatchpoint#isAccess() @@ -110,7 +110,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { */ @Override public void setModification(boolean modification) throws CoreException { - setAttribute(MODIFICATION, modification); + setAttribute(MODIFICATION, modification); } /* (non-Javadoc) @@ -128,10 +128,10 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { public boolean supportsModification() { return true; } - + /** * Sets the variable and function names the watchpoint is set on. - * + * * @param functionName function name * @param variableName variable name * @throws CoreException if an exception occurrs setting marker attribtues @@ -140,10 +140,10 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { setAttribute(VAR_NAME, variableName); setAttribute(FUNCTION_NAME, functionName); } - + /** * Returns the name of the variable this watchpoint is set on. - * + * * @return the name of the variable this watchpoint is set on * @throws CoreException if unable to access the attribute */ @@ -153,32 +153,32 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { /** * Returns the name of the function the variable associted with this watchpoint is defined in. - * + * * @return the name of the function the variable associted with this watchpoint is defined in * @throws CoreException if unable to access the attribute */ public String getFunctionName() throws CoreException { return getMarker().getAttribute(FUNCTION_NAME, (String)null); - } - + } + /** * Sets the type of event that causes the last suspend event. - * + * * @param description one of 'read' or 'write' */ public void setSuspendType(String description) { fLastSuspendType = description; } - + /** * Returns the type of event that caused the last suspend. - * + * * @return 'read', 'write', or <code>null</code> if undefined */ public String getSuspendType() { return fLastSuspendType; } - + /* (non-Javadoc) * @see org.eclipse.debug.examples.core.pda.breakpoints.PDALineBreakpoint#createRequest(org.eclipse.debug.examples.core.pda.model.PDADebugTarget) */ @@ -190,10 +190,10 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { } if (isModification()) { flag = flag | 2; - } + } target.sendCommand(new PDAWatchCommand(getFunctionName(), getVariableName(), flag)); } - + /* (non-Javadoc) * @see org.eclipse.debug.examples.core.pda.breakpoints.PDALineBreakpoint#clearRequest(org.eclipse.debug.examples.core.pda.model.PDADebugTarget) */ @@ -201,7 +201,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { protected void clearRequest(PDADebugTarget target) throws CoreException { target.sendCommand(new PDAWatchCommand(getFunctionName(), getVariableName(), 0)); } - + /* (non-Javadoc) * @see org.eclipse.debug.examples.core.pda.model.IPDAEventListener#handleEvent(java.lang.String) */ @@ -214,10 +214,10 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { } } } - + /** * Determines if this breakpoint was hit and notifies the thread. - * + * * @param event breakpoint event */ private void handleHit(PDARunControlEvent event) { @@ -237,5 +237,5 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint { } } } - } + } } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/IPDAEventListener.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/IPDAEventListener.java index 257c4185e..a076a450b 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/IPDAEventListener.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/IPDAEventListener.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2009 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -17,7 +17,7 @@ import org.eclipse.debug.examples.core.pda.protocol.PDAEvent; /** * Listeners are notified of events occurring in a PDA program * being interpreted. - * + * * @see org.eclipse.debug.examples.core.protocol.PDAVMStarted * @see org.eclipse.debug.examples.core.protocol.PDAVMTerminated * @see org.eclipse.debug.examples.core.protocol.PDAVMSuspneded @@ -32,11 +32,11 @@ import org.eclipse.debug.examples.core.pda.protocol.PDAEvent; * @see org.eclipse.debug.examples.core.pda.protocol.PDAEvalResultEvent */ public interface IPDAEventListener { - + /** * Notification the given event occurred in the target program * being interpreted. - * + * * @param event the event */ public void handleEvent(PDAEvent event); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAArray.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAArray.java index effe377c2..cd0473edf 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAArray.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAArray.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2013 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -20,8 +20,8 @@ public class PDAArray extends PDAValue { /** * An array splits a value into its words * - * @param value existing value - * @throws DebugException + * @param value existing value + * @throws DebugException */ public PDAArray(PDAValue value) throws DebugException { super(value.getVariable(), value.getValueString()); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAArrayEntry.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAArrayEntry.java index 2c9dd55cb..234d76ed8 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAArrayEntry.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAArrayEntry.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2013 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -17,13 +17,13 @@ import org.eclipse.debug.core.model.IValue; import org.eclipse.debug.core.model.IVariable; public class PDAArrayEntry extends PDADebugElement implements IVariable { - + private IValue fValue; private int fIndex; /** * Constructs a new array entry - * + * * @param target debug target * @param index index in the array * @param value value of the entry diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDADebugElement.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDADebugElement.java index f07fac187..f0c60b11d 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDADebugElement.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDADebugElement.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2009 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -29,7 +29,7 @@ public class PDADebugElement extends DebugElement { /** * Constructs a new debug element in the given target. - * + * * @param target debug target */ public PDADebugElement(IDebugTarget target) { @@ -43,68 +43,68 @@ public class PDADebugElement extends DebugElement { public String getModelIdentifier() { return DebugCorePlugin.ID_PDA_DEBUG_MODEL; } - + /** * Sends a request to the PDA interpreter, waits for and returns the reply. - * + * * @param request command * @return reply * @throws DebugException if the request fails - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDATerminateCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAVMSuspendCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAVMResumeCommand - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDASuspendCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAResumeCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAStepCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDADropFrameCommand - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDASetBreakpointCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAClearBreakpointCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAWatchCommand - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDADataCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDASetDataCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAPopDataCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAPushDataCommand - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDAEvalCommand - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDAEventStopCommand - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDAStackCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAStackDepthCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAFrameCommand - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDASetVarCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAVarCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDAChildrenCommand - * + * * @see org.eclipse.debug.examples.core.pda.protocol.PDAGroupsCommand * @see org.eclipse.debug.examples.core.pda.protocol.PDARegistersCommand - * + * * @since 3.5 - */ + */ public PDACommandResult sendCommand(PDACommand command) throws DebugException { return getPDADebugTarget().sendCommand(command); } - + /** * Returns the debug target as a PDA target. - * + * * @return PDA debug target */ protected PDADebugTarget getPDADebugTarget() { return (PDADebugTarget) getDebugTarget(); } - + /** * Returns the breakpoint manager - * + * * @return the breakpoint manager */ protected IBreakpointManager getBreakpointManager() { return DebugPlugin.getDefault().getBreakpointManager(); - } + } } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java index 394c7c1da..c72c040b2 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java @@ -18,13 +18,13 @@ import org.eclipse.debug.core.model.IMemoryBlock; * Example memory block */ public class PDAMemoryBlock extends PDADebugElement implements IMemoryBlock { - + /** * The bytes */ private byte[] fBytes = null; private long fStart, fLength; - + /** * Constructs a new memory block */ diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAStackFrame.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAStackFrame.java index 24dfefcd2..a74b7f0b6 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAStackFrame.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAStackFrame.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2009 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -24,17 +24,17 @@ import org.eclipse.debug.examples.core.pda.protocol.PDAFrameData; * PDA stack frame. */ public class PDAStackFrame extends PDADebugElement implements IStackFrame { - + private PDAThread fThread; private String fName; private int fPC; private IPath fFilePath; private int fId; - + /** * Constructs a stack frame in the given thread with the given * frame data. - * + * * @param thread * @param data frame data * @param id stack frame id (0 is the bottom of the stack) @@ -45,10 +45,10 @@ public class PDAStackFrame extends PDADebugElement implements IStackFrame { fThread = thread; init(data); } - + /** * Initializes this frame based on its data - * + * * @param data */ private void init(PDAFrameData data) { @@ -61,7 +61,7 @@ public class PDAStackFrame extends PDADebugElement implements IStackFrame { } fThread.setVariables(this, vars); } - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.IStackFrame#getThread() */ @@ -97,7 +97,7 @@ public class PDAStackFrame extends PDADebugElement implements IStackFrame { public int getCharStart() throws DebugException { return -1; } - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.IStackFrame#getCharEnd() */ @@ -231,11 +231,11 @@ public class PDAStackFrame extends PDADebugElement implements IStackFrame { public void terminate() throws DebugException { getThread().terminate(); } - + /** * Returns the name of the source file this stack frame is associated * with. - * + * * @return the name of the source file this stack frame is associated * with */ @@ -249,7 +249,7 @@ public class PDAStackFrame extends PDADebugElement implements IStackFrame { public boolean equals(Object obj) { if (obj instanceof PDAStackFrame) { PDAStackFrame sf = (PDAStackFrame)obj; - return sf.getThread().equals(getThread()) && + return sf.getThread().equals(getThread()) && sf.getSourceName().equals(getSourceName()) && sf.fId == fId; } @@ -262,25 +262,25 @@ public class PDAStackFrame extends PDADebugElement implements IStackFrame { public int hashCode() { return getSourceName().hashCode() + fId; } - + /** * Returns this stack frame's unique identifier within its thread - * + * * @return this stack frame's unique identifier within its thread */ protected int getIdentifier() { return fId; } - + /** * Returns the stack frame's thread's unique identifier - * + * * @return this stack frame's thread's unique identifier - * + * * @since 3.5 */ protected int getThreadIdentifier() { return fThread.getIdentifier(); } - + } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAStackValue.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAStackValue.java index 4fc8e5289..d0920b45a 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAStackValue.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAStackValue.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2009 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -24,10 +24,10 @@ public class PDAStackValue extends PDADebugElement implements IValue { final private PDAThread fThread; final private String fValue; final private int fIndex; - + /** * Constructs a value that appears on the data stack - * + * * @param target debug target * @param value value on the stack * @param index index on the stack @@ -38,11 +38,11 @@ public class PDAStackValue extends PDADebugElement implements IValue { fValue = value; fIndex = index; } - + public PDAThread getThread() { return fThread; } - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.IValue#getValueString() */ @@ -84,8 +84,8 @@ public class PDAStackValue extends PDADebugElement implements IValue { */ @Override public boolean equals(Object obj) { - return obj instanceof PDAStackValue && - ((PDAStackValue)obj).fValue.equals(fValue) && + return obj instanceof PDAStackValue && + ((PDAStackValue)obj).fValue.equals(fValue) && ((PDAStackValue)obj).fIndex == fIndex; } /* diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java index 620f7ac83..6559f2ccd 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAValue.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2013 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -22,16 +22,16 @@ import org.eclipse.debug.examples.core.pda.protocol.PDAListResult; * Value of a PDA variable. */ public class PDAValue extends PDADebugElement implements IValue { - + final private PDAVariable fVariable; final private String fValue; - + public PDAValue(PDAVariable variable, String value) { super(variable.getStackFrame().getPDADebugTarget()); fVariable = variable; fValue = value; } - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.IValue#getReferenceTypeName() */ @@ -66,7 +66,7 @@ public class PDAValue extends PDADebugElement implements IValue { PDAStackFrame frame = fVariable.getStackFrame(); PDAListResult result = (PDAListResult) sendCommand( new PDAChildrenCommand(frame.getThreadIdentifier(), frame.getIdentifier(), fVariable.getName()) ); - + IVariable[] children = new IVariable[result.fValues.length]; for(int i = 0; i < result.fValues.length; i++) { children[i] = new PDAVariable(frame, result.fValues[i]); @@ -81,8 +81,8 @@ public class PDAValue extends PDADebugElement implements IValue { if (getVariables().length != 0) { return true; } - // Value with multiple words can be show as an array using logical - // structures. If the value has multiple words, it needs to indicate + // Value with multiple words can be show as an array using logical + // structures. If the value has multiple words, it needs to indicate // that it has children even if logical structures are not turned on. return fValue.split("\\W+").length > 1; //$NON-NLS-1$ } @@ -102,12 +102,12 @@ public class PDAValue extends PDADebugElement implements IValue { public int hashCode() { return fValue.hashCode(); } - + /** * Returns the variable that this value was created for. - * + * * @return The variable that this value was created for. - * + * * @since 3.5 */ public PDAVariable getVariable() { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAVariable.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAVariable.java index 3745028e1..33e033602 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAVariable.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAVariable.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2013 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -25,15 +25,15 @@ import org.eclipse.debug.examples.core.pda.protocol.PDAVarCommand; * A variable in a PDA stack frame */ public class PDAVariable extends PDADebugElement implements IVariable { - + // name & stack frmae private String fName; private PDAStackFrame fFrame; - + /** * Constructs a variable contained in the given stack frame * with the given name. - * + * * @param frame owning stack frame * @param name variable name */ @@ -42,7 +42,7 @@ public class PDAVariable extends PDADebugElement implements IVariable { fFrame = frame; fName = name; } - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.IVariable#getValue() */ @@ -52,7 +52,7 @@ public class PDAVariable extends PDADebugElement implements IVariable { fFrame.getThreadIdentifier(), getStackFrame().getIdentifier(), getName())); return new PDAValue(this, result.fResponseText); } - + /* (non-Javadoc) * @see org.eclipse.debug.core.model.IVariable#getName() */ @@ -110,10 +110,10 @@ public class PDAVariable extends PDADebugElement implements IVariable { public boolean verifyValue(IValue value) throws DebugException { return false; } - + /** * Returns the stack frame owning this variable. - * + * * @return the stack frame owning this variable */ public PDAStackFrame getStackFrame() { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/WordStructureDelegate.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/WordStructureDelegate.java index 2d218e08f..583ecc1fd 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/WordStructureDelegate.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/WordStructureDelegate.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2013 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -46,7 +46,7 @@ public class WordStructureDelegate implements ILogicalStructureTypeDelegate { public IValue getLogicalStructure(IValue value) throws CoreException { //#ifdef ex6 //# // TODO: Exercise 6 - create an array from the given value -//# return null; +//# return null; //#else return new PDAArray((PDAValue)value); //#endif diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAChildrenCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAChildrenCommand.java index 9d9339b75..24fc3e3af 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAChildrenCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAChildrenCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,12 +13,12 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Retrieves data stack information - * + * Retrieves data stack information + * * <pre> * C: children {thread_id} {frame_id} {variable_name} * R: {child variable 1}|{child variable 2}|{child variable 3}|...| - * + * * Errors: * error: invalid thread * </pre> @@ -28,7 +28,7 @@ public class PDAChildrenCommand extends PDACommand { public PDAChildrenCommand(int threadId, int frameId, String name ) { super("children " + threadId + " " + frameId + " " + name); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } - + @Override public PDACommandResult createResult(String resultText) { return new PDAListResult(resultText); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAClearBreakpointCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAClearBreakpointCommand.java index 20eba643f..8d3f9a5f5 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAClearBreakpointCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAClearBreakpointCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -14,7 +14,7 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Clears any breakpoint set on given line - * + * * <pre> * C: clear {line} * R: ok @@ -25,7 +25,7 @@ public class PDAClearBreakpointCommand extends PDACommand { public PDAClearBreakpointCommand(int line) { super("clear " + line); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { return new PDACommandResult(resultText); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDACommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDACommand.java index 9aa2bfb15..52d44fb05 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDACommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDACommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -12,29 +12,29 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Base class for PDA commands. Sub-classes should format the request string + * Base class for PDA commands. Sub-classes should format the request string * and implement the method to create the proper result object. */ abstract public class PDACommand { final private String fRequest; - + public PDACommand(String request) { fRequest = request; } - + /** - * Returns the request to be sent to PDA. + * Returns the request to be sent to PDA. */ public String getRequest() { return fRequest; } /** - * Returns the command result based on the given PDA response. This command - * uses the class type parameter as the return type to allow the compiler to - * enforce the correct command result. This class must be implemented by - * each command to create the concrete result type. + * Returns the command result based on the given PDA response. This command + * uses the class type parameter as the return type to allow the compiler to + * enforce the correct command result. This class must be implemented by + * each command to create the concrete result type. */ abstract public PDACommandResult createResult(String resultText); } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDACommandResult.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDACommandResult.java index 9991b0115..1de9e136b 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDACommandResult.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDACommandResult.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -13,14 +13,14 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Basic command result object. This command result simply allows access to the + * Basic command result object. This command result simply allows access to the * PDA response. Sub-classes may override to optionally parse the response text * and return higher-level objects. */ public class PDACommandResult { final public String fResponseText; - + public PDACommandResult(String response) { fResponseText = response; } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDADataCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDADataCommand.java index e82630f1a..d83b78c06 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDADataCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDADataCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,13 +13,13 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Return the contents of the data stack; reply is the data from oldest to newest - * as a single string - * + * Return the contents of the data stack; reply is the data from oldest to newest + * as a single string + * * <pre> * C: data {thread_id} * R: {value 1}|{value 2}|{value 3}|...| - * + * * Errors: * error: invalid thread * </pre> @@ -29,7 +29,7 @@ public class PDADataCommand extends PDACommand { public PDADataCommand(int threadId) { super("data " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { return new PDAListResult(resultText); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDADropFrameCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDADropFrameCommand.java index 9777ff94c..c051f010a 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDADropFrameCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDADropFrameCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,22 +13,22 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Pops the top stack frame off the call stack setting the instruction pointer to - * the calling statement in the calling frame - * + * Pops the top stack frame off the call stack setting the instruction pointer to + * the calling statement in the calling frame + * * <pre> * If VM running: * C: drop {thread_id} * R: ok * E: resumed {thread_id} drop * E: suspended {thread_id} drop - * + * * If VM suspended: * C: drop {thread_id} * R: ok * E: vmresumed drop * E: vmsuspended {thread_id} drop - * + * * Errors: * error: invalid thread * </pre> @@ -38,7 +38,7 @@ public class PDADropFrameCommand extends PDACommand { public PDADropFrameCommand(int threadId) { super("drop " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { return new PDACommandResult(resultText); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvalCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvalCommand.java index 499a9dd0a..2c341dadd 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvalCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvalCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,31 +13,31 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Causes the interperter to execute the given set of instructions. At the end + * Causes the interperter to execute the given set of instructions. At the end * of the evaluation the top value is poped off the stack and returned in the * evaluation result. - * + * * <pre> * C: eval {thread_id} {instruction}%20{parameter}|{instruction}%20{parameter}|... * R: ok * E: resumed {thread_id} client * E: evalresult result * E: suspended {thread_id} eval - * + * * Errors: * error: invalid thread * error: cannot evaluate while vm is suspended - * error: thread running + * error: thread running * </pre> - * - * Where event_name could be <code>unimpinstr</code> or <code>nosuchlabel</code>. + * + * Where event_name could be <code>unimpinstr</code> or <code>nosuchlabel</code>. */ public class PDAEvalCommand extends PDACommand { public PDAEvalCommand(int threadId, String operation) { super("eval " + threadId + " " + operation); //$NON-NLS-1$ //$NON-NLS-2$ } - + @Override public PDACommandResult createResult(String resultText) { return new PDACommandResult(resultText); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvalResultEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvalResultEvent.java index d8dc61ef5..993786e62 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvalResultEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvalResultEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -12,21 +12,21 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Eval result event generated when an evaluation has completed. - * + * Eval result event generated when an evaluation has completed. + * * <pre> * E: evalresult {result} * </pre> */ public class PDAEvalResultEvent extends PDAEvent { - + public final String fResult; - + public PDAEvalResultEvent(String message) { super(message); fResult = message.substring(getName(message).length() + 1); } - + public static boolean isEventMessage(String message) { return message.startsWith("evalresult"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvent.java index ab841bf13..94bc59110 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -16,60 +16,60 @@ package org.eclipse.debug.examples.core.pda.protocol; public class PDAEvent { public final String fMessage; public final String fName; - + public PDAEvent(String message) { fMessage = message; fName = getName(message); } - + protected String getName(String message) { int nameEnd = message.indexOf(' '); nameEnd = nameEnd == -1 ? message.length() : nameEnd; return message.substring(0, nameEnd); } - + public static PDAEvent parseEvent(String message) { if (PDAEvalResultEvent.isEventMessage(message)) { return new PDAEvalResultEvent(message); - } + } else if (PDAExitedEvent.isEventMessage(message)) { return new PDAExitedEvent(message); - } + } else if (PDANoSuchLabelEvent.isEventMessage(message)) { return new PDANoSuchLabelEvent(message); - } + } else if (PDARegistersEvent.isEventMessage(message)) { return new PDARegistersEvent(message); - } + } else if (PDAResumedEvent.isEventMessage(message)) { return new PDAResumedEvent(message); - } + } else if (PDAStartedEvent.isEventMessage(message)) { return new PDAStartedEvent(message); - } + } else if (PDASuspendedEvent.isEventMessage(message)) { return new PDASuspendedEvent(message); - } + } else if (PDATerminatedEvent.isEventMessage(message)) { return new PDATerminatedEvent(message); - } + } else if (PDAUnimplementedInstructionEvent.isEventMessage(message)) { return new PDAUnimplementedInstructionEvent(message); - } + } else if (PDAVMResumedEvent.isEventMessage(message)) { return new PDAVMResumedEvent(message); - } + } else if (PDAVMStartedEvent.isEventMessage(message)) { return new PDAVMStartedEvent(message); - } + } else if (PDAVMSuspendedEvent.isEventMessage(message)) { return new PDAVMSuspendedEvent(message); - } + } else if (PDAExitedEvent.isEventMessage(message)) { return new PDAExitedEvent(message); - } + } else { return new PDAEvent(message); - } + } } } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEventStopCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEventStopCommand.java index b96060fda..d6e30dfb1 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEventStopCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAEventStopCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,35 +13,35 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Optionally stop the interpreter when an error event <code>event_name</code> + * Optionally stop the interpreter when an error event <code>event_name</code> * is encountered; <code>{0|1}</code> specifies stop (<code>1</code>) or * continue (<code>0</code>). The possible events are <code>unimpinstr</code> and * <code>nosuchlabel</code>. Reply is <code>ok</code>. When an event is encountered, - * the interpreter sends the error event (for example <code>unimlpemented instruction - * foo</code>) and corresponding suspend event (for example <code>suspended event + * the interpreter sends the error event (for example <code>unimlpemented instruction + * foo</code>) and corresponding suspend event (for example <code>suspended event * unimpinstr</code>). - * + * * <pre> * C: eventstop {event_name} {0|1} * R: ok * ... * E: suspended event {event_name} * </pre> - * - * Where event_name could be <code>unimpinstr</code> or <code>nosuchlabel</code>. + * + * Where event_name could be <code>unimpinstr</code> or <code>nosuchlabel</code>. */ public class PDAEventStopCommand extends PDACommand { public static final int UNIMPINSTR = 0; public static final int NOSUCHLABEL = 1; - + public PDAEventStopCommand(int event, boolean enable) { super("eventstop " + //$NON-NLS-1$ (event == UNIMPINSTR ? "unimpinstr " : "nosuchlabel ") + //$NON-NLS-1$ //$NON-NLS-2$ (enable ? "1" : "0")); //$NON-NLS-1$ //$NON-NLS-2$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAExitedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAExitedEvent.java index 22c65c103..863b80868 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAExitedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAExitedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,17 +13,17 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Exited event generated when a thread has exited. - * + * * <pre> * E: started {thread_id} * </pre> */ public class PDAExitedEvent extends PDARunControlEvent { - + public PDAExitedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("exited"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAFrameCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAFrameCommand.java index 92fb11de8..092ff8e1f 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAFrameCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAFrameCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -14,12 +14,12 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Retrieves command stack frame information for frame <code>frame_number</code> - * (stack frames are indexed from 0, 0 being the oldest). - * + * (stack frames are indexed from 0, 0 being the oldest). + * * <pre> * C: stack {thread_id} {frame_number} * R: {file}|{line}|{function}|{var_1}|{var_2}|... - * + * * Errors: * error: invalid thread * </pre> @@ -29,7 +29,7 @@ public class PDAFrameCommand extends PDACommand { public PDAFrameCommand(int threadId, int frameNum) { super("frame " + threadId + " " + frameNum); //$NON-NLS-1$ //$NON-NLS-2$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAFrameCommandResult.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAFrameCommandResult.java index f52af48c0..6d92498c6 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAFrameCommandResult.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAFrameCommandResult.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -17,12 +17,12 @@ package org.eclipse.debug.examples.core.pda.protocol; */ public class PDAFrameCommandResult extends PDACommandResult { - + /** * Frame data return by the frame command. */ final public PDAFrameData fFrame; - + PDAFrameCommandResult(String response) { super(response); fFrame = new PDAFrameData(response); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAGroupsCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAGroupsCommand.java index fb405b32c..a0a0e61c1 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAGroupsCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAGroupsCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,8 +13,8 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Retrieves register groups information - * + * Retrieves register groups information + * * <pre> * C: groups * R: {group 1}|{group 2}|{group 3}|...| @@ -26,7 +26,7 @@ public class PDAGroupsCommand extends PDACommand { public PDAGroupsCommand() { super("groups"); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDANoSuchLabelEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDANoSuchLabelEvent.java index d96681c5a..168ed6588 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDANoSuchLabelEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDANoSuchLabelEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -14,24 +14,24 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * No Such Label event generated when the PDA program encounters an call to a * non-existant label in a PDA program. - * + * * <pre> * E: no such label {label} * </pre> */ public class PDANoSuchLabelEvent extends PDAEvent { - + public final String fLabel; - + public PDANoSuchLabelEvent(String message) { super(message); fLabel = message.substring(getName(message).length() + 1); } - + public static boolean isEventMessage(String message) { return message.startsWith("no such label"); //$NON-NLS-1$ } - + @Override protected String getName(String message) { if (isEventMessage(message)) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAPopDataCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAPopDataCommand.java index 1e3726c25..4a87139f8 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAPopDataCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAPopDataCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,12 +13,12 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Pops the top value from the data stack - * + * Pops the top value from the data stack + * * <pre> * C: popdata {thread_id} * R: ok - * + * * Errors: * error: invalid thread * </pre> @@ -28,7 +28,7 @@ public class PDAPopDataCommand extends PDACommand { public PDAPopDataCommand(int threadId) { super("popdata " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { return new PDACommandResult(resultText); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAPushDataCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAPushDataCommand.java index fd3ccd8d1..dcbcdddac 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAPushDataCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAPushDataCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -14,11 +14,11 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Pushes the given value on top of the data stack. - * + * * <pre> * C: pushdata {thread_id} {value} * R: ok - * + * * Errors: * error: invalid thread * </pre> @@ -29,7 +29,7 @@ public class PDAPushDataCommand extends PDACommand { public PDAPushDataCommand(int threadId, String value) { super("pushdata " + threadId + " " + value); //$NON-NLS-1$ //$NON-NLS-2$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARegistersCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARegistersCommand.java index 045df225d..7f046e8c6 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARegistersCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARegistersCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,8 +13,8 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Retrieves registers definition information - * + * Retrieves registers definition information + * * <pre> * C: registers {group name} * R: {register name} {true|false}|{bit field name} {start bit} {bit count} {mnemonic 1} {mnemonic 2} ...#{register name} ... @@ -26,7 +26,7 @@ public class PDARegistersCommand extends PDACommand { public PDARegistersCommand(String group) { super("registers " + group); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARegistersEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARegistersEvent.java index 1abada3a8..604c0c9a5 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARegistersEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARegistersEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -12,19 +12,19 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Registers event generated when the registers' definitions are changed in a + * Registers event generated when the registers' definitions are changed in a * program. - * + * * <pre> * E: registers * </pre> */ public class PDARegistersEvent extends PDAEvent { - + public PDARegistersEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("registers"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARestartCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARestartCommand.java index 29bfc78f3..b4dc050dc 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARestartCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARestartCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -14,7 +14,7 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Restarts the debug session. All threads exit and the main threads starts - * + * * <pre> * C: restart * E: exited 0 @@ -28,7 +28,7 @@ public class PDARestartCommand extends PDACommand { public PDARestartCommand() { super("restart"); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAResumeCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAResumeCommand.java index 64bac76a2..531e7278c 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAResumeCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAResumeCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,14 +13,14 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Resumes the execution of a single thread. Can be issued only if the virtual + * Resumes the execution of a single thread. Can be issued only if the virtual * machine is running. - * + * * <pre> * C: resume {thread_id} * R: ok * E: resumed {thread_id} client - * + * * Errors: * error: invalid thread * error: cannot resume thread when vm is suspended @@ -33,7 +33,7 @@ public class PDAResumeCommand extends PDACommand { public PDAResumeCommand(int threadId) { super("resume " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAResumedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAResumedEvent.java index e8ee71750..5cbaf8342 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAResumedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAResumedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,17 +13,17 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Resumed event generated when a thread is resumed. - * + * * <pre> * E: resumed {thread_id} [reason] * </pre> */ public class PDAResumedEvent extends PDARunControlEvent { - + public PDAResumedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("resumed"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARunControlEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARunControlEvent.java index c9e10a762..6934b4a70 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARunControlEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDARunControlEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -16,16 +16,16 @@ package org.eclipse.debug.examples.core.pda.protocol; * Base class for run-control events. */ public class PDARunControlEvent extends PDAEvent { - + public final int fThreadId; public final String fReason; - + public PDARunControlEvent(String message) { super(message); fThreadId = getThreadId(message); fReason = getStateChangeReason(message); } - + protected int getThreadId(String message) { int nameEnd = getName(message).length(); if ( Character.isDigit(message.charAt(nameEnd + 1)) ) { @@ -57,7 +57,7 @@ public class PDARunControlEvent extends PDAEvent { endIdx = endIdx == -1 ? message.length() : endIdx; return message.substring(idx, endIdx); } - + @Override protected String getName(String message) { int nameEnd = message.indexOf(' '); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetBreakpointCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetBreakpointCommand.java index 4459ebc2f..d758c8622 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetBreakpointCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetBreakpointCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -14,7 +14,7 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Sets a breakpoint at given line - * + * * <pre> * Suspend a single thread: * C: set {line_number} 0 @@ -22,7 +22,7 @@ package org.eclipse.debug.examples.core.pda.protocol; * C: resume {thread_id} * E: resumed {thread_id} client * E: suspended {thread_id} breakpoint line_number - * + * * Suspend the VM: * C: set {line_number} 1 * R: ok @@ -39,7 +39,7 @@ public class PDASetBreakpointCommand extends PDACommand { line + " " + //$NON-NLS-1$ (stopVM ? "1" : "0")); //$NON-NLS-1$ //$NON-NLS-2$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetDataCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetDataCommand.java index c6f5278bc..81bbdb5f5 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetDataCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetDataCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,13 +13,13 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Sets a data value in the data stack at the given location (the data stack is + * Sets a data value in the data stack at the given location (the data stack is * indexed from 0, 0 being the oldest). - * + * * <pre> * C: setdata {thread_id} {index} {value} * R: ok - * + * * Errors: * error: invalid thread * </pre> @@ -29,7 +29,7 @@ public class PDASetDataCommand extends PDACommand { public PDASetDataCommand(int threadId, int index, String value) { super("setdata " + threadId + " " + index + " " + value); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetVarCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetVarCommand.java index c32570a6a..f85a4f734 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetVarCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASetVarCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,14 +13,14 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Set the contents of variable <code>variable</code> from the control stack - * <code>frame_number</code> to value <code>value</code> (the control stack is - * indexed from 0, 0 being the oldest). - * + * Set the contents of variable <code>variable</code> from the control stack + * <code>frame_number</code> to value <code>value</code> (the control stack is + * indexed from 0, 0 being the oldest). + * * <pre> * C: setvar {thread_id} {frame_number} {variable} {value} * R: ok - * + * * Errors: * error: invalid thread * </pre> @@ -31,7 +31,7 @@ public class PDASetVarCommand extends PDACommand { public PDASetVarCommand(int threadId, int frame, String variable, String value) { super("setvar " + threadId + " " + frame + " " + variable + " " + value); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommand.java index 836f5d6a9..fc35365d3 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -16,12 +16,12 @@ package org.eclipse.debug.examples.core.pda.protocol; * Return the contents of the control stack (program counters, function and * variable names). The reply is control stack from oldest to newest as a single string * <code>frame#frame#frame...#frame</code>, where each frame is a string - * <code>"filename|pc|function name|variable name|variable name|...|variable name"</code></li>. - * + * <code>"filename|pc|function name|variable name|variable name|...|variable name"</code></li>. + * * <pre> * C: stack {thread_id} * R: {file}|{line}|{function}|{var_1}|{var_2}|...#{file}|{line}|{function}|{var_1}|{var_2}|...#... - * + * * Errors: * error: invalid thread * </pre> @@ -32,7 +32,7 @@ public class PDAStackCommand extends PDACommand { public PDAStackCommand(int threadId) { super("stack " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackDepthCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackDepthCommand.java index f30db3c68..6facf5618 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackDepthCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackDepthCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,12 +13,12 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Retrieves command stack depth - * + * Retrieves command stack depth + * * <pre> * C: stackdepth {thread_id} * R: {depth} - * + * * Errors: * error: invalid thread * </pre> @@ -29,7 +29,7 @@ public class PDAStackDepthCommand extends PDACommand { public PDAStackDepthCommand(int threadId) { super("stackdepth " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackDepthCommandResult.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackDepthCommandResult.java index e5ca2b969..72a67f077 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackDepthCommandResult.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStackDepthCommandResult.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -17,9 +17,9 @@ package org.eclipse.debug.examples.core.pda.protocol; */ public class PDAStackDepthCommandResult extends PDACommandResult { - + final public int fDepth; - + PDAStackDepthCommandResult(String response) { super(response); int depth = 1; // default to something that won't cause NPEs diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStartedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStartedEvent.java index 39b21876a..7c260a1d2 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStartedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStartedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -12,19 +12,19 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Started event generated when a new thread is started. A started event + * Started event generated when a new thread is started. A started event * is always sent for the first thread when a PDA program is started. - * + * * <pre> * E: started {thread_id} * </pre> */ public class PDAStartedEvent extends PDARunControlEvent { - + public PDAStartedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("started"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStepCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStepCommand.java index f767ba746..d394d1a43 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStepCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStepCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,21 +13,21 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Executes next instruction - * + * Executes next instruction + * * <pre> * If VM running: * C: step {thread_id} * R: ok * E: resumed {thread_id} step * E: suspended {thread_id} step - * + * * If VM suspended: * C: step {thread_id} * R: ok * E: vmresumed step * E: vmsuspended {thread_id} step - * + * * Errors: * error: invalid thread * </pre> @@ -38,7 +38,7 @@ public class PDAStepCommand extends PDACommand { public PDAStepCommand(int threadId) { super("step " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStepReturnCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStepReturnCommand.java index 443513878..6a8b1c9f7 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStepReturnCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAStepReturnCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,22 +13,22 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Single step forward until the next <code>return</code> op code. Stop before - * executing the <code>return</code> . - * + * Single step forward until the next <code>return</code> op code. Stop before + * executing the <code>return</code> . + * * <pre> * If VM running: * C: stepreturn {thread_id} * R: ok * E: resumed {thread_id} client * E: suspended {thread_id} step - * + * * If VM suspended: * C: stepreturn {thread_id} * R: ok * E: vmresumed client * E: vmsuspended {thread_id} step - * + * * Errors: * error: invalid thread * </pre> @@ -39,7 +39,7 @@ public class PDAStepReturnCommand extends PDACommand { public PDAStepReturnCommand(int threadId) { super("stepreturn " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASuspendCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASuspendCommand.java index 2100c4b11..ecf864b22 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASuspendCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASuspendCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,14 +13,14 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Suspends execution of a single thread. Can be issued only if the virtual + * Suspends execution of a single thread. Can be issued only if the virtual * machine is running. - * + * * <pre> * C: suspend {thread_id} * R: ok * E: suspended {thread_id} client - * + * * Errors: * error: invalid thread error: vm already suspended @@ -33,7 +33,7 @@ public class PDASuspendCommand extends PDACommand { public PDASuspendCommand(int threadId) { super("suspend " + threadId); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASuspendedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASuspendedEvent.java index de6363391..f8d01349f 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASuspendedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDASuspendedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,11 +13,11 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Suspended event generated when a thread is suspended. - * + * * <pre> * E: suspended {thread_id} [reason] * </pre> - * + * * <code>[reason]</code> is the cause of the suspension and it's optional: * <ul> * <li><code>breakpoint N</code> - a breakpoint at line <code>N</code> was hit</li> @@ -33,11 +33,11 @@ package org.eclipse.debug.examples.core.pda.protocol; */ public class PDASuspendedEvent extends PDARunControlEvent { - + public PDASuspendedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("suspended"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDATerminateCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDATerminateCommand.java index 4f4ad3932..93fe3860a 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDATerminateCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDATerminateCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -14,7 +14,7 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Instructs the debugger to terminate. - * + * * <pre> * C: terminate * R: ok @@ -27,7 +27,7 @@ public class PDATerminateCommand extends PDACommand { public PDATerminateCommand() { super("terminate"); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDATerminatedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDATerminatedEvent.java index d3aa4a2a0..3b95f94b5 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDATerminatedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDATerminatedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,17 +13,17 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Terminated event generated when the PDA program has ended execution. - * + * * <pre> * E: termianted * </pre> */ public class PDATerminatedEvent extends PDAEvent { - + public PDATerminatedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("terminated"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAUnimplementedInstructionEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAUnimplementedInstructionEvent.java index 90e0103e9..4f866d1d8 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAUnimplementedInstructionEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAUnimplementedInstructionEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -12,27 +12,27 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Unimplemented Instruction event generated when the PDA program encounters + * Unimplemented Instruction event generated when the PDA program encounters * an instruction that it does not recognize. This event is usually followed * by a VM Suspended event. - * + * * <pre> * E: unimplemented instruction {label} * </pre> */ public class PDAUnimplementedInstructionEvent extends PDAEvent { - + public final String fOperation; - + public PDAUnimplementedInstructionEvent(String message) { super(message); fOperation = message.substring(getName(message).length() + 1); } - + public static boolean isEventMessage(String message) { return message.startsWith("unimplemented instruction"); //$NON-NLS-1$ } - + @Override protected String getName(String message) { if (isEventMessage(message)) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMResumeCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMResumeCommand.java index 43c726ed0..8f917e2ce 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMResumeCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMResumeCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,13 +13,13 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Resumes the execution of the whole virtual machine - * + * Resumes the execution of the whole virtual machine + * * <pre> * C: vmresume * R: ok * E: vmresumed client - * + * * Errors: * error: vm already running * </pre> @@ -30,7 +30,7 @@ public class PDAVMResumeCommand extends PDACommand { public PDAVMResumeCommand() { super("vmresume"); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMResumedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMResumedEvent.java index 056270d61..a679a5e0d 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMResumedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMResumedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -12,13 +12,13 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * VM Resumed event generated when the whole virtual machine is resumed. When - * the VM is resumed all previously suspended threads are resumed as well. - * + * VM Resumed event generated when the whole virtual machine is resumed. When + * the VM is resumed all previously suspended threads are resumed as well. + * * <pre> * E: vmresumed [reason] * </pre> - * + * * <code>[reason]</code> is the cause of the resume: and it's optional: * <ul> * <li><code>step</code> - a step request has been initiated</li> @@ -26,11 +26,11 @@ package org.eclipse.debug.examples.core.pda.protocol; * </ul> */ public class PDAVMResumedEvent extends PDARunControlEvent { - + public PDAVMResumedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("vmresumed"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMStartedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMStartedEvent.java index 27d519105..9b4520d41 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMStartedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMStartedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -12,19 +12,19 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * VM started event generated when the the interpreter has started (guaranteed + * VM started event generated when the the interpreter has started (guaranteed * to be the first event sent) - * + * * <pre> * E: vmstarted * </pre> */ public class PDAVMStartedEvent extends PDAEvent { - + public PDAVMStartedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("vmstarted"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMSuspendCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMSuspendCommand.java index d65d07dd0..03be38ebf 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMSuspendCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMSuspendCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,13 +13,13 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Suspends the execution of the whole virtual machine - * + * Suspends the execution of the whole virtual machine + * * <pre> * C: vmsuspend * R: ok * E: vmsuspended client - * + * * Errors: * error: thread already suspended * </pre> @@ -30,7 +30,7 @@ public class PDAVMSuspendCommand extends PDACommand { public PDAVMSuspendCommand() { super("vmsuspend"); //$NON-NLS-1$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMSuspendedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMSuspendedEvent.java index eac42a107..39d52fc35 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMSuspendedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMSuspendedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,13 +13,13 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * VM Suspended event generated when the virtual machine is suspended. If the VM - * is suspended as a result of a thread event (e.g. thread hitting a breakpoint), + * is suspended as a result of a thread event (e.g. thread hitting a breakpoint), * then the thread_id is included in the event. - * + * * <pre> * E: vmsuspended [thread_id] {reason} * </pre> - * + * * <code>{reason}</code> is the cause of the suspension: * <ul> * <li><code>breakpoint N</code> - a breakpoint at line <code>N</code> was hit</li> @@ -34,11 +34,11 @@ package org.eclipse.debug.examples.core.pda.protocol; * </ul> */ public class PDAVMSuspendedEvent extends PDARunControlEvent { - + public PDAVMSuspendedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("vmsuspended"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMTerminatedEvent.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMTerminatedEvent.java index b73884746..5756e16d5 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMTerminatedEvent.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVMTerminatedEvent.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -12,17 +12,17 @@ package org.eclipse.debug.examples.core.pda.protocol; /** * Terminated event generated when the PDA program has ended execution. - * + * * <pre> * E: termianted * </pre> */ public class PDAVMTerminatedEvent extends PDAEvent { - + public PDAVMTerminatedEvent(String message) { super(message); } - + public static boolean isEventMessage(String message) { return message.startsWith("vmterminated"); //$NON-NLS-1$ } diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVarCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVarCommand.java index cab160251..203a9c2bf 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVarCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAVarCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,14 +13,14 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Return the contents of variable <code>variable_name</code> in the control - * stack frame <code>frame_number</code> (stack frames are indexed from 0, 0 - * being the oldest). - * + * Return the contents of variable <code>variable_name</code> in the control + * stack frame <code>frame_number</code> (stack frames are indexed from 0, 0 + * being the oldest). + * * <pre> * C: var {thread_id} {frame_number} {variable_name} * R: {variable_value} - * + * * Errors: * error: invalid thread * error: variable undefined @@ -32,7 +32,7 @@ public class PDAVarCommand extends PDACommand { public PDAVarCommand(int threadId, int frameId, String name) { super("var " + threadId + " " + frameId + " " + name); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAWatchCommand.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAWatchCommand.java index 1440049ff..e8038bfed 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAWatchCommand.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/protocol/PDAWatchCommand.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Wind River Systems - initial API and implementation * IBM Corporation - bug fixing @@ -13,11 +13,11 @@ package org.eclipse.debug.examples.core.pda.protocol; /** - * Set a watchpoint on variable <code>variable_name</code> in function - * <code>function</code> to magic value <code>watch_operation</code>. The magic - * value is a bit flag corresponding to read access (1), write access (2), or + * Set a watchpoint on variable <code>variable_name</code> in function + * <code>function</code> to magic value <code>watch_operation</code>. The magic + * value is a bit flag corresponding to read access (1), write access (2), or * both (3); the magic value 0 clears the watchpoint. - * + * * <pre> * C: watch {function}::{variable_name} {watch_operation} * R: ok @@ -32,11 +32,11 @@ public class PDAWatchCommand extends PDACommand { public static final int WRITE = 2; public static final int BOTH = READ | WRITE; public static final int NONE = 0; - + public PDAWatchCommand(String function, String variable, int operation) { super("watch " + function+ "::" + variable + " " + operation); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } - + @Override public PDACommandResult createResult(String resultText) { diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourceLookupDirector.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourceLookupDirector.java index 83b1bc57a..a5be0f045 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourceLookupDirector.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourceLookupDirector.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2007 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -16,7 +16,7 @@ import org.eclipse.debug.core.sourcelookup.ISourceLookupParticipant; /** * PDA source lookup director. For PDA source lookup there is one source - * lookup participant. + * lookup participant. */ public class PDASourceLookupDirector extends AbstractSourceLookupDirector { /* (non-Javadoc) @@ -25,7 +25,7 @@ public class PDASourceLookupDirector extends AbstractSourceLookupDirector { @Override public void initializeParticipants() { //#ifdef ex4 -//# // TODO: Exercise 4 - add our participant to this director +//# // TODO: Exercise 4 - add our participant to this director //#else addParticipants(new ISourceLookupParticipant[]{new PDASourceLookupParticipant()}); //#endif diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourceLookupParticipant.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourceLookupParticipant.java index 7326ad37c..0d7aaa979 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourceLookupParticipant.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourceLookupParticipant.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2007 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -17,8 +17,8 @@ import org.eclipse.debug.examples.core.pda.model.PDAStackFrame; /** - * The PDA source lookup participant knows how to translate a - * PDA stack frame into a source file name + * The PDA source lookup participant knows how to translate a + * PDA stack frame into a source file name */ public class PDASourceLookupParticipant extends AbstractSourceLookupParticipant { /* (non-Javadoc) @@ -28,7 +28,7 @@ public class PDASourceLookupParticipant extends AbstractSourceLookupParticipant public String getSourceName(Object object) throws CoreException { //#ifdef ex4 //# // TODO: Exercise 4 - return the name of the source file for the given stack frame -//# return null; +//# return null; //#else if (object instanceof PDAStackFrame) { return ((PDAStackFrame)object).getSourceName(); diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourcePathComputerDelegate.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourcePathComputerDelegate.java index 208a5a4b4..5d3143936 100644 --- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourcePathComputerDelegate.java +++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/sourcelookup/PDASourcePathComputerDelegate.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2005, 2007 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * 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 * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * Bjorn Freeman-Benson - initial API and implementation @@ -29,13 +29,13 @@ import org.eclipse.debug.examples.core.pda.DebugCorePlugin; /** * Computes the default source lookup path for a PDA launch configuration. - * The default source lookup path is the folder or project containing + * The default source lookup path is the folder or project containing * the PDA program being launched. If the program is not specified, the workspace * is searched by default. */ public class PDASourcePathComputerDelegate implements ISourcePathComputerDelegate { - - + + /* (non-Javadoc) * @see org.eclipse.debug.internal.core.sourcelookup.ISourcePathComputerDelegate#computeSourceContainers(org.eclipse.debug.core.ILaunchConfiguration, org.eclipse.core.runtime.IProgressMonitor) */ |