|
From: <caw...@us...> - 2007-05-23 20:51:46
|
Revision: 2534
http://svn.sourceforge.net/rubyeclipse/?rev=2534&view=rev
Author: cawilliams
Date: 2007-05-23 13:51:45 -0700 (Wed, 23 May 2007)
Log Message:
-----------
Added Paths:
-----------
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/debug/
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/debug/core/
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/debug/core/RubyLineBreakpoint.java
Removed Paths:
-------------
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/RubyLineBreakpoint.java
Copied: trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/debug/core/RubyLineBreakpoint.java (from rev 2395, trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/RubyLineBreakpoint.java)
===================================================================
--- trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/debug/core/RubyLineBreakpoint.java (rev 0)
+++ trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/debug/core/RubyLineBreakpoint.java 2007-05-23 20:51:45 UTC (rev 2534)
@@ -0,0 +1,71 @@
+package org.rubypeople.rdt.debug.core;
+
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspaceRunnable;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.debug.core.DebugException;
+import org.eclipse.debug.core.model.LineBreakpoint;
+
+public class RubyLineBreakpoint extends LineBreakpoint {
+ public static final String RUBY_BREAKPOINT_MARKER = "org.rubypeople.rdt.debug.core.RubyBreakpointMarker"; //$NON-NLS-1$
+
+ private int index = -1 ; // index of breakpoint on ruby debugger side
+
+ public RubyLineBreakpoint(final IResource resource, final int lineNumber) throws CoreException {
+ IWorkspaceRunnable wr = new IWorkspaceRunnable() {
+ public void run(IProgressMonitor monitor) throws CoreException {
+ setMarker(resource.createMarker(RUBY_BREAKPOINT_MARKER));
+ getMarker().setAttribute(IMarker.LINE_NUMBER, lineNumber + 1);
+ getMarker().setAttribute(REGISTERED, false);
+ // setEnabled must be set before calling setRegistered
+ setEnabled(true);
+ setRegistered(true);
+ }
+ };
+ try {
+ ResourcesPlugin.getWorkspace().run(wr, null);
+ } catch (CoreException e) {
+ throw new DebugException(e.getStatus());
+ }
+
+ }
+
+ public String getFileName() throws CoreException {
+ return ensureMarker().getResource().getName();
+ }
+
+ public int getLineNumber() throws CoreException {
+ return ensureMarker().getAttribute(IMarker.LINE_NUMBER, -1);
+ }
+
+ public int getCharStart() throws CoreException {
+ return ensureMarker().getAttribute(IMarker.CHAR_START, -1);
+ }
+
+ public int getCharEnd() throws CoreException {
+ return ensureMarker().getAttribute(IMarker.CHAR_END, -1);
+ }
+
+ /**
+ * Returns the type of marker associated with this type of breakpoints
+ */
+ public static String getMarkerType() {
+ return RUBY_BREAKPOINT_MARKER;
+ }
+
+ public String getModelIdentifier() {
+ return "org.rubypeople.rdt.debug";
+ }
+
+ public int getIndex() {
+ return index;
+ }
+
+ public void setIndex(int index) {
+ this.index = index;
+ }
+
+}
Property changes on: trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/debug/core/RubyLineBreakpoint.java
___________________________________________________________________
Name: svn:eol-style
+ native
Deleted: trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/RubyLineBreakpoint.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/RubyLineBreakpoint.java 2007-05-23 20:09:32 UTC (rev 2533)
+++ trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/RubyLineBreakpoint.java 2007-05-23 20:51:45 UTC (rev 2534)
@@ -1,71 +0,0 @@
-package org.rubypeople.rdt.internal.debug.core;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.LineBreakpoint;
-
-public class RubyLineBreakpoint extends LineBreakpoint {
- protected static final String RUBY_BREAKPOINT_MARKER = "org.rubypeople.rdt.debug.core.RubyBreakpointMarker"; //$NON-NLS-1$
-
- private int index = -1 ; // index of breakpoint on ruby debugger side
-
- public RubyLineBreakpoint(final IResource resource, final int lineNumber) throws CoreException {
- IWorkspaceRunnable wr = new IWorkspaceRunnable() {
- public void run(IProgressMonitor monitor) throws CoreException {
- setMarker(resource.createMarker(RUBY_BREAKPOINT_MARKER));
- getMarker().setAttribute(IMarker.LINE_NUMBER, lineNumber + 1);
- getMarker().setAttribute(REGISTERED, false);
- // setEnabled must be set before calling setRegistered
- setEnabled(true);
- setRegistered(true);
- }
- };
- try {
- ResourcesPlugin.getWorkspace().run(wr, null);
- } catch (CoreException e) {
- throw new DebugException(e.getStatus());
- }
-
- }
-
- public String getFileName() throws CoreException {
- return ensureMarker().getResource().getName();
- }
-
- public int getLineNumber() throws CoreException {
- return ensureMarker().getAttribute(IMarker.LINE_NUMBER, -1);
- }
-
- public int getCharStart() throws CoreException {
- return ensureMarker().getAttribute(IMarker.CHAR_START, -1);
- }
-
- public int getCharEnd() throws CoreException {
- return ensureMarker().getAttribute(IMarker.CHAR_END, -1);
- }
-
- /**
- * Returns the type of marker associated with this type of breakpoints
- */
- public static String getMarkerType() {
- return RUBY_BREAKPOINT_MARKER;
- }
-
- public String getModelIdentifier() {
- return "org.rubypeople.rdt.debug";
- }
-
- public int getIndex() {
- return index;
- }
-
- public void setIndex(int index) {
- this.index = index;
- }
-
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|