From 63c23ca255c52bd0ca6c29fd4f3758cdef1da49a Mon Sep 17 00:00:00 2001 From: eutarass Date: Wed, 2 Sep 2009 20:30:27 +0000 Subject: Code cleanup: trailing spaces are removed from the source line --- .../eclipse/tm/internal/tcf/debug/actions/TCFAction.java | 16 ++++++++-------- .../tm/internal/tcf/debug/actions/TCFActionStepInto.java | 12 ++++++------ .../tm/internal/tcf/debug/actions/TCFActionStepOut.java | 12 ++++++------ .../tm/internal/tcf/debug/actions/TCFActionStepOver.java | 16 ++++++++-------- 4 files changed, 28 insertions(+), 28 deletions(-) (limited to 'plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions') diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java index 7e298146f..5c2d956b8 100644 --- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java +++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * + * 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: * Wind River Systems - initial API and implementation *******************************************************************************/ @@ -21,7 +21,7 @@ import org.eclipse.tm.tcf.protocol.Protocol; * it does not make sense to execute two step commands concurrently. * If user requests actions faster then they are executed, * actions are placed into a FIFO queue. - * + * * Clients are expected to implement run() method to perform the action job. * When the job is done, client code should call done() method. */ @@ -29,7 +29,7 @@ public abstract class TCFAction implements Runnable { protected final TCFLaunch launch; protected final String context_id; - + public TCFAction(TCFLaunch launch, String context_id) { assert Protocol.isDispatchThread(); assert context_id != null; @@ -37,7 +37,7 @@ public abstract class TCFAction implements Runnable { this.context_id = context_id; launch.addContextAction(this, context_id); } - + protected void done() { assert Protocol.isDispatchThread(); launch.removeContextAction(this, context_id); diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java index b2595ae0b..40735ad34 100644 --- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java +++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java @@ -20,7 +20,7 @@ public abstract class TCFActionStepInto extends TCFAction implements IRunControl private final boolean src_step; private final IRunControl rc = launch.getService(IRunControl.class); - + private IRunControl.RunControlContext ctx; private TCFDataCache state; private TCFDataCache line_info; @@ -28,15 +28,15 @@ public abstract class TCFActionStepInto extends TCFAction implements IRunControl private BigInteger pc0; private BigInteger pc1; private int step_cnt; - + protected boolean exited; - + public TCFActionStepInto(TCFLaunch launch, IRunControl.RunControlContext ctx, boolean src_step) { super(launch, ctx.getID()); this.ctx = ctx; this.src_step = src_step; } - + protected abstract TCFDataCache getContextState(); protected abstract TCFDataCache getLineInfo(); protected abstract TCFDataCache getStackTrace(); @@ -161,7 +161,7 @@ public abstract class TCFActionStepInto extends TCFAction implements IRunControl exit(new Exception("Step into is not supported")); } } - + private boolean isSameLine(ILineNumbers.CodeArea x, ILineNumbers.CodeArea y) { if (x == null || y == null) return false; if (x.start_line != y.start_line) return false; @@ -169,7 +169,7 @@ public abstract class TCFActionStepInto extends TCFAction implements IRunControl if (x.file != y.file && (x.file == null || !x.file.equals(y.file))) return false; return true; } - + protected void exit(Throwable error) { if (exited) return; rc.removeListener(this); diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java index b6e64a286..d4c598c7f 100644 --- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java +++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java @@ -16,27 +16,27 @@ import org.eclipse.tm.tcf.util.TCFDataCache; public abstract class TCFActionStepOut extends TCFAction implements IRunControl.RunControlListener { private static final long TIMEOUT = 10000; - + private final IRunControl rc = launch.getService(IRunControl.class); private final IBreakpoints bps = launch.getService(IBreakpoints.class); - + private IRunControl.RunControlContext ctx; private TCFDataCache state; private int step_cnt; private Map bp; - + protected boolean exited; public TCFActionStepOut(TCFLaunch launch, IRunControl.RunControlContext ctx) { super(launch, ctx.getID()); this.ctx = ctx; } - + protected abstract TCFDataCache getContextState(); protected abstract TCFDataCache getStackTrace(); protected abstract TCFDataCache getStackFrame(); protected abstract int getStackFrameIndex(); - + public void run() { if (exited) return; if (state == null) { @@ -114,7 +114,7 @@ public abstract class TCFActionStepOut extends TCFAction implements IRunControl. exit(new Exception("Step out is not supported")); } } - + protected void exit(Throwable error) { if (exited) return; if (bp != null) { diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java index f262faa2b..0d4a28ff0 100644 --- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java +++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java @@ -23,7 +23,7 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl private final boolean src_step; private final IRunControl rc = launch.getService(IRunControl.class); private final IBreakpoints bps = launch.getService(IBreakpoints.class); - + private IRunControl.RunControlContext ctx; private TCFDataCache state; private TCFDataCache line_info; @@ -32,21 +32,21 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl private BigInteger pc1; private int step_cnt; private Map bp; - + protected boolean exited; - + public TCFActionStepOver(TCFLaunch launch, IRunControl.RunControlContext ctx, boolean src_step) { super(launch, ctx.getID()); this.ctx = ctx; this.src_step = src_step; } - + protected abstract TCFDataCache getContextState(); protected abstract TCFDataCache getLineInfo(); protected abstract TCFDataCache getStackTrace(); protected abstract TCFDataCache getStackFrame(); protected abstract int getStackFrameIndex(); - + public void run() { if (exited) return; if (state == null) { @@ -212,7 +212,7 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl exit(new Exception("Step over is not supported")); } } - + protected void exit(Throwable error) { if (exited) return; if (bp != null) { @@ -270,7 +270,7 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl exit(null); } } - + private boolean isSameLine(ILineNumbers.CodeArea x, ILineNumbers.CodeArea y) { if (x == null || y == null) return false; if (x.start_line != y.start_line) return false; @@ -278,7 +278,7 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl if (x.file != y.file && (x.file == null || !x.file.equals(y.file))) return false; return true; } - + private boolean isMyBreakpoint(String pc, String reason) { if (bp == null) return false; if (pc == null) return false; -- cgit v1.2.3