redcar 0.11.0dev → 0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +14 -1
- data/README.md +28 -8
- data/Rakefile +23 -18
- data/bin/redcar +9 -4
- data/lib/redcar.rb +42 -4
- data/lib/redcar/installer.rb +7 -2
- data/lib/redcar/logger.rb +64 -0
- data/lib/redcar/runner.rb +17 -8
- data/lib/redcar/usage.rb +2 -0
- data/plugins/application/features/step_definitions/tree_steps.rb +4 -4
- data/plugins/application/features/support/env.rb +6 -6
- data/plugins/application/lib/application.rb +31 -3
- data/plugins/application/lib/application/command.rb +6 -0
- data/plugins/application/lib/application/command/executor.rb +0 -1
- data/plugins/application/lib/application/commands/application_commands.rb +21 -0
- data/plugins/application/lib/application/commands/notebook_commands.rb +73 -0
- data/plugins/application/lib/application/commands/tab_commands.rb +105 -0
- data/plugins/application/lib/application/commands/treebook_commands.rb +117 -0
- data/plugins/application/lib/application/commands/window_commands.rb +68 -0
- data/plugins/{tree/lib → application/lib/application}/tree.rb +0 -4
- data/plugins/{tree/lib → application/lib/application}/tree/command.rb +0 -0
- data/plugins/{tree/lib → application/lib/application}/tree/controller.rb +0 -0
- data/plugins/{tree/lib → application/lib/application}/tree/mirror.rb +0 -0
- data/plugins/application/spec/application/keymap/builder_spec.rb +1 -1
- data/plugins/application/spec/application/menu/builder_spec.rb +2 -2
- data/plugins/application_swt/lib/application_swt.rb +4 -2
- data/plugins/application_swt/lib/swt/vtab_label.rb +6 -3
- data/plugins/auto_indenter/lib/auto_indenter/document_controller.rb +6 -3
- data/plugins/clojure/lib/clojure.rb +2 -2
- data/plugins/core/lib/core.rb +0 -4
- data/plugins/core/lib/core/gui.rb +2 -4
- data/plugins/core/lib/core/plugin/storage.rb +68 -21
- data/plugins/core/spec/core/base_storage_spec.rb +81 -0
- data/plugins/core/spec/core/shared_storage_spec.rb +49 -0
- data/plugins/core/spec/core/storage_spec.rb +13 -63
- data/plugins/declarations/lib/declarations.rb +3 -1
- data/plugins/document_search/features/replace.feature +29 -20
- data/plugins/document_search/lib/document_search/find_speedbar.rb +4 -1
- data/plugins/edit_view/features/indentation_commands.feature +6 -5
- data/plugins/edit_view/features/step_definitions/notebook_steps.rb +4 -4
- data/plugins/edit_view/features/step_definitions/tab_steps.rb +7 -7
- data/plugins/edit_view/features/step_definitions/window_steps.rb +2 -2
- data/plugins/edit_view/lib/edit_view.rb +15 -1
- data/plugins/edit_view/lib/edit_view/modified_tabs_checker.rb +7 -7
- data/plugins/edit_view_swt/lib/edit_view_swt.rb +7 -6
- data/plugins/execute_current_tab/lib/execute_current_tab.rb +1 -1
- data/plugins/groovy/lib/groovy.rb +3 -3
- data/plugins/groovy/lib/groovy/commands.rb +1 -1
- data/plugins/help/lib/help/view_controller.rb +5 -0
- data/plugins/help/views/index.html.erb +10 -1
- data/plugins/html_view/features/step_definitions/html_view_steps.rb +1 -1
- data/plugins/html_view/features/support/env.rb +0 -15
- data/plugins/html_view/lib/html_view.rb +3 -4
- data/plugins/html_view/lib/html_view/commands.rb +1 -1
- data/plugins/key_bindings/lib/key_bindings.rb +34 -0
- data/plugins/key_bindings/plugin.rb +8 -0
- data/plugins/{tree → key_bindings}/spec/spec_helper.rb +0 -0
- data/plugins/line_tools/features/lower_text.feature +3 -4
- data/plugins/line_tools/lib/line_tools.rb +6 -5
- data/plugins/mirah/lib/mirah.rb +2 -2
- data/plugins/pair_highlighter/lib/pair_highlighter/document_controller.rb +5 -3
- data/plugins/project/features/open_directory_tree.feature +1 -1
- data/plugins/project/features/step_definitions/file_steps.rb +5 -5
- data/plugins/project/features/step_definitions/find_file_steps.rb +2 -3
- data/plugins/project/features/support/env.rb +4 -0
- data/plugins/project/lib/project.rb +15 -9
- data/plugins/project/lib/project/commands.rb +46 -16
- data/plugins/project/lib/project/dir_controller.rb +1 -1
- data/plugins/project/lib/project/dir_mirror.rb +3 -2
- data/plugins/project/lib/project/drb_service.rb +3 -1
- data/plugins/project/lib/project/file_list.rb +99 -21
- data/plugins/project/lib/project/find_file_dialog.rb +8 -24
- data/plugins/project/lib/project/manager.rb +68 -12
- data/plugins/project/lib/project/project_tree_controller.rb +1 -1
- data/plugins/project/plugin.rb +1 -2
- data/plugins/project_search/features/word_search.feature +1 -1
- data/plugins/project_search/lib/project_search.rb +16 -6
- data/plugins/project_search/lib/project_search/commands.rb +15 -28
- data/plugins/project_search/lib/project_search/hit.rb +4 -0
- data/plugins/project_search/lib/project_search/lucene_index.rb +14 -4
- data/plugins/project_search/lib/project_search/views/_file.html.erb +11 -11
- data/plugins/project_search/lib/project_search/word_search.rb +22 -4
- data/plugins/project_search/spec/project_search/word_search_spec.rb +2 -2
- data/plugins/redcar/redcar.rb +140 -588
- data/plugins/repl/features/step_definitions/repl_steps.rb +3 -3
- data/plugins/repl/features/support/fake_repl.rb +1 -1
- data/plugins/ruby/lib/ruby.rb +4 -4
- data/plugins/runnables/features/fixtures/alternate.ruby +1 -0
- data/plugins/runnables/features/fixtures/line_app.rb +1 -0
- data/plugins/runnables/features/fixtures/name_app.rb +1 -0
- data/plugins/runnables/features/fixtures/params_app.rb +1 -0
- data/plugins/runnables/features/fixtures/runnable_app.rb +1 -0
- data/plugins/runnables/lib/runnables.rb +21 -0
- data/plugins/runnables/lib/runnables/command_output_controller.rb +14 -9
- data/plugins/runnables/lib/runnables/output_processor.rb +4 -4
- data/plugins/runnables/lib/runnables/running_process_checker.rb +6 -6
- data/plugins/runnables/plugin.rb +1 -2
- data/plugins/scm/lib/scm.rb +18 -18
- data/plugins/scm/lib/scm/commit_mirror.rb +2 -2
- data/plugins/scm/lib/scm/scm_changes_controller.rb +1 -1
- data/plugins/scm_hg/lib/scm_hg.rb +1 -1
- data/plugins/snippets/lib/snippets/document_controller.rb +46 -40
- data/plugins/swt/lib/swt.rb +2 -0
- data/plugins/test_runner/lib/test_runner.rb +1 -0
- data/plugins/test_runner/lib/test_runner/jasmine_test_runner.rb +15 -0
- data/plugins/test_runner/lib/test_runner/runnable_test_runner.rb +21 -5
- data/plugins/textmate/lib/textmate.rb +5 -1
- data/plugins/textmate/lib/textmate/preference.rb +4 -0
- data/plugins/textmate/lib/textmate/snippet.rb +0 -2
- data/plugins/textmate/lib/textmate/tree_mirror.rb +6 -5
- data/plugins/textmate/plugin.rb +1 -1
- data/plugins/textmate/vendor/redcar-bundles/Bundles/C.tmbundle/Syntaxes/C.plist +2 -2
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Clojure.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Cucumber.tmbundle/Syntaxes/Cucumber_Plain_Text_Feature.tmLanguage +0 -4
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Cucumber.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Mirah.tmbundle/info.plist +3 -1
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Palm-WebOS-Development.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/RedcarRepl.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/SQL.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Scala.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Smalltalk.tmbundle/Preferences/GNU_Smalltalk.tmPreferences +1 -1
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Smalltalk.tmbundle/Preferences/MIST_Smalltalk_Format.tmPreferences +1 -1
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Smalltalk.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Vala.tmbundle/info.plist +4 -2
- data/plugins/textmate/vendor/redcar-bundles/Bundles/Webrat.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/YAML.tmbundle/Syntaxes/YAML.plist +1 -0
- data/plugins/textmate/vendor/redcar-bundles/Bundles/groovy.tmbundle/info.plist +2 -0
- data/plugins/textmate/vendor/redcar-bundles/Themes/Twilight.tmTheme +0 -2
- data/plugins/todo_list/lib/todo_list.rb +3 -3
- data/plugins/todo_list/lib/todo_list/todo_controller.rb +1 -1
- data/plugins/web_bookmarks/features/step_definitions/web_steps.rb +1 -1
- data/plugins/web_bookmarks/lib/web_bookmarks.rb +11 -4
- data/plugins/web_bookmarks/lib/web_bookmarks/commands.rb +1 -1
- data/plugins/web_bookmarks/plugin.rb +1 -2
- metadata +29 -20
- data/plugins/core/lib/core/logger.rb +0 -28
- data/plugins/file_parser/lib/file_parser.rb +0 -125
- data/plugins/file_parser/plugin.rb +0 -7
- data/plugins/tree/plugin.rb +0 -9
data/plugins/swt/lib/swt.rb
CHANGED
@@ -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
|
|
@@ -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("
|
17
|
-
|
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
|
-
|
22
|
-
|
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
|
@@ -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
|
|
data/plugins/textmate/plugin.rb
CHANGED
@@ -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
|
10
|
+
<string>Syntax highlighting for <a href="http://www.mirah.org">Mirah</a></string>
|
9
11
|
<key>uuid</key>
|
10
12
|
<string>934B53DB-CE02-48CD-AEDD-190093FB53D8</string>
|
11
13
|
</dict>
|
data/plugins/textmate/vendor/redcar-bundles/Bundles/Palm-WebOS-Development.tmbundle/info.plist
CHANGED
@@ -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 <a href="http://developer.palm.com/">Palm Web OS</a>.</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 <a href="http://www.scala-lang.org">Scala</a>.</string>
|
5
7
|
<key>deleted</key>
|
6
8
|
<array>
|
7
9
|
<string>DA0A565B-5F16-11D9-B9C3-000D93589AF6</string>
|
@@ -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 <a href="http://www.squeak.org/Smalltalk">Smalltalk</a>.</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 <a href="http://live.gnome.org/Vala">Vala</a>.</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 <a href="http://rdoc.info/github/brynary/webrat/master/frames">Webrat</a>.</string>
|
7
9
|
<key>ordering</key>
|
8
10
|
<array>
|
9
11
|
<string>A7AB1D2B-E64F-459B-AD8B-10CC203F73CB</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 <a href="http://groovy.codehaus.org/">Groovy</a>.</string>
|
5
7
|
<key>mainMenu</key>
|
6
8
|
<dict>
|
7
9
|
<key>excludedItems</key>
|
@@ -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::
|
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::
|
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
|
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::
|
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
|
@@ -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::
|
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::
|
28
|
+
link "Cmd+Shift+?", WebBookmarks::ShowWebBookmarksCommand
|
29
29
|
end
|
30
30
|
lin = Keymap.build("main", [:linux,:windows]) do
|
31
|
-
link "Ctrl+Shift+?", WebBookmarks::
|
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::
|
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
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 11
|
9
|
-
|
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-
|
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:
|
7086
|
+
hash: 3
|
7076
7087
|
segments:
|
7077
|
-
-
|
7078
|
-
|
7079
|
-
- 1
|
7080
|
-
version: 1.3.1
|
7088
|
+
- 0
|
7089
|
+
version: "0"
|
7081
7090
|
requirements: []
|
7082
7091
|
|
7083
7092
|
rubyforge_project:
|