arcadia 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +8 -10
- data/bin/arcadia +13 -13
- data/bin/arcadia.bat +0 -0
- data/conf/arcadia.conf +35 -18
- data/conf/arcadia.init.rb +0 -0
- data/conf/arcadia.res.rb +10 -0
- data/ext/ae-breakpoints/ae-breakpoints.conf +0 -0
- data/ext/ae-breakpoints/ae-breakpoints.rb +368 -349
- data/ext/ae-editor/ae-editor.conf +2 -2
- data/ext/ae-editor/ae-editor.rb +1248 -445
- data/ext/ae-editor/langs/conf.lang +0 -0
- data/ext/ae-editor/langs/lang.lang.bind +0 -0
- data/ext/ae-editor/langs/rb.lang +0 -0
- data/ext/ae-editor/langs/rbw.lang.bind +0 -0
- data/ext/ae-file-history/ae-file-history.conf +1 -1
- data/ext/ae-file-history/ae-file-history.rb +23 -17
- data/ext/ae-output/ae-output.conf +0 -0
- data/ext/ae-output/ae-output.rb +262 -200
- data/ext/ae-rad/ae-rad-inspector.rb +34 -26
- data/ext/ae-rad/ae-rad-libs.rb +0 -0
- data/ext/ae-rad/ae-rad-palette.rb +0 -0
- data/ext/ae-rad/ae-rad.conf +0 -0
- data/ext/ae-rad/ae-rad.rb +0 -0
- data/ext/ae-rad/lib/tk/al-tk.rb +6 -2
- data/ext/ae-rad/lib/tk/al-tk.res.rb +0 -0
- data/ext/ae-rad/lib/tk/al-tkarcadia.rb +0 -0
- data/ext/ae-rad/lib/tk/al-tkcustom.rb +0 -0
- data/ext/ae-rad/lib/tkext/al-bwidget.rb +0 -0
- data/ext/ae-rad/lib/tkext/al-iwidgets.rb +0 -0
- data/ext/ae-rad/lib/tkext/al-tile.rb +0 -0
- data/ext/ae-rad/lib/tkext/al-tktable.rb +0 -0
- data/ext/ae-ruby-debug/ae-ruby-debug.conf +0 -0
- data/ext/ae-ruby-debug/ae-ruby-debug.rb +1 -0
- data/ext/ae-search-in-files/ae-search-in-files.conf +0 -0
- data/ext/ae-search-in-files/ae-search-in-files.rb +14 -10
- data/ext/ae-shell/ae-shell.conf +0 -0
- data/ext/ae-shell/ae-shell.rb +1 -1
- data/ext/ae-shell/sh.rb +0 -0
- data/lib/a-commons.rb +5 -1
- data/lib/a-contracts.rb +1 -0
- data/lib/a-core.rb +40 -9
- data/lib/a-tkcommons.rb +229 -1
- data/tcl/BWidget-1.8.0/BWman/ArrowButton.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/BWidget.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/Button.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/ButtonBox.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/ComboBox.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/Dialog.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/DragSite.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/DropSite.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/DynamicHelp.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/Entry.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/Label.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/LabelEntry.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/LabelFrame.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/ListBox.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/MainFrame.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/MessageDlg.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/NoteBook.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/PagesManager.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/PanedWindow.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/PanelFrame.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/PasswdDlg.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/ProgressBar.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/ProgressDlg.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/ScrollView.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/ScrollableFrame.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/ScrolledWindow.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/SelectColor.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/SelectFont.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/Separator.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/SpinBox.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/StatusBar.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/TitleFrame.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/Tree.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/Widget.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/contents.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/index.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/navtree.html +0 -0
- data/tcl/BWidget-1.8.0/BWman/options.htm +0 -0
- data/tcl/BWidget-1.8.0/CHANGES.txt +0 -0
- data/tcl/BWidget-1.8.0/ChangeLog +0 -0
- data/tcl/BWidget-1.8.0/LICENSE.txt +0 -0
- data/tcl/BWidget-1.8.0/README.txt +0 -0
- data/tcl/BWidget-1.8.0/arrow.tcl +0 -0
- data/tcl/BWidget-1.8.0/bitmap.tcl +0 -0
- data/tcl/BWidget-1.8.0/button.tcl +0 -0
- data/tcl/BWidget-1.8.0/buttonbox.tcl +0 -0
- data/tcl/BWidget-1.8.0/color.tcl +0 -0
- data/tcl/BWidget-1.8.0/combobox.tcl +0 -0
- data/tcl/BWidget-1.8.0/demo/basic.tcl +0 -0
- data/tcl/BWidget-1.8.0/demo/bwidget.xbm +0 -0
- data/tcl/BWidget-1.8.0/demo/demo.tcl +0 -0
- data/tcl/BWidget-1.8.0/demo/dnd.tcl +0 -0
- data/tcl/BWidget-1.8.0/demo/manager.tcl +0 -0
- data/tcl/BWidget-1.8.0/demo/select.tcl +0 -0
- data/tcl/BWidget-1.8.0/demo/tmpldlg.tcl +0 -0
- data/tcl/BWidget-1.8.0/demo/tree.tcl +0 -0
- data/tcl/BWidget-1.8.0/demo/x1.xbm +0 -0
- data/tcl/BWidget-1.8.0/dialog.tcl +0 -0
- data/tcl/BWidget-1.8.0/dragsite.tcl +0 -0
- data/tcl/BWidget-1.8.0/dropsite.tcl +0 -0
- data/tcl/BWidget-1.8.0/dynhelp.tcl +0 -0
- data/tcl/BWidget-1.8.0/entry.tcl +0 -0
- data/tcl/BWidget-1.8.0/font.tcl +0 -0
- data/tcl/BWidget-1.8.0/images/bold.gif +0 -0
- data/tcl/BWidget-1.8.0/images/copy.gif +0 -0
- data/tcl/BWidget-1.8.0/images/cut.gif +0 -0
- data/tcl/BWidget-1.8.0/images/dragfile.gif +0 -0
- data/tcl/BWidget-1.8.0/images/dragicon.gif +0 -0
- data/tcl/BWidget-1.8.0/images/error.gif +0 -0
- data/tcl/BWidget-1.8.0/images/file.gif +0 -0
- data/tcl/BWidget-1.8.0/images/folder.gif +0 -0
- data/tcl/BWidget-1.8.0/images/hourglass.gif +0 -0
- data/tcl/BWidget-1.8.0/images/info.gif +0 -0
- data/tcl/BWidget-1.8.0/images/italic.gif +0 -0
- data/tcl/BWidget-1.8.0/images/minus.xbm +0 -0
- data/tcl/BWidget-1.8.0/images/new.gif +0 -0
- data/tcl/BWidget-1.8.0/images/opcopy.xbm +0 -0
- data/tcl/BWidget-1.8.0/images/open.gif +0 -0
- data/tcl/BWidget-1.8.0/images/openfold.gif +0 -0
- data/tcl/BWidget-1.8.0/images/oplink.xbm +0 -0
- data/tcl/BWidget-1.8.0/images/opmove.xbm +0 -0
- data/tcl/BWidget-1.8.0/images/overstrike.gif +0 -0
- data/tcl/BWidget-1.8.0/images/palette.gif +0 -0
- data/tcl/BWidget-1.8.0/images/passwd.gif +0 -0
- data/tcl/BWidget-1.8.0/images/paste.gif +0 -0
- data/tcl/BWidget-1.8.0/images/plus.xbm +0 -0
- data/tcl/BWidget-1.8.0/images/print.gif +0 -0
- data/tcl/BWidget-1.8.0/images/question.gif +0 -0
- data/tcl/BWidget-1.8.0/images/redo.gif +0 -0
- data/tcl/BWidget-1.8.0/images/save.gif +0 -0
- data/tcl/BWidget-1.8.0/images/target.xbm +0 -0
- data/tcl/BWidget-1.8.0/images/underline.gif +0 -0
- data/tcl/BWidget-1.8.0/images/undo.gif +0 -0
- data/tcl/BWidget-1.8.0/images/warning.gif +0 -0
- data/tcl/BWidget-1.8.0/init.tcl +0 -0
- data/tcl/BWidget-1.8.0/label.tcl +0 -0
- data/tcl/BWidget-1.8.0/labelentry.tcl +0 -0
- data/tcl/BWidget-1.8.0/labelframe.tcl +0 -0
- data/tcl/BWidget-1.8.0/lang/da.rc +0 -0
- data/tcl/BWidget-1.8.0/lang/de.rc +0 -0
- data/tcl/BWidget-1.8.0/lang/en.rc +0 -0
- data/tcl/BWidget-1.8.0/lang/es.rc +0 -0
- data/tcl/BWidget-1.8.0/lang/fr.rc +0 -0
- data/tcl/BWidget-1.8.0/listbox.tcl +0 -0
- data/tcl/BWidget-1.8.0/mainframe.tcl +0 -0
- data/tcl/BWidget-1.8.0/messagedlg.tcl +0 -0
- data/tcl/BWidget-1.8.0/notebook.tcl +0 -0
- data/tcl/BWidget-1.8.0/pagesmgr.tcl +0 -0
- data/tcl/BWidget-1.8.0/panedw.tcl +0 -0
- data/tcl/BWidget-1.8.0/panelframe.tcl +0 -0
- data/tcl/BWidget-1.8.0/passwddlg.tcl +0 -0
- data/tcl/BWidget-1.8.0/pkgIndex.tcl +0 -0
- data/tcl/BWidget-1.8.0/progressbar.tcl +0 -0
- data/tcl/BWidget-1.8.0/progressdlg.tcl +0 -0
- data/tcl/BWidget-1.8.0/scrollframe.tcl +0 -0
- data/tcl/BWidget-1.8.0/scrollview.tcl +0 -0
- data/tcl/BWidget-1.8.0/scrollw.tcl +0 -0
- data/tcl/BWidget-1.8.0/separator.tcl +0 -0
- data/tcl/BWidget-1.8.0/spinbox.tcl +0 -0
- data/tcl/BWidget-1.8.0/statusbar.tcl +0 -0
- data/tcl/BWidget-1.8.0/tests/entry.test +0 -0
- data/tcl/BWidget-1.8.0/titleframe.tcl +0 -0
- data/tcl/BWidget-1.8.0/tree.tcl +0 -0
- data/tcl/BWidget-1.8.0/utils.tcl +0 -0
- data/tcl/BWidget-1.8.0/widget.tcl +0 -0
- data/tcl/BWidget-1.8.0/wizard.tcl +0 -0
- data/tcl/BWidget-1.8.0/xpm2image.tcl +0 -0
- metadata +2 -25
- data/ext/ae-complete-code/ae-complete-code.conf +0 -6
- data/ext/ae-complete-code/ae-complete-code.rb +0 -74
- data/ext/ae-doc-code/ae-doc-code.conf +0 -15
- data/ext/ae-doc-code/ae-doc-code.rb +0 -300
- data/ext/ae-event-log/ae-event-log.conf +0 -5
- data/ext/ae-event-log/ae-event-log.rb +0 -46
- data/ext/ae-flag/ae-flag.conf +0 -6
- data/ext/ae-flag/ae-flag.rb +0 -12
- data/ext/ae-output-event/ae-output-event.conf +0 -15
data/README
CHANGED
@@ -1,27 +1,26 @@
|
|
1
1
|
= Arcadia Ruby Ide
|
2
|
-
version 0.
|
2
|
+
version 0.5.0
|
3
3
|
|
4
4
|
by Antonio Galeone
|
5
|
-
on
|
5
|
+
on Aug 31, 2008
|
6
6
|
|
7
7
|
|
8
8
|
== About
|
9
9
|
|
10
|
-
Arcadia is a Integrated Development Environment (IDE) for Ruby language
|
10
|
+
Arcadia is a Light Integrated Development Environment (IDE) for Ruby language
|
11
11
|
written in Ruby using the classic tcl/tk GUI toolkit.
|
12
12
|
|
13
13
|
Some of Arcadia ruby ide project features include:
|
14
14
|
* Editor with source browsing, syntax highlighting, code completion
|
15
15
|
* Debugging support
|
16
|
-
* Contextual ruby documentation
|
17
16
|
* Working on any platform where ruby and tcl-tk work.
|
18
17
|
* Highly extensibility architecture.
|
19
18
|
|
20
19
|
== In this release
|
21
|
-
* [fix] bug
|
22
|
-
* [
|
20
|
+
* [fix] fixed bug [#21385] Output window doesn't allow horizontal scrolling
|
21
|
+
* [fix] fixed bug [#21384] Hangs attempting intellisense
|
22
|
+
* [mod] rewritten intellisense logic
|
23
23
|
* [mod] Improved editor
|
24
|
-
* [mod] Improved debugger
|
25
24
|
|
26
25
|
== How to install
|
27
26
|
There are two way:
|
@@ -74,7 +73,6 @@ These are same editor short-cut:
|
|
74
73
|
- Ctrl-shift-c => comment/uncomment the selected code block
|
75
74
|
- F5 => execute the file
|
76
75
|
- F3 => find/ find next
|
77
|
-
- F1 => contextual ruby documentation (called from editor or from code completion item)
|
78
76
|
|
79
77
|
- Double-Click on line number set or unset a debug breakpoint
|
80
78
|
|
@@ -112,8 +110,8 @@ under ~/.arcadia directory. The format of property definition are:
|
|
112
110
|
== Requirement
|
113
111
|
I include into distribution also the BWidget lib (under tcl directory) so
|
114
112
|
are require realy only the standard tcl tk lib (tested on tcl tk 8.4 & tcl tk 8.5).
|
115
|
-
I have tested arcadia with ruby 1.8.4, 1.8.5, 1.8.6 on
|
116
|
-
* FreeBsd6.x,
|
113
|
+
I have tested arcadia with ruby 1.8.4, 1.8.5, 1.8.6, 1.8.7 on
|
114
|
+
* FreeBsd6.x, FreeBsd7.x,
|
117
115
|
* Vector linux 5.*,
|
118
116
|
* Archlinux
|
119
117
|
* Windows 2000/XP,
|
data/bin/arcadia
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
#
|
3
|
-
# arcadia - Arcadia Ruby ide
|
4
|
-
# by Antonio Galeone <antonio-galeone@rubyforge.org>
|
5
|
-
#
|
6
|
-
|
7
|
-
$pwd = Dir.pwd
|
8
|
-
Dir.chdir("#{File.dirname(__FILE__)}/..")
|
9
|
-
if FileTest.exist?('conf/arcadia.init.rb')
|
10
|
-
require 'conf/arcadia.init'
|
11
|
-
end
|
12
|
-
require "lib/a-core"
|
13
|
-
Arcadia.new.run
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# arcadia - Arcadia Ruby ide
|
4
|
+
# by Antonio Galeone <antonio-galeone@rubyforge.org>
|
5
|
+
#
|
6
|
+
|
7
|
+
$pwd = Dir.pwd
|
8
|
+
Dir.chdir("#{File.dirname(__FILE__)}/..")
|
9
|
+
if FileTest.exist?('conf/arcadia.init.rb')
|
10
|
+
require 'conf/arcadia.init'
|
11
|
+
end
|
12
|
+
require "lib/a-core"
|
13
|
+
Arcadia.new.run
|
data/bin/arcadia.bat
CHANGED
File without changes
|
data/conf/arcadia.conf
CHANGED
@@ -10,10 +10,16 @@ arm::layout.splitter.length=10
|
|
10
10
|
#layout.split=1,2
|
11
11
|
#layout.split.1=0.0r70%
|
12
12
|
#layout.split.2=0.0c20%
|
13
|
+
|
13
14
|
layout.split=1,2
|
14
15
|
layout.split.1=0.0c20%
|
15
16
|
layout.split.2=0.1r70%
|
16
17
|
|
18
|
+
#layout.split=1,2,3
|
19
|
+
#layout.split.1=0.0c20%
|
20
|
+
#layout.split.2=0.0r30%
|
21
|
+
#layout.split.3=0.1r70%
|
22
|
+
|
17
23
|
#:::::::::::::::: layout ::::::::::::::::::::::<end>
|
18
24
|
#:::::::::::::::::::::::::::::::::::::::::::::::::<begin>
|
19
25
|
font.h1=
|
@@ -52,6 +58,7 @@ scrollbar.background=>>>background
|
|
52
58
|
scrollbar.highlightbackground=>>>background
|
53
59
|
scrollbar.relief=flat
|
54
60
|
scrollbar.borderwidth=1
|
61
|
+
scrollbar.elementborderwidth=1
|
55
62
|
|
56
63
|
titlelabel.background=#303b50
|
57
64
|
titlelabel.foreground=#e8e651
|
@@ -200,9 +207,9 @@ hightlight.16.relief=groove
|
|
200
207
|
|
201
208
|
#:::::::::::::::::::::::::::::::::::::::::::::::::<end>
|
202
209
|
#:::::::::::::::: toolbar ::::::::::::::::::::::<begin>
|
203
|
-
user_toolbar.contexts=file,run
|
210
|
+
user_toolbar.contexts=file,run,debug
|
204
211
|
#,sys
|
205
|
-
user_toolbar.file=new,open,save
|
212
|
+
user_toolbar.file=new,open,save,find
|
206
213
|
user_toolbar.file.new.name=new
|
207
214
|
user_toolbar.file.new.hint=New file
|
208
215
|
user_toolbar.file.new.image_data=PAGE_WHITE_ADD_GIF
|
@@ -218,7 +225,13 @@ user_toolbar.file.save.hint=Save current file
|
|
218
225
|
user_toolbar.file.save.image_data=BACKUP_GIF
|
219
226
|
user_toolbar.file.save.event_class=SaveBufferEvent
|
220
227
|
|
221
|
-
user_toolbar.
|
228
|
+
user_toolbar.file.find.name=find
|
229
|
+
user_toolbar.file.find.hint=Search on current file
|
230
|
+
user_toolbar.file.find.image_data=LARGE_FIND_GIF
|
231
|
+
user_toolbar.file.find.event_class=SearchBufferEvent
|
232
|
+
|
233
|
+
|
234
|
+
user_toolbar.run=runcurr,runlast
|
222
235
|
|
223
236
|
user_toolbar.run.runcurr.name=run_current
|
224
237
|
user_toolbar.run.runcurr.hint=Run current
|
@@ -231,21 +244,25 @@ user_toolbar.run.runlast.image_data=RUN_LAST_GIF
|
|
231
244
|
user_toolbar.run.runlast.event_class=RunRubyFileEvent
|
232
245
|
user_toolbar.run.runlast.event_args={'file'=>"*LAST"}
|
233
246
|
|
234
|
-
|
235
|
-
user_toolbar.
|
236
|
-
|
237
|
-
user_toolbar.
|
238
|
-
|
239
|
-
user_toolbar.
|
240
|
-
user_toolbar.
|
241
|
-
|
242
|
-
user_toolbar.
|
243
|
-
user_toolbar.
|
244
|
-
|
245
|
-
user_toolbar.
|
246
|
-
user_toolbar.
|
247
|
-
|
248
|
-
user_toolbar.
|
247
|
+
|
248
|
+
user_toolbar.debug=debugcurr,debuglast,debugquit
|
249
|
+
|
250
|
+
user_toolbar.debug.debugcurr.name=debug
|
251
|
+
user_toolbar.debug.debugcurr.hint=Debug current
|
252
|
+
user_toolbar.debug.debugcurr.image_data=DEBUG_CURRENT_GIF
|
253
|
+
user_toolbar.debug.debugcurr.event_class=StartDebugEvent
|
254
|
+
|
255
|
+
user_toolbar.debug.debuglast.name=debug
|
256
|
+
user_toolbar.debug.debuglast.hint=Debug last
|
257
|
+
user_toolbar.debug.debuglast.image_data=DEBUG_LAST_GIF
|
258
|
+
user_toolbar.debug.debuglast.event_class=StartDebugEvent
|
259
|
+
user_toolbar.debug.debuglast.event_args={'file'=>"*LAST"}
|
260
|
+
|
261
|
+
user_toolbar.debug.debugquit.name=debugquit
|
262
|
+
user_toolbar.debug.debugquit.hint=Quit debug
|
263
|
+
user_toolbar.debug.debugquit.image_data=DEBUG_QUIT_GIF
|
264
|
+
user_toolbar.debug.debugquit.event_class=StopDebugEvent
|
265
|
+
|
249
266
|
|
250
267
|
e.user_toolbar.contexts=sys
|
251
268
|
e.user_toolbar.sys=exit
|
data/conf/arcadia.init.rb
CHANGED
File without changes
|
data/conf/arcadia.res.rb
CHANGED
@@ -1346,3 +1346,13 @@ ICON_FOLDER_OPEN_GIF=<<EOS
|
|
1346
1346
|
R0lGODlhEAAQAIAAAGaZ/////yH5BAEAAAEALAAAAAAQABAAAAImjI+pq+DP
|
1347
1347
|
wptgwXORi2kbCnpSSH2VdYlatanrCDen283khN0ZpxQAOw==
|
1348
1348
|
EOS
|
1349
|
+
|
1350
|
+
LARGE_FIND_GIF=<<EOS
|
1351
|
+
R0lGODlhFwAUAMQQALa0tNra2kJCAZzO/m5uMLGtZWex+cXFxYC++sPDw8TE
|
1352
|
+
xNbo/05OTv/23Glpaf///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
1353
|
+
AAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABAALAAAAAAXABQAAAV4ICSOZGme
|
1354
|
+
aJo6bMuqpdPM9AuLMj07j6MqjCBDoXOhgIDAAjBkFU/AxWBgMCyGuobPxAAs
|
1355
|
+
vlID06U9MQIP8AJxzW5L50f6OwgwyG9SVz4fMN0nCQwLfAtACnhHXQEBTAQF
|
1356
|
+
gCgHQkMCjy55N5YFNymbnSgCAqCkpSghADs=
|
1357
|
+
EOS
|
1358
|
+
|
File without changes
|
@@ -1,349 +1,368 @@
|
|
1
|
-
#
|
2
|
-
# ae-breakpoints.rb - Arcadia Ruby ide
|
3
|
-
# by Antonio Galeone <antonio-galeone@rubyforge.org>
|
4
|
-
#
|
5
|
-
|
6
|
-
class Breakpoints < ArcadiaExt
|
7
|
-
def on_before_build(_event)
|
8
|
-
@ui_builded = false
|
9
|
-
@breakpoints =Array.new
|
10
|
-
Arcadia.attach_listener(self, DebugEvent)
|
11
|
-
end
|
12
|
-
|
13
|
-
def on_build(_event)
|
14
|
-
load_persistent_breakpoints
|
15
|
-
end
|
16
|
-
|
17
|
-
def on_finalize(_event)
|
18
|
-
_breakpoints = '';
|
19
|
-
@breakpoints.each{|point|
|
20
|
-
if point[:file] != nil
|
21
|
-
_breakpoints=_breakpoints+'|' if _breakpoints.strip.length > 0
|
22
|
-
_breakpoints=_breakpoints + "#{point[:file]}@@@#{point[:line]}@@@#{point[:active]}"
|
23
|
-
# _file_node = file2node_name(point[:file])
|
24
|
-
# _line_node = line2node_name(_file_node, point[:line])
|
25
|
-
# _check = @tree_break.itemcget(_line_node, 'window')
|
26
|
-
# if _check
|
27
|
-
# _breakpoints="#{_breakpoints}@@@#{_check.cget('variable').value}"
|
28
|
-
# end
|
29
|
-
end
|
30
|
-
}
|
31
|
-
Arcadia.persistent('breakpoints', _breakpoints)
|
32
|
-
end
|
33
|
-
|
34
|
-
def load_persistent_breakpoints
|
35
|
-
b = Arcadia.persistent('breakpoints')
|
36
|
-
if b
|
37
|
-
_files_list =b.split("|")
|
38
|
-
_files_list.each do |value|
|
39
|
-
_file,_line,_active = value.split('@@@')
|
40
|
-
if _file && _line && _active
|
41
|
-
Arcadia.process_event(SetBreakpointEvent.new(self, 'file'=>_file, 'row'=>_line, 'active'=>_active.to_i))
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
|
48
|
-
def ensure_build_ui
|
49
|
-
if !@ui_builded
|
50
|
-
build_ui
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
def build_ui
|
55
|
-
do_select_item = proc{|_self|
|
56
|
-
if _self.selection_get[0].length >0
|
57
|
-
_selected = ""
|
58
|
-
_self.selection_get[0].each{|_block|
|
59
|
-
_selected = _selected + _block.to_s + "\s"
|
60
|
-
}
|
61
|
-
_selected = _selected.strip
|
62
|
-
else
|
63
|
-
_selected = _self.selection_get[0]
|
64
|
-
end
|
65
|
-
_node_name, _line = _selected.split('_')
|
66
|
-
if _node_name && _line
|
67
|
-
_file = _self.itemcget(_node_name, 'text')
|
68
|
-
if _file
|
69
|
-
Arcadia.process_event(OpenBufferEvent.new(self,'file'=>_file, 'row'=>_line))
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
_file
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
:
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
:
|
130
|
-
:
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
:command
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
}
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
1
|
+
#
|
2
|
+
# ae-breakpoints.rb - Arcadia Ruby ide
|
3
|
+
# by Antonio Galeone <antonio-galeone@rubyforge.org>
|
4
|
+
#
|
5
|
+
|
6
|
+
class Breakpoints < ArcadiaExt
|
7
|
+
def on_before_build(_event)
|
8
|
+
@ui_builded = false
|
9
|
+
@breakpoints =Array.new
|
10
|
+
Arcadia.attach_listener(self, DebugEvent)
|
11
|
+
end
|
12
|
+
|
13
|
+
def on_build(_event)
|
14
|
+
load_persistent_breakpoints
|
15
|
+
end
|
16
|
+
|
17
|
+
def on_finalize(_event)
|
18
|
+
_breakpoints = '';
|
19
|
+
@breakpoints.each{|point|
|
20
|
+
if point[:file] != nil
|
21
|
+
_breakpoints=_breakpoints+'|' if _breakpoints.strip.length > 0
|
22
|
+
_breakpoints=_breakpoints + "#{point[:file]}@@@#{point[:line]}@@@#{point[:active]}"
|
23
|
+
# _file_node = file2node_name(point[:file])
|
24
|
+
# _line_node = line2node_name(_file_node, point[:line])
|
25
|
+
# _check = @tree_break.itemcget(_line_node, 'window')
|
26
|
+
# if _check
|
27
|
+
# _breakpoints="#{_breakpoints}@@@#{_check.cget('variable').value}"
|
28
|
+
# end
|
29
|
+
end
|
30
|
+
}
|
31
|
+
Arcadia.persistent('breakpoints', _breakpoints)
|
32
|
+
end
|
33
|
+
|
34
|
+
def load_persistent_breakpoints
|
35
|
+
b = Arcadia.persistent('breakpoints')
|
36
|
+
if b
|
37
|
+
_files_list =b.split("|")
|
38
|
+
_files_list.each do |value|
|
39
|
+
_file,_line,_active = value.split('@@@')
|
40
|
+
if _file && _line && _active
|
41
|
+
Arcadia.process_event(SetBreakpointEvent.new(self, 'file'=>_file, 'row'=>_line, 'active'=>_active.to_i))
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
def ensure_build_ui
|
49
|
+
if !@ui_builded
|
50
|
+
build_ui
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def build_ui
|
55
|
+
# do_select_item = proc{|_self|
|
56
|
+
# if _self.selection_get[0].length >0
|
57
|
+
# _selected = ""
|
58
|
+
# _self.selection_get[0].each{|_block|
|
59
|
+
# _selected = _selected + _block.to_s + "\s"
|
60
|
+
# }
|
61
|
+
# _selected = _selected.strip
|
62
|
+
# else
|
63
|
+
# _selected = _self.selection_get[0]
|
64
|
+
# end
|
65
|
+
# _node_name, _line = _selected.split('_')
|
66
|
+
# if _node_name && _line
|
67
|
+
# _file = _self.itemcget(_node_name, 'text')
|
68
|
+
# if _file
|
69
|
+
# Arcadia.process_event(OpenBufferEvent.new(self,'file'=>_file, 'row'=>_line))
|
70
|
+
# end
|
71
|
+
# end
|
72
|
+
# }
|
73
|
+
|
74
|
+
@tree_break = Tk::BWidget::Tree.new(self.frame.hinner_frame, Arcadia.style('treepanel')){
|
75
|
+
#showlines true
|
76
|
+
deltay 18
|
77
|
+
padx 25
|
78
|
+
#selectcommand proc{ do_select_item.call(self) }
|
79
|
+
}.place('relwidth' => 1,'relheight' => '1')
|
80
|
+
|
81
|
+
build_popup
|
82
|
+
|
83
|
+
@ui_builded = true
|
84
|
+
end
|
85
|
+
|
86
|
+
|
87
|
+
def unbuild_ui
|
88
|
+
if @ui_builded
|
89
|
+
|
90
|
+
@ui_builded = false
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
def goto_select_item
|
95
|
+
_file, _line = get_tree_selection(@tree_break)
|
96
|
+
if _file && _line
|
97
|
+
Arcadia.process_event(OpenBufferEvent.new(self,'file'=>_file, 'row'=>_line))
|
98
|
+
elsif _file
|
99
|
+
Arcadia.process_event(OpenBufferEvent.new(self,'file'=>_file, 'row'=>0))
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
def raise_clear_selected(_delete=false)
|
106
|
+
_file, _line = get_tree_selection(@tree_break)
|
107
|
+
if _file && _line
|
108
|
+
Arcadia.process_event(UnsetBreakpointEvent.new(self, 'file'=>_file, 'row'=>_line, 'delete'=>_delete))
|
109
|
+
elsif _file
|
110
|
+
_node_name = file2node_name(_file)
|
111
|
+
sons = @tree_break.nodes(_node_name)
|
112
|
+
if sons
|
113
|
+
sons.each{|son|
|
114
|
+
_nil, _l = son.split('_')
|
115
|
+
Arcadia.process_event(UnsetBreakpointEvent.new(self, 'file'=>_file, 'row'=>_l, 'delete'=>_delete)) if _l
|
116
|
+
}
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
def build_popup
|
122
|
+
_pop_up = TkMenu.new(
|
123
|
+
:parent=>@tree_break,
|
124
|
+
:tearoff=>0,
|
125
|
+
:title => 'Menu'
|
126
|
+
)
|
127
|
+
_pop_up.configure(Arcadia.style('menu'))
|
128
|
+
_title_item = _pop_up.insert('end',
|
129
|
+
:command,
|
130
|
+
:label=>'...',
|
131
|
+
:state=>'disabled',
|
132
|
+
:background=>Arcadia.conf('titlelabel.background'),
|
133
|
+
:hidemargin => true
|
134
|
+
)
|
135
|
+
|
136
|
+
_pop_up.insert('end',
|
137
|
+
:command,
|
138
|
+
:label=>'Clear breakpoint',
|
139
|
+
:hidemargin => false,
|
140
|
+
:command=> proc{raise_clear_selected}
|
141
|
+
)
|
142
|
+
|
143
|
+
_pop_up.insert('end',
|
144
|
+
:command,
|
145
|
+
:label=>'Delete breakpoint',
|
146
|
+
:hidemargin => false,
|
147
|
+
:command=> proc{raise_clear_selected(true)}
|
148
|
+
)
|
149
|
+
|
150
|
+
_pop_up.insert('end',
|
151
|
+
:command,
|
152
|
+
:label=>'Goto breakpoint',
|
153
|
+
:hidemargin => false,
|
154
|
+
:command=> proc{goto_select_item}
|
155
|
+
)
|
156
|
+
|
157
|
+
|
158
|
+
@tree_break.textbind_append("Button-3",
|
159
|
+
proc{|*x|
|
160
|
+
_x = TkWinfo.pointerx(@tree_break)
|
161
|
+
_y = TkWinfo.pointery(@tree_break)
|
162
|
+
_selected = @tree_break.selection_get[0]
|
163
|
+
_file, _line = get_tree_selection(@tree_break)
|
164
|
+
_label = _file
|
165
|
+
if _line
|
166
|
+
_label << " line: #{_line}"
|
167
|
+
end
|
168
|
+
_pop_up.entryconfigure(0,'label'=>_label)
|
169
|
+
|
170
|
+
_pop_up.popup(_x,_y)
|
171
|
+
})
|
172
|
+
end
|
173
|
+
|
174
|
+
def get_tree_selection(_tree)
|
175
|
+
_ret = Array.new
|
176
|
+
_selected = _tree.selection_get[0]
|
177
|
+
if _selected
|
178
|
+
_node_name, _line = _selected.split('_')
|
179
|
+
_ret << _tree.itemcget(_node_name, 'text')
|
180
|
+
_ret << _line if _line
|
181
|
+
end
|
182
|
+
_ret
|
183
|
+
end
|
184
|
+
|
185
|
+
|
186
|
+
def on_debug(_event)
|
187
|
+
case _event
|
188
|
+
when SetBreakpointEvent
|
189
|
+
ensure_build_ui
|
190
|
+
@breakpoints << {:file=>_event.file,:line=>_event.row, :active=>_event.active}
|
191
|
+
self.breakpoint_add(File.expand_path(_event.file), _event.row, _event.active==1)
|
192
|
+
when UnsetBreakpointEvent
|
193
|
+
if @ui_builded
|
194
|
+
if _event.delete
|
195
|
+
@breakpoints.delete_if{|b| (b[:file]==_event.file && b[:line]==_event.row)}
|
196
|
+
else
|
197
|
+
@breakpoints.collect! {|b|
|
198
|
+
if b[:file]==_event.file && b[:line]==_event.row
|
199
|
+
b[:active]=0
|
200
|
+
end
|
201
|
+
b
|
202
|
+
}
|
203
|
+
end
|
204
|
+
self.breakpoint_del(File.expand_path(_event.file), _event.row, _event.delete)
|
205
|
+
#self.breakpoint_del(File.expand_path(_event.file), _event.row, _event.sender != self)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
def on_debug_step_info(_event)
|
211
|
+
#Arcadia.console(self, :msg=> "ae-breakpoints -> DebugStepInfoEvent")
|
212
|
+
if @ui_builded
|
213
|
+
self.breakpoint_select(_event.file, _event.row)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
def file2node_name(_file)
|
218
|
+
_file = File.expand_path(_file)
|
219
|
+
#_file = File.basename(_file)
|
220
|
+
_s = ""
|
221
|
+
_file.gsub("/",_s).gsub(".",_s).gsub(":",_s).gsub("\\",_s).gsub("-",_s)
|
222
|
+
end
|
223
|
+
|
224
|
+
def new_check_button(_node_name, _value=1)
|
225
|
+
_command = proc {|_checkbutton|
|
226
|
+
_file_node_name, _line = _node_name.split('_')
|
227
|
+
_file = @tree_break.itemcget(_file_node_name, 'text')
|
228
|
+
if _checkbutton.cget('variable').value.to_i==0
|
229
|
+
if _file && _line
|
230
|
+
Arcadia.process_event(UnsetBreakpointEvent.new(self, 'file'=>_file, 'row'=>_line))
|
231
|
+
elsif _file
|
232
|
+
sons = @tree_break.nodes(_node_name)
|
233
|
+
if sons
|
234
|
+
sons.each{|son|
|
235
|
+
_nil, _l = son.split('_')
|
236
|
+
Arcadia.process_event(UnsetBreakpointEvent.new(self, 'file'=>_file, 'row'=>_l)) if _l
|
237
|
+
}
|
238
|
+
end
|
239
|
+
end
|
240
|
+
else
|
241
|
+
if _file && _line
|
242
|
+
Arcadia.process_event(SetBreakpointEvent.new(self, 'file'=>_file, 'row'=>_line, 'active'=>1))
|
243
|
+
elsif _file
|
244
|
+
sons = @tree_break.nodes(_node_name)
|
245
|
+
if sons
|
246
|
+
sons.each{|son|
|
247
|
+
_nil, _l = son.split('_')
|
248
|
+
Arcadia.process_event(SetBreakpointEvent.new(self, 'file'=>_file, 'row'=>_l, 'active'=>1)) if _l
|
249
|
+
}
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
end
|
254
|
+
}
|
255
|
+
TkCheckButton.new(@tree_break, Arcadia.style('checkbox')){
|
256
|
+
#text _label
|
257
|
+
indicatoron true
|
258
|
+
padx 0
|
259
|
+
pady 0
|
260
|
+
variable TkVariable.new(_value)
|
261
|
+
background Arcadia.style('treepanel')['background']
|
262
|
+
borderwidth 0
|
263
|
+
command proc{_command.call(self)}
|
264
|
+
relief 'flat'
|
265
|
+
}
|
266
|
+
# _item_on_img = TkPhotoImage.new('dat' => ON_GIF)
|
267
|
+
# @item_off_img = TkPhotoImage.new('dat' => OFF_GIF)
|
268
|
+
# @b_item_onoff = TkButton.new(@tree_break, Arcadia.style('button')){
|
269
|
+
# image _item_on_img
|
270
|
+
# anchor 'nw'
|
271
|
+
# }.bind("1",proc{ })
|
272
|
+
end
|
273
|
+
|
274
|
+
def line2node_name(_parent, _line)
|
275
|
+
"#{_parent}_#{_line.to_s}"
|
276
|
+
end
|
277
|
+
|
278
|
+
def breakpoint_add(_file,_line, _active=true)
|
279
|
+
_file_node = file2node_name(_file)
|
280
|
+
_line_node = line2node_name(_file_node, _line)
|
281
|
+
(_active)?_check_value=1 : _check_value=0
|
282
|
+
if !@tree_break.exist?(_file_node)
|
283
|
+
@tree_break.insert('end', 'root' ,_file_node, {
|
284
|
+
'open'=>true,
|
285
|
+
'anchor'=>'w',
|
286
|
+
'text' => _file,
|
287
|
+
'deltax'=>-1,
|
288
|
+
'window' => new_check_button(_file_node, _check_value)
|
289
|
+
}.update(Arcadia.style('treeitem')))
|
290
|
+
elsif _active
|
291
|
+
_check = @tree_break.itemcget(_file_node, 'window')
|
292
|
+
_check.cget('variable').value=1
|
293
|
+
end
|
294
|
+
|
295
|
+
if !@tree_break.exist?(_line_node)
|
296
|
+
@tree_break.insert('end', _file_node ,_line_node, {
|
297
|
+
'open'=>true,
|
298
|
+
'anchor'=>'w',
|
299
|
+
'text' => "line: #{_line}",
|
300
|
+
'deltax'=>-1,
|
301
|
+
'window' => new_check_button(_line_node, _check_value)
|
302
|
+
}.update(Arcadia.style('treeitem')))
|
303
|
+
@tree_break.reorder(_file_node,@tree_break.nodes(_file_node).sort)
|
304
|
+
elsif _active
|
305
|
+
_check = @tree_break.itemcget(_line_node, 'window')
|
306
|
+
_check.cget('variable').value=1
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
def breakpoint_del(_file,_line, _delete=false)
|
311
|
+
_file_node = file2node_name(_file)
|
312
|
+
_line_node = line2node_name(_file_node, _line)
|
313
|
+
if @tree_break.exist?(_line_node)
|
314
|
+
begin
|
315
|
+
if _delete
|
316
|
+
_sc = @tree_break.cget('selectcommand')
|
317
|
+
@tree_break.configure('selectcommand'=>nil)
|
318
|
+
@tree_break.delete(_line_node)
|
319
|
+
else
|
320
|
+
_check = @tree_break.itemcget(_line_node, 'window')
|
321
|
+
_check.cget('variable').value=0
|
322
|
+
end
|
323
|
+
_bro = @tree_break.nodes(_file_node)
|
324
|
+
if _bro.nil? || _bro.length == 0
|
325
|
+
if _delete
|
326
|
+
@tree_break.delete(_file_node)
|
327
|
+
else
|
328
|
+
_check = @tree_break.itemcget(_file_node, 'window')
|
329
|
+
_check.cget('variable').value=0
|
330
|
+
end
|
331
|
+
elsif _bro.length > 0 && !_delete
|
332
|
+
is_checked = false
|
333
|
+
_bro.each{|n|
|
334
|
+
_check = @tree_break.itemcget(n, 'window')
|
335
|
+
v = _check.cget('variable').value
|
336
|
+
is_checked = is_checked || v.to_i==1
|
337
|
+
}
|
338
|
+
if !is_checked
|
339
|
+
_check = @tree_break.itemcget(_file_node, 'window')
|
340
|
+
_check.cget('variable').value=0
|
341
|
+
end
|
342
|
+
end
|
343
|
+
ensure
|
344
|
+
@tree_break.configure('selectcommand'=>_sc) if _delete
|
345
|
+
end
|
346
|
+
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
def breakpoint_select(_file, _line)
|
351
|
+
_file_node = file2node_name(_file)
|
352
|
+
_line_node = line2node_name(_file_node, _line)
|
353
|
+
@tree_break.selection_clear
|
354
|
+
#p "line node = #{_line_node}"
|
355
|
+
if @tree_break.exist?(_line_node)
|
356
|
+
@tree_break.open_tree(_file_node, false)
|
357
|
+
@tree_break.selection_add(_line_node)
|
358
|
+
@tree_break.see(_line_node)
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
|
363
|
+
def breakpoint_list_free
|
364
|
+
@tree_break.delete(@tree_break.nodes('root'))
|
365
|
+
end
|
366
|
+
|
367
|
+
|
368
|
+
end
|