[prev in list] [next in list] [prev in thread] [next in thread]
List: jedit-cvs
Subject: [ jEdit-commits ] SF.net SVN: jedit: [9360] plugins/GdbPlugin/trunk
From: shlomy () users ! sourceforge ! net
Date: 2007-03-30 12:31:06
Message-ID: E1HXGG2-0004Me-8j () sc8-pr-svn4 ! sourceforge ! net
[Download RAW message or body]
Revision: 9360
http://svn.sourceforge.net/jedit/?rev=9360&view=rev
Author: shlomy
Date: 2007-03-30 05:31:04 -0700 (Fri, 30 Mar 2007)
Log Message:
-----------
The breakpoint actions now use gdb.core rather than the plugin.
Modified Paths:
--------------
plugins/GdbPlugin/trunk/actions.xml
plugins/GdbPlugin/trunk/debugger/jedit/Plugin.java
Modified: plugins/GdbPlugin/trunk/actions.xml
===================================================================
--- plugins/GdbPlugin/trunk/actions.xml 2007-03-30 12:23:39 UTC (rev 9359)
+++ plugins/GdbPlugin/trunk/actions.xml 2007-03-30 12:31:04 UTC (rev 9360)
@@ -36,17 +36,17 @@
<ACTION NAME="debugger-toggle-breakpoint" NO_REPEAT="TRUE">
<CODE>
- debugger.jedit.Plugin.toggleBreakpoint(view);
+ gdb.core.Debugger.getInstance().toggleBreakpoint(view);
</CODE>
</ACTION>
<ACTION NAME="debugger-set-breakpoint" NO_REPEAT="TRUE">
<CODE>
- debugger.jedit.Plugin.setBreakpoint(view);
+ gdb.core.Debugger.getInstance().setBreakpoint(view);
</CODE>
</ACTION>
<ACTION NAME="debugger-remove-breakpoint" NO_REPEAT="TRUE">
<CODE>
- debugger.jedit.Plugin.removeBreakpoint(view);
+ gdb.core.Debugger.getInstance().removeBreakpoint(view);
</CODE>
</ACTION>
Modified: plugins/GdbPlugin/trunk/debugger/jedit/Plugin.java
===================================================================
--- plugins/GdbPlugin/trunk/debugger/jedit/Plugin.java 2007-03-30 12:23:39 UTC (rev \
9359)
+++ plugins/GdbPlugin/trunk/debugger/jedit/Plugin.java 2007-03-30 12:31:04 UTC (rev \
9360) @@ -54,37 +54,6 @@
removeCurrentPositionPainter();
}
- public static void toggleBreakpoint(View view)
- {
- Buffer buffer = view.getBuffer();
- JEditTextArea ta = view.getTextArea();
- int line = ta.getCaretLine() + 1;
- Vector<Breakpoint> breakpoints =
- BreakpointList.getInstance().get(buffer.getPath(), line);
- if (breakpoints.isEmpty())
- setBreakpoint(view);
- else
- removeBreakpoint(view);
- }
- public static void setBreakpoint(View view) {
- Buffer buffer = view.getBuffer();
- JEditTextArea ta = view.getTextArea();
- int line = ta.getCaretLine() + 1;
- new Breakpoint(view, debugger, buffer, line);
- }
- public static void removeBreakpoint(View view) {
- Buffer buffer = view.getBuffer();
- JEditTextArea ta = view.getTextArea();
- int line = ta.getCaretLine() + 1;
- Vector<Breakpoint> breakpoints =
- BreakpointList.getInstance().get(buffer.getPath(), line);
- if (breakpoints.isEmpty())
- return;
- for (int i = 0; i < breakpoints.size(); i++) {
- Breakpoint b = breakpoints.get(i);
- b.remove();
- }
- }
static CurrentPositionPainter dp = null;
static View dpview = null;
private static void jumpTo(final String file, final int line, final boolean \
isCurrent) {
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic