Revision: 1908
http://svn.sourceforge.net/rubyeclipse/?rev=1908&view=rev
Author: cawilliams
Date: 2007-02-02 08:06:27 -0800 (Fri, 02 Feb 2007)
Log Message:
-----------
try to fix the broken build as best I can...
Added Paths:
-----------
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/parsing/BreakpointModificationReader.java
Added: trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/parsing/BreakpointModificationReader.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/parsing/BreakpointModificationReader.java (rev 0)
+++ trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/parsing/BreakpointModificationReader.java 2007-02-02 16:06:27 UTC (rev 1908)
@@ -0,0 +1,45 @@
+package org.rubypeople.rdt.internal.debug.core.parsing;
+
+import org.rubypeople.rdt.internal.debug.core.RdtDebugCorePlugin;
+import org.xmlpull.v1.XmlPullParser;
+
+public class BreakpointModificationReader extends XmlStreamReader {
+
+ private String no;
+
+ public BreakpointModificationReader(XmlPullParser xpp) {
+ super(xpp);
+ }
+
+ public BreakpointModificationReader(AbstractReadStrategy readStrategy) {
+ super(readStrategy);
+ }
+
+ public int readBreakpointNo() throws NumberFormatException {
+ try {
+ this.read();
+ } catch (Exception ex) {
+ RdtDebugCorePlugin.log(ex);
+ return -1;
+ }
+ return Integer.parseInt(no);
+ }
+
+ @Override
+ protected boolean processStartElement(XmlPullParser xpp) throws XmlStreamReaderException {
+ if (xpp.getName().equals("breakpointAdded")) {
+ no = xpp.getAttributeValue("", "no");
+ return true;
+ }
+ return false;
+ }
+
+ @Override
+ public void processContent(String text) {}
+
+ @Override
+ protected boolean processEndElement(XmlPullParser xpp) {
+ return xpp.getName().equals("breakpointAdded");
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|