redcar 0.11.0dev → 0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. data/CHANGES +14 -1
  2. data/README.md +28 -8
  3. data/Rakefile +23 -18
  4. data/bin/redcar +9 -4
  5. data/lib/redcar.rb +42 -4
  6. data/lib/redcar/installer.rb +7 -2
  7. data/lib/redcar/logger.rb +64 -0
  8. data/lib/redcar/runner.rb +17 -8
  9. data/lib/redcar/usage.rb +2 -0
  10. data/plugins/application/features/step_definitions/tree_steps.rb +4 -4
  11. data/plugins/application/features/support/env.rb +6 -6
  12. data/plugins/application/lib/application.rb +31 -3
  13. data/plugins/application/lib/application/command.rb +6 -0
  14. data/plugins/application/lib/application/command/executor.rb +0 -1
  15. data/plugins/application/lib/application/commands/application_commands.rb +21 -0
  16. data/plugins/application/lib/application/commands/notebook_commands.rb +73 -0
  17. data/plugins/application/lib/application/commands/tab_commands.rb +105 -0
  18. data/plugins/application/lib/application/commands/treebook_commands.rb +117 -0
  19. data/plugins/application/lib/application/commands/window_commands.rb +68 -0
  20. data/plugins/{tree/lib → application/lib/application}/tree.rb +0 -4
  21. data/plugins/{tree/lib → application/lib/application}/tree/command.rb +0 -0
  22. data/plugins/{tree/lib → application/lib/application}/tree/controller.rb +0 -0
  23. data/plugins/{tree/lib → application/lib/application}/tree/mirror.rb +0 -0
  24. data/plugins/application/spec/application/keymap/builder_spec.rb +1 -1
  25. data/plugins/application/spec/application/menu/builder_spec.rb +2 -2
  26. data/plugins/application_swt/lib/application_swt.rb +4 -2
  27. data/plugins/application_swt/lib/swt/vtab_label.rb +6 -3
  28. data/plugins/auto_indenter/lib/auto_indenter/document_controller.rb +6 -3
  29. data/plugins/clojure/lib/clojure.rb +2 -2
  30. data/plugins/core/lib/core.rb +0 -4
  31. data/plugins/core/lib/core/gui.rb +2 -4
  32. data/plugins/core/lib/core/plugin/storage.rb +68 -21
  33. data/plugins/core/spec/core/base_storage_spec.rb +81 -0
  34. data/plugins/core/spec/core/shared_storage_spec.rb +49 -0
  35. data/plugins/core/spec/core/storage_spec.rb +13 -63
  36. data/plugins/declarations/lib/declarations.rb +3 -1
  37. data/plugins/document_search/features/replace.feature +29 -20
  38. data/plugins/document_search/lib/document_search/find_speedbar.rb +4 -1
  39. data/plugins/edit_view/features/indentation_commands.feature +6 -5
  40. data/plugins/edit_view/features/step_definitions/notebook_steps.rb +4 -4
  41. data/plugins/edit_view/features/step_definitions/tab_steps.rb +7 -7
  42. data/plugins/edit_view/features/step_definitions/window_steps.rb +2 -2
  43. data/plugins/edit_view/lib/edit_view.rb +15 -1
  44. data/plugins/edit_view/lib/edit_view/modified_tabs_checker.rb +7 -7
  45. data/plugins/edit_view_swt/lib/edit_view_swt.rb +7 -6
  46. data/plugins/execute_current_tab/lib/execute_current_tab.rb +1 -1
  47. data/plugins/groovy/lib/groovy.rb +3 -3
  48. data/plugins/groovy/lib/groovy/commands.rb +1 -1
  49. data/plugins/help/lib/help/view_controller.rb +5 -0
  50. data/plugins/help/views/index.html.erb +10 -1
  51. data/plugins/html_view/features/step_definitions/html_view_steps.rb +1 -1
  52. data/plugins/html_view/features/support/env.rb +0 -15
  53. data/plugins/html_view/lib/html_view.rb +3 -4
  54. data/plugins/html_view/lib/html_view/commands.rb +1 -1
  55. data/plugins/key_bindings/lib/key_bindings.rb +34 -0
  56. data/plugins/key_bindings/plugin.rb +8 -0
  57. data/plugins/{tree → key_bindings}/spec/spec_helper.rb +0 -0
  58. data/plugins/line_tools/features/lower_text.feature +3 -4
  59. data/plugins/line_tools/lib/line_tools.rb +6 -5
  60. data/plugins/mirah/lib/mirah.rb +2 -2
  61. data/plugins/pair_highlighter/lib/pair_highlighter/document_controller.rb +5 -3
  62. data/plugins/project/features/open_directory_tree.feature +1 -1
  63. data/plugins/project/features/step_definitions/file_steps.rb +5 -5
  64. data/plugins/project/features/step_definitions/find_file_steps.rb +2 -3
  65. data/plugins/project/features/support/env.rb +4 -0
  66. data/plugins/project/lib/project.rb +15 -9
  67. data/plugins/project/lib/project/commands.rb +46 -16
  68. data/plugins/project/lib/project/dir_controller.rb +1 -1
  69. data/plugins/project/lib/project/dir_mirror.rb +3 -2
  70. data/plugins/project/lib/project/drb_service.rb +3 -1
  71. data/plugins/project/lib/project/file_list.rb +99 -21
  72. data/plugins/project/lib/project/find_file_dialog.rb +8 -24
  73. data/plugins/project/lib/project/manager.rb +68 -12
  74. data/plugins/project/lib/project/project_tree_controller.rb +1 -1
  75. data/plugins/project/plugin.rb +1 -2
  76. data/plugins/project_search/features/word_search.feature +1 -1
  77. data/plugins/project_search/lib/project_search.rb +16 -6
  78. data/plugins/project_search/lib/project_search/commands.rb +15 -28
  79. data/plugins/project_search/lib/project_search/hit.rb +4 -0
  80. data/plugins/project_search/lib/project_search/lucene_index.rb +14 -4
  81. data/plugins/project_search/lib/project_search/views/_file.html.erb +11 -11
  82. data/plugins/project_search/lib/project_search/word_search.rb +22 -4
  83. data/plugins/project_search/spec/project_search/word_search_spec.rb +2 -2
  84. data/plugins/redcar/redcar.rb +140 -588
  85. data/plugins/repl/features/step_definitions/repl_steps.rb +3 -3
  86. data/plugins/repl/features/support/fake_repl.rb +1 -1
  87. data/plugins/ruby/lib/ruby.rb +4 -4
  88. data/plugins/runnables/features/fixtures/alternate.ruby +1 -0
  89. data/plugins/runnables/features/fixtures/line_app.rb +1 -0
  90. data/plugins/runnables/features/fixtures/name_app.rb +1 -0
  91. data/plugins/runnables/features/fixtures/params_app.rb +1 -0
  92. data/plugins/runnables/features/fixtures/runnable_app.rb +1 -0
  93. data/plugins/runnables/lib/runnables.rb +21 -0
  94. data/plugins/runnables/lib/runnables/command_output_controller.rb +14 -9
  95. data/plugins/runnables/lib/runnables/output_processor.rb +4 -4
  96. data/plugins/runnables/lib/runnables/running_process_checker.rb +6 -6
  97. data/plugins/runnables/plugin.rb +1 -2
  98. data/plugins/scm/lib/scm.rb +18 -18
  99. data/plugins/scm/lib/scm/commit_mirror.rb +2 -2
  100. data/plugins/scm/lib/scm/scm_changes_controller.rb +1 -1
  101. data/plugins/scm_hg/lib/scm_hg.rb +1 -1
  102. data/plugins/snippets/lib/snippets/document_controller.rb +46 -40
  103. data/plugins/swt/lib/swt.rb +2 -0
  104. data/plugins/test_runner/lib/test_runner.rb +1 -0
  105. data/plugins/test_runner/lib/test_runner/jasmine_test_runner.rb +15 -0
  106. data/plugins/test_runner/lib/test_runner/runnable_test_runner.rb +21 -5
  107. data/plugins/textmate/lib/textmate.rb +5 -1
  108. data/plugins/textmate/lib/textmate/preference.rb +4 -0
  109. data/plugins/textmate/lib/textmate/snippet.rb +0 -2
  110. data/plugins/textmate/lib/textmate/tree_mirror.rb +6 -5
  111. data/plugins/textmate/plugin.rb +1 -1
  112. data/plugins/textmate/vendor/redcar-bundles/Bundles/C.tmbundle/Syntaxes/C.plist +2 -2
  113. data/plugins/textmate/vendor/redcar-bundles/Bundles/Clojure.tmbundle/info.plist +2 -0
  114. data/plugins/textmate/vendor/redcar-bundles/Bundles/Cucumber.tmbundle/Syntaxes/Cucumber_Plain_Text_Feature.tmLanguage +0 -4
  115. data/plugins/textmate/vendor/redcar-bundles/Bundles/Cucumber.tmbundle/info.plist +2 -0
  116. data/plugins/textmate/vendor/redcar-bundles/Bundles/Mirah.tmbundle/info.plist +3 -1
  117. data/plugins/textmate/vendor/redcar-bundles/Bundles/Palm-WebOS-Development.tmbundle/info.plist +2 -0
  118. data/plugins/textmate/vendor/redcar-bundles/Bundles/RedcarRepl.tmbundle/info.plist +2 -0
  119. data/plugins/textmate/vendor/redcar-bundles/Bundles/SQL.tmbundle/info.plist +2 -0
  120. data/plugins/textmate/vendor/redcar-bundles/Bundles/Scala.tmbundle/info.plist +2 -0
  121. data/plugins/textmate/vendor/redcar-bundles/Bundles/Smalltalk.tmbundle/Preferences/GNU_Smalltalk.tmPreferences +1 -1
  122. data/plugins/textmate/vendor/redcar-bundles/Bundles/Smalltalk.tmbundle/Preferences/MIST_Smalltalk_Format.tmPreferences +1 -1
  123. data/plugins/textmate/vendor/redcar-bundles/Bundles/Smalltalk.tmbundle/info.plist +2 -0
  124. data/plugins/textmate/vendor/redcar-bundles/Bundles/Vala.tmbundle/info.plist +4 -2
  125. data/plugins/textmate/vendor/redcar-bundles/Bundles/Webrat.tmbundle/info.plist +2 -0
  126. data/plugins/textmate/vendor/redcar-bundles/Bundles/YAML.tmbundle/Syntaxes/YAML.plist +1 -0
  127. data/plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/info.plist +2 -0
  128. data/plugins/textmate/vendor/redcar-bundles/Themes/Twilight.tmTheme +0 -2
  129. data/plugins/todo_list/lib/todo_list.rb +3 -3
  130. data/plugins/todo_list/lib/todo_list/todo_controller.rb +1 -1
  131. data/plugins/web_bookmarks/features/step_definitions/web_steps.rb +1 -1
  132. data/plugins/web_bookmarks/lib/web_bookmarks.rb +11 -4
  133. data/plugins/web_bookmarks/lib/web_bookmarks/commands.rb +1 -1
  134. data/plugins/web_bookmarks/plugin.rb +1 -2
  135. metadata +29 -20
  136. data/plugins/core/lib/core/logger.rb +0 -28
  137. data/plugins/file_parser/lib/file_parser.rb +0 -125
  138. data/plugins/file_parser/plugin.rb +0 -7
  139. data/plugins/tree/plugin.rb +0 -9
@@ -66,6 +66,7 @@ module Swt
66
66
 
67
67
  @splash.setLocation(x, y)
68
68
  @splash.open
69
+ Redcar.log.debug("opened splash")
69
70
  end
70
71
 
71
72
  def inc(val = 1)
@@ -77,6 +78,7 @@ module Swt
77
78
  @splash.close
78
79
  @image.dispose
79
80
  Swt.instance_variable_set(:@splashscreen, nil)
81
+ Redcar.log.debug("closed splash")
80
82
  end
81
83
  end
82
84
 
@@ -1,4 +1,5 @@
1
1
  require 'test_runner/runnable_test_runner'
2
+ require 'test_runner/jasmine_test_runner'
2
3
  require 'test_runner/rspec_runner'
3
4
  require 'test_runner/run_test_command'
4
5
  #
@@ -0,0 +1,15 @@
1
+ module Redcar
2
+ class JasmineTestRunner
3
+ def initialize(config)
4
+ @jasmine_url = config[:jasmine_url] || "http://localhost:8888"
5
+ end
6
+
7
+ def run_test(path, current_line)
8
+ if jasmine_tab = Redcar.app.all_tabs.detect {|t| t.title == "Jasmine Test Runner" }
9
+ jasmine_tab.html_view.refresh
10
+ else
11
+ Redcar::HtmlView::DisplayWebContent.new("Jasmine Test Runner", @jasmine_url).execute
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,25 +1,41 @@
1
1
  module Redcar
2
2
  class RunnableTestRunner
3
3
 
4
- attr_accessor :single_test_patterns, :file_runner, :single_test_runner
4
+ attr_accessor :single_test_patterns, :file_runner, :single_test_runner, :other_notebook
5
5
 
6
6
  def initialize(config)
7
7
  @single_test_patterns = config["single_test_patterns"]
8
8
  @single_test_runner = config["single_test_runner"]
9
9
  @file_runner = config["file_runner"]
10
+ @other_notebook = config["other_notebook"]
10
11
  end
11
12
 
12
13
  def run_test(path, current_line)
13
14
  single_test_patterns.each do |pattern|
14
15
  if current_line =~ pattern
15
16
  test_name = $1
16
- command = single_test_runner.gsub("__FILE__", path).gsub("__TEST_NAME__", test_name)
17
- Redcar::Runnables.run_process Project::Manager.focussed_project.path, command, "Running test: #{test_name}"
17
+ command = single_test_runner.gsub("__TEST_NAME__", test_name)
18
+ run_process command, "Running test: #{test_name}"
18
19
  return
19
20
  end
20
21
  end
21
- Redcar::Runnables.run_process Project::Manager.focussed_project.path,
22
- file_runner.gsub("__FILE__", path), "Running test: #{File.basename(path)}"
22
+ run_process file_runner.dup, "Running test: #{File.basename(path)}"
23
+ end
24
+
25
+ def run_process(command, title)
26
+ p [:command, command]
27
+ current_tab = Redcar.app.focussed_window.focussed_notebook_tab
28
+ Redcar::Runnables.run_process Project::Manager.focussed_project.path, command, title
29
+ if other_notebook
30
+ window = Redcar.app.focussed_window
31
+ tab = Redcar.app.all_tabs.detect {|tab| tab.title == title }
32
+ if current_tab.notebook == tab.notebook
33
+ i = window.notebooks.index(tab.notebook)
34
+ target_notebook = window.notebooks[ (i + 1) % window.notebooks.length ]
35
+ target_notebook.grab_tab_from(tab.notebook, tab)
36
+ end
37
+ current_tab.focus
38
+ end
23
39
  end
24
40
  end
25
41
  end
@@ -10,8 +10,12 @@ require 'textmate/commands'
10
10
  module Redcar
11
11
  module Textmate
12
12
  def self.all_bundle_paths
13
- Dir[File.join(Redcar.root, "plugins", "textmate", "vendor", "redcar-bundles", "Bundles", "*")] +
13
+ @all_bundle_paths = Dir[File.join(Redcar.root, "plugins", "textmate", "vendor", "redcar-bundles", "Bundles", "*")] +
14
14
  Dir[File.join(Redcar.user_dir, "Bundles", "*")]
15
+ Redcar.plugin_manager.loaded_plugins.each do |plugin|
16
+ @all_bundle_paths += Dir[File.join(File.dirname(plugin.definition_file), "Bundles", "*")]
17
+ end
18
+ @all_bundle_paths
15
19
  end
16
20
 
17
21
  def self.menus
@@ -75,6 +75,10 @@ module Redcar
75
75
  end
76
76
 
77
77
  class UnIndentedLinePatternSetting < Setting
78
+ def initialize(plist, scope)
79
+ @plist = plist
80
+ @scope = @scope || ""
81
+ end
78
82
  def pattern; @plist; end
79
83
  end
80
84
 
@@ -1,5 +1,3 @@
1
- # encoding: UTF-8
2
-
3
1
  module Redcar
4
2
  module Textmate
5
3
  class Snippet
@@ -1,11 +1,12 @@
1
- # Some Icons by Yusuke Kamiyamane.
2
- # http://p.yusukekamiyamane.com/
3
- #
4
- # Licensed under a Creative Commons Attribution 3.0 license.
5
- # http://creativecommons.org/licenses/by/3.0/
6
1
  module Redcar
7
2
  module Textmate
8
3
  TREE_TITLE = "Bundles"
4
+
5
+ # Some Icons by Yusuke Kamiyamane.
6
+ # http://p.yusukekamiyamane.com/
7
+ #
8
+ # Licensed under a Creative Commons Attribution 3.0 license.
9
+ # http://creativecommons.org/licenses/by/3.0/
9
10
  class TreeController
10
11
  include Redcar::Tree::Controller
11
12
 
@@ -4,5 +4,5 @@ Plugin.define do
4
4
  version "1.0"
5
5
  file "lib", "textmate"
6
6
  object "Redcar::Textmate"
7
- dependencies "core", ">0", "application", ">0", "HTML View", ">=0.3.2", "tree", ">0"
7
+ dependencies "core", ">0", "application", ">0", "HTML View", ">=0.3.2"
8
8
  end
@@ -4,8 +4,8 @@
4
4
  <dict>
5
5
  <key>fileTypes</key>
6
6
  <array>
7
- <string>c</string>
8
- <string>h</string>
7
+ <string>.c</string>
8
+ <string>.h</string>
9
9
  </array>
10
10
  <key>firstLineMatch</key>
11
11
  <string>-[*]-( Mode:)? C -[*]-</string>
@@ -18,5 +18,7 @@
18
18
  </array>
19
19
  <key>uuid</key>
20
20
  <string>6B2BD209-0142-4CA6-A596-9250015AD8CA</string>
21
+ <key>description</key>
22
+ <string>Support for &lt;a href="http://clojure.org"&gt;Clojure&lt;/a&gt;.</string>
21
23
  </dict>
22
24
  </plist>
@@ -22,10 +22,6 @@
22
22
  <key>include</key>
23
23
  <string>#feature_element_keyword</string>
24
24
  </dict>
25
- <dict>
26
- <key>include</key>
27
- <string>#description</string>
28
- </dict>
29
25
  <dict>
30
26
  <key>include</key>
31
27
  <string>#feature_keyword</string>
@@ -30,5 +30,7 @@
30
30
  </array>
31
31
  <key>uuid</key>
32
32
  <string>10DCDBF3-71B9-424F-AE10-17BFB8C4CD69</string>
33
+ <key>description</key>
34
+ <string>Support for &lt;a href="http://cukes.info"&gt;Cucumber&lt;/a&gt;.</string>
33
35
  </dict>
34
36
  </plist>
@@ -2,10 +2,12 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
+ <key>name</key>
6
+ <string>Mirah</string>
5
7
  <key>contactName</key>
6
8
  <string>Delisa Mason</string>
7
9
  <key>description</key>
8
- <string>Syntax highlighting for Mirah</string>
10
+ <string>Syntax highlighting for &lt;a href="http://www.mirah.org"&gt;Mirah&lt;/a&gt;</string>
9
11
  <key>uuid</key>
10
12
  <string>934B53DB-CE02-48CD-AEDD-190093FB53D8</string>
11
13
  </dict>
@@ -2,6 +2,8 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
+ <key>description</key>
6
+ <string>Support for &lt;a href="http://developer.palm.com/"&gt;Palm Web OS&lt;/a&gt;.</string>
5
7
  <key>mainMenu</key>
6
8
  <dict>
7
9
  <key>items</key>
@@ -2,6 +2,8 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
+ <key>name</key>
6
+ <string>Redcar REPL</string>
5
7
  <key>contactName</key>
6
8
  <string>Daniel Lucraft</string>
7
9
  <key>description</key>
@@ -2,6 +2,8 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
+ <key>description</key>
6
+ <string>Support for SQL.</string>
5
7
  <key>contactEmailRot13</key>
6
8
  <string>pvnjny@tznvy.pbz</string>
7
9
  <key>contactName</key>
@@ -2,6 +2,8 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
+ <key>description</key>
6
+ <string>Support for &lt;a href="http://www.scala-lang.org"&gt;Scala&lt;/a&gt;.</string>
5
7
  <key>deleted</key>
6
8
  <array>
7
9
  <string>DA0A565B-5F16-11D9-B9C3-000D93589AF6</string>
@@ -23,7 +23,7 @@
23
23
  <string>"</string>
24
24
  </dict>
25
25
  </array>
26
- <key>spellchecking</key>
26
+ <key>spellChecking</key>
27
27
  <integer>0</integer>
28
28
  </dict>
29
29
  <key>uuid</key>
@@ -8,7 +8,7 @@
8
8
  <string>source.smalltalk.mist</string>
9
9
  <key>settings</key>
10
10
  <dict>
11
- <key>spellchecking</key>
11
+ <key>spellChecking</key>
12
12
  <integer>0</integer>
13
13
  </dict>
14
14
  <key>uuid</key>
@@ -4,6 +4,8 @@
4
4
  <dict>
5
5
  <key>name</key>
6
6
  <string>Smalltalk</string>
7
+ <key>description</key>
8
+ <string>Support for &lt;a href="http://www.squeak.org/Smalltalk"&gt;Smalltalk&lt;/a&gt;.</string>
7
9
  <key>ordering</key>
8
10
  <array>
9
11
  <string>86991D7E-6E4C-4C40-8ED2-CF52AD0F5DFE</string>
@@ -1,7 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>description</key>
6
+ <string>Support for &lt;a href="http://live.gnome.org/Vala"&gt;Vala&lt;/a&gt;.</string>
5
7
  <key>name</key>
6
8
  <string>Vala</string>
7
9
  <key>uuid</key>
@@ -4,6 +4,8 @@
4
4
  <dict>
5
5
  <key>name</key>
6
6
  <string>Webrat</string>
7
+ <key>description</key>
8
+ <string>Support for &lt;a href="http://rdoc.info/github/brynary/webrat/master/frames"&gt;Webrat&lt;/a&gt;.</string>
7
9
  <key>ordering</key>
8
10
  <array>
9
11
  <string>A7AB1D2B-E64F-459B-AD8B-10CC203F73CB</string>
@@ -6,6 +6,7 @@
6
6
  <array>
7
7
  <string>yaml</string>
8
8
  <string>yml</string>
9
+ <string>Gemfile.lock</string>
9
10
  </array>
10
11
  <key>foldingStartMarker</key>
11
12
  <string>^[^#]\s*.*:(\s*\[?| &amp;.+)?$</string>
@@ -2,6 +2,8 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
+ <key>description</key>
6
+ <string>Support for &lt;a href="http://groovy.codehaus.org/"&gt;Groovy&lt;/a&gt;.</string>
5
7
  <key>mainMenu</key>
6
8
  <dict>
7
9
  <key>excludedItems</key>
@@ -23,8 +23,6 @@
23
23
  <string>#FFFFFF08</string>
24
24
  <key>selection</key>
25
25
  <string>#DDF0FF33</string>
26
- <key>marginForeground</key>
27
- <string>#AAAAAA</string>
28
26
  <key>marginBackground</key>
29
27
  <string>#222222</string>
30
28
  </dict>
@@ -10,14 +10,14 @@ module Redcar
10
10
  def self.menus
11
11
  Menu::Builder.build do
12
12
  sub_menu "Project" do
13
- item "Todo List", TodoList::ViewListCommand
13
+ item "Todo List", TodoList::ViewTodoListCommand
14
14
  end
15
15
  end
16
16
  end
17
17
 
18
18
  def self.keymaps
19
19
  map = Redcar::Keymap.build("main",[:osx,:linux,:windows]) do
20
- link "Alt+Shift+T", TodoList::ViewListCommand
20
+ link "Alt+Shift+T", TodoList::ViewTodoListCommand
21
21
  end
22
22
  [map]
23
23
  end
@@ -34,7 +34,7 @@ module Redcar
34
34
  end
35
35
  end
36
36
 
37
- class ViewListCommand < Redcar::Command
37
+ class ViewTodoListCommand < Redcar::Command
38
38
  sensitize :open_project
39
39
  def execute
40
40
  project = Project::Manager.in_window(win)
@@ -16,7 +16,7 @@ module Redcar
16
16
  path = options.keys.first
17
17
  line = options.values.first.first.to_i
18
18
  if File.exists? path
19
- Project::FileOpenCommand.new(path).run
19
+ Project::OpenFileCommand.new(path).run
20
20
  tab = Redcar.app.focussed_notebook_tab
21
21
  document = tab.edit_view.document
22
22
  if line <= document.line_count
@@ -1,4 +1,4 @@
1
1
 
2
2
  When /^I open the web bookmarks tree$/ do
3
- Redcar::WebBookmarks::ShowTree.new.run
3
+ Redcar::WebBookmarks::ShowWebBookmarksCommand.new.run
4
4
  end
@@ -18,25 +18,32 @@ module Redcar
18
18
  def self.menus
19
19
  Redcar::Menu::Builder.build do
20
20
  sub_menu "Project" do
21
- item "Web Bookmarks", :command => WebBookmarks::ShowTree, :priority => 40
21
+ item "Web Bookmarks", :command => WebBookmarks::ShowWebBookmarksCommand, :priority => 40
22
22
  end
23
23
  end
24
24
  end
25
25
 
26
26
  def self.keymaps
27
27
  osx = Keymap.build("main", :osx) do
28
- link "Cmd+Shift+?", WebBookmarks::ShowTree
28
+ link "Cmd+Shift+?", WebBookmarks::ShowWebBookmarksCommand
29
29
  end
30
30
  lin = Keymap.build("main", [:linux,:windows]) do
31
- link "Ctrl+Shift+?", WebBookmarks::ShowTree
31
+ link "Ctrl+Shift+?", WebBookmarks::ShowWebBookmarksCommand
32
32
  end
33
33
  [osx,lin]
34
34
  end
35
35
 
36
36
  def self.toolbars
37
37
  Redcar::ToolBar::Builder.build do
38
- item "Web Bookmarks", :command => WebBookmarks::ShowTree, :icon => File.join(Redcar::ICONS_DIRECTORY, "globe.png"), :barname => :project
38
+ item "Web Bookmarks", :command => WebBookmarks::ShowWebBookmarksCommand, :icon => File.join(Redcar::ICONS_DIRECTORY, "globe.png"), :barname => :project
39
39
  end
40
40
  end
41
+
42
+ def self.project_closed(project,window)
43
+ wtree = window.treebook.trees.detect { |t|
44
+ t.tree_mirror.is_a? WebBookmarks::TreeMirror
45
+ }
46
+ wtree.close if wtree
47
+ end
41
48
  end
42
49
  end
@@ -4,7 +4,7 @@ require 'java'
4
4
  module Redcar
5
5
  class WebBookmarks
6
6
 
7
- class ShowTree < Redcar::Command
7
+ class ShowWebBookmarksCommand < Redcar::Command
8
8
  sensitize :open_project
9
9
  def execute
10
10
  if tree = win.treebook.trees.detect {|tree| tree.tree_mirror.title == TREE_TITLE }
@@ -4,8 +4,7 @@ Plugin.define do
4
4
  version "1.0"
5
5
  file "lib", "web_bookmarks"
6
6
  object "Redcar::WebBookmarks"
7
- dependencies "tree", ">0",
8
- "application", ">=1.1",
7
+ dependencies "application", ">=1.1",
9
8
  "project" , ">=1.1",
10
9
  "HTML View" , ">0"
11
10
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redcar
3
3
  version: !ruby/object:Gem::Version
4
- hash: -364798509
5
- prerelease: true
4
+ hash: 29
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 0dev
10
- version: 0.11.0dev
9
+ version: "0.11"
11
10
  platform: ruby
12
11
  authors:
13
12
  - Daniel Lucraft
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-01-28 00:00:00 +00:00
17
+ date: 2011-03-23 00:00:00 +00:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -3629,6 +3628,7 @@ files:
3629
3628
  - lib/plugin_manager/spec/spec_helper.rb
3630
3629
  - lib/redcar/installer.rb
3631
3630
  - lib/redcar/instance_exec.rb
3631
+ - lib/redcar/logger.rb
3632
3632
  - lib/redcar/plist.rb
3633
3633
  - lib/redcar/ruby_extensions.rb
3634
3634
  - lib/redcar/runner.rb
@@ -3652,6 +3652,11 @@ files:
3652
3652
  - plugins/application/lib/application/command/executor.rb
3653
3653
  - plugins/application/lib/application/command/history.rb
3654
3654
  - plugins/application/lib/application/command.rb
3655
+ - plugins/application/lib/application/commands/application_commands.rb
3656
+ - plugins/application/lib/application/commands/notebook_commands.rb
3657
+ - plugins/application/lib/application/commands/tab_commands.rb
3658
+ - plugins/application/lib/application/commands/treebook_commands.rb
3659
+ - plugins/application/lib/application/commands/window_commands.rb
3655
3660
  - plugins/application/lib/application/dialog.rb
3656
3661
  - plugins/application/lib/application/dialogs/filter_list_dialog.rb
3657
3662
  - plugins/application/lib/application/dialogs/modeless_list_dialog.rb
@@ -3674,6 +3679,10 @@ files:
3674
3679
  - plugins/application/lib/application/toolbar/item.rb
3675
3680
  - plugins/application/lib/application/toolbar/lazy_toolbar.rb
3676
3681
  - plugins/application/lib/application/toolbar.rb
3682
+ - plugins/application/lib/application/tree/command.rb
3683
+ - plugins/application/lib/application/tree/controller.rb
3684
+ - plugins/application/lib/application/tree/mirror.rb
3685
+ - plugins/application/lib/application/tree.rb
3677
3686
  - plugins/application/lib/application/treebook.rb
3678
3687
  - plugins/application/lib/application/window.rb
3679
3688
  - plugins/application/lib/application.rb
@@ -3800,7 +3809,6 @@ files:
3800
3809
  - plugins/core/lib/core/gui.rb
3801
3810
  - plugins/core/lib/core/has_spi.rb
3802
3811
  - plugins/core/lib/core/interface.rb
3803
- - plugins/core/lib/core/logger.rb
3804
3812
  - plugins/core/lib/core/model.rb
3805
3813
  - plugins/core/lib/core/observable.rb
3806
3814
  - plugins/core/lib/core/observable_struct.rb
@@ -3813,10 +3821,12 @@ files:
3813
3821
  - plugins/core/lib/core/task_queue.rb
3814
3822
  - plugins/core/lib/core.rb
3815
3823
  - plugins/core/plugin.rb
3824
+ - plugins/core/spec/core/base_storage_spec.rb
3816
3825
  - plugins/core/spec/core/gui_spec.rb
3817
3826
  - plugins/core/spec/core/observable_spec.rb
3818
3827
  - plugins/core/spec/core/persistent_cache_spec.rb
3819
3828
  - plugins/core/spec/core/resource_spec.rb
3829
+ - plugins/core/spec/core/shared_storage_spec.rb
3820
3830
  - plugins/core/spec/core/storage_spec.rb
3821
3831
  - plugins/core/spec/core/task_queue_spec.rb
3822
3832
  - plugins/core/spec/spec_helper.rb
@@ -3908,8 +3918,6 @@ files:
3908
3918
  - plugins/encryption/plugin.rb
3909
3919
  - plugins/execute_current_tab/lib/execute_current_tab.rb
3910
3920
  - plugins/execute_current_tab/plugin.rb
3911
- - plugins/file_parser/lib/file_parser.rb
3912
- - plugins/file_parser/plugin.rb
3913
3921
  - plugins/groovy/features/fixtures/test.groovy
3914
3922
  - plugins/groovy/features/step_definitions/groovy_steps.rb
3915
3923
  - plugins/groovy/features/support/env.rb
@@ -3969,6 +3977,9 @@ files:
3969
3977
  - plugins/javascript/lib/syntax_check/javascript.rb
3970
3978
  - plugins/javascript/plugin.rb
3971
3979
  - plugins/javascript/vendor/jslint.js
3980
+ - plugins/key_bindings/lib/key_bindings.rb
3981
+ - plugins/key_bindings/plugin.rb
3982
+ - plugins/key_bindings/spec/spec_helper.rb
3972
3983
  - plugins/line_tools/features/clear_line.feature
3973
3984
  - plugins/line_tools/features/kill_line.feature
3974
3985
  - plugins/line_tools/features/lower_text.feature
@@ -4409,6 +4420,11 @@ files:
4409
4420
  - plugins/ruby/spec/spec_helper.rb
4410
4421
  - plugins/runnables/features/command_tree.feature
4411
4422
  - plugins/runnables/features/file_runner_input.feature
4423
+ - plugins/runnables/features/fixtures/alternate.ruby
4424
+ - plugins/runnables/features/fixtures/line_app.rb
4425
+ - plugins/runnables/features/fixtures/name_app.rb
4426
+ - plugins/runnables/features/fixtures/params_app.rb
4427
+ - plugins/runnables/features/fixtures/runnable_app.rb
4412
4428
  - plugins/runnables/features/parameter_input.feature
4413
4429
  - plugins/runnables/features/run_alternate_command.feature
4414
4430
  - plugins/runnables/features/run_command_tab.feature
@@ -4819,6 +4835,7 @@ files:
4819
4835
  - plugins/task_manager/lib/task_manager.rb
4820
4836
  - plugins/task_manager/plugin.rb
4821
4837
  - plugins/task_manager/views/index.html.erb
4838
+ - plugins/test_runner/lib/test_runner/jasmine_test_runner.rb
4822
4839
  - plugins/test_runner/lib/test_runner/rspec_runner.rb
4823
4840
  - plugins/test_runner/lib/test_runner/run_test_command.rb
4824
4841
  - plugins/test_runner/lib/test_runner/runnable_test_runner.rb
@@ -4865,12 +4882,6 @@ files:
4865
4882
  - plugins/todo_list/views/default.css
4866
4883
  - plugins/todo_list/views/index.html.erb
4867
4884
  - plugins/todo_list/views/redcar_small_icon.png
4868
- - plugins/tree/lib/tree/command.rb
4869
- - plugins/tree/lib/tree/controller.rb
4870
- - plugins/tree/lib/tree/mirror.rb
4871
- - plugins/tree/lib/tree.rb
4872
- - plugins/tree/plugin.rb
4873
- - plugins/tree/spec/spec_helper.rb
4874
4885
  - plugins/tree_view_swt/lib/tree_view_swt.rb
4875
4886
  - plugins/tree_view_swt/plugin.rb
4876
4887
  - plugins/web_bookmarks/features/bookmark.feature
@@ -7070,14 +7081,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
7070
7081
  required_rubygems_version: !ruby/object:Gem::Requirement
7071
7082
  none: false
7072
7083
  requirements:
7073
- - - ">"
7084
+ - - ">="
7074
7085
  - !ruby/object:Gem::Version
7075
- hash: 25
7086
+ hash: 3
7076
7087
  segments:
7077
- - 1
7078
- - 3
7079
- - 1
7080
- version: 1.3.1
7088
+ - 0
7089
+ version: "0"
7081
7090
  requirements: []
7082
7091
 
7083
7092
  rubyforge_project: