redcar-dev 0.12.17dev → 0.12.18dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +4 -2
- data/README.md +5 -41
- data/Rakefile +3 -35
- data/lib/redcar.rb +19 -17
- data/lib/redcar/runner.rb +1 -7
- data/lib/redcar_quick_start.rb +5 -5
- data/plugins/application/features/main_menu.feature +1 -1
- data/plugins/application/features/step_definitions/command_steps.rb +8 -7
- data/plugins/application/features/step_definitions/filter_list_dialog_steps.rb +25 -10
- data/plugins/application/features/step_definitions/key_steps.rb +6 -4
- data/plugins/application/features/step_definitions/menu_steps.rb +27 -26
- data/plugins/application/features/step_definitions/speedbar_steps.rb +28 -16
- data/plugins/application/features/step_definitions/tree_steps.rb +88 -64
- data/plugins/application/features/step_definitions/window_steps.rb +14 -10
- data/plugins/application/features/support/env.rb +85 -83
- data/plugins/application/spec/application/application_spec.rb +1 -1
- data/plugins/application/spec/application/clipboard_spec.rb +1 -1
- data/plugins/application/spec/application/command/executor_spec.rb +1 -1
- data/plugins/application/spec/application/command/history_spec.rb +1 -1
- data/plugins/application/spec/application/command_spec.rb +1 -1
- data/plugins/application/spec/application/keymap/builder_spec.rb +1 -1
- data/plugins/application/spec/application/menu/builder_spec.rb +1 -1
- data/plugins/application/spec/application/menu/menu_item_spec.rb +1 -1
- data/plugins/application/spec/application/menu_spec.rb +1 -1
- data/plugins/application/spec/application/navigation_history_spec.rb +2 -0
- data/plugins/application/spec/application/notebook_spec.rb +1 -1
- data/plugins/application/spec/application/sensitive_spec.rb +1 -1
- data/plugins/application/spec/application/speedbar_spec.rb +1 -1
- data/plugins/application/spec/application/treebook_spec.rb +1 -1
- data/plugins/application/spec/application/window_spec.rb +1 -1
- data/plugins/application/spec/spec_helper.rb +4 -6
- data/plugins/application_swt/lib/application_swt/dialogs/filter_list_dialog_controller.rb +1 -1
- data/plugins/application_swt/lib/application_swt/gradient.rb +15 -5
- data/plugins/application_swt/lib/application_swt/window.rb +1 -1
- data/plugins/application_swt/spec/application_swt/gradient_spec.rb +13 -14
- data/plugins/application_swt/spec/application_swt/menu/binding_translator_spec.rb +1 -1
- data/plugins/application_swt/spec/application_swt/menu_spec.rb +1 -1
- data/plugins/application_swt/spec/spec_helper.rb +1 -19
- data/plugins/auto_completer/features/auto_complete.feature +7 -7
- data/plugins/auto_completer/features/step_definitions/auto_complete_steps.rb +3 -1
- data/plugins/auto_completer/features/step_definitions/dependency_steps.rb +0 -0
- data/plugins/auto_indenter/features/java_style_indentation.feature +5 -3
- data/plugins/auto_indenter/features/ruby_style_indentation.feature +13 -13
- data/plugins/auto_indenter/features/step_definitions/indentation_steps.rb +3 -1
- data/plugins/auto_indenter/spec/auto_indenter/analyzer_spec.rb +1 -1
- data/plugins/auto_indenter/spec/spec_helper.rb +1 -5
- data/plugins/auto_pairer/features/auto_pairer.feature +1 -1
- data/plugins/comment/features/line_comment.feature +31 -26
- data/plugins/comment/features/selection_comment.feature +1 -1
- data/plugins/comment/features/step_definitions/comment_steps.rb +6 -2
- data/plugins/comment/vendor/comment_lib.json +2 -0
- data/plugins/core/lib/core.rb +26 -0
- data/plugins/core/spec/core/base_storage_spec.rb +1 -1
- data/plugins/core/spec/core/gui_spec.rb +1 -1
- data/plugins/core/spec/core/observable_spec.rb +2 -1
- data/plugins/core/spec/core/persistent_cache_spec.rb +1 -1
- data/plugins/core/spec/core/shared_storage_spec.rb +1 -1
- data/plugins/core/spec/core/storage_spec.rb +1 -1
- data/plugins/core/spec/core/task_queue_spec.rb +1 -3
- data/plugins/core/spec/spec_helper.rb +1 -4
- data/plugins/declarations/spec/declarations/file_spec.rb +1 -1
- data/plugins/declarations/spec/spec_helper.rb +1 -5
- data/plugins/document_search/features/find.feature +39 -39
- data/plugins/document_search/features/step_definitions/find_steps.rb +6 -2
- data/plugins/edit_view/features/align_assignment.feature +6 -82
- data/plugins/edit_view/features/case_change.feature +22 -22
- data/plugins/edit_view/features/cursor_navigation.feature +2 -2
- data/plugins/edit_view/features/cut_and_paste.feature +9 -9
- data/plugins/edit_view/features/indentation_commands.feature +8 -8
- data/plugins/edit_view/features/line_delimiter.feature +7 -7
- data/plugins/edit_view/features/multiple_windows.feature +48 -48
- data/plugins/edit_view/features/step_definitions/dependency_steps.rb +0 -0
- data/plugins/edit_view/features/step_definitions/editing_steps.rb +237 -127
- data/plugins/edit_view/features/step_definitions/grammar_steps.rb +5 -1
- data/plugins/edit_view/features/step_definitions/notebook_steps.rb +38 -24
- data/plugins/edit_view/features/step_definitions/tab_steps.rb +83 -45
- data/plugins/edit_view/features/step_definitions/window_steps.rb +75 -54
- data/plugins/edit_view/features/support/env.rb +4 -23
- data/plugins/edit_view/lib/edit_view/commands/align_assignment_command.rb +29 -30
- data/plugins/edit_view/lib/edit_view/document.rb +23 -0
- data/plugins/edit_view/spec/edit_view/commands/align_assignment_command_spec.rb +83 -0
- data/plugins/edit_view/spec/edit_view/document/indentation_spec.rb +1 -1
- data/plugins/edit_view/spec/edit_view/document_spec.rb +1 -1
- data/plugins/edit_view/spec/spec_helper.rb +1 -4
- data/plugins/edit_view_swt/spec/edit_view_swt/word_movement_spec.rb +1 -1
- data/plugins/edit_view_swt/spec/spec_helper.rb +1 -4
- data/plugins/html_view/features/fixtures/sample.html +1 -1
- data/plugins/html_view/features/step_definitions/html_view_steps.rb +40 -39
- data/plugins/java/features/syntax_check_java.feature +18 -16
- data/plugins/line_tools/features/step_definitions/line_tools_steps.rb +18 -6
- data/plugins/macros/features/block_selection_in_macros.feature +47 -47
- data/plugins/macros/features/step_definitions/macro_steps.rb +9 -3
- data/plugins/macros/features/step_definitions/prediction_steps.rb +6 -2
- data/plugins/macros/plugin.rb +2 -1
- data/plugins/macros/spec/macros/predictive/sequence_finder_spec.rb +1 -1
- data/plugins/macros/spec/spec_helper.rb +1 -6
- data/plugins/outline_view/features/outline_view.feature +5 -5
- data/plugins/outline_view/features/step_definitions/outline_steps.rb +29 -17
- data/plugins/plugin_manager_ui/lib/plugin_manager_ui.rb +1 -1
- data/plugins/project/features/close_directory_tree.feature +0 -12
- data/plugins/project/features/open_directory_tree.feature +1 -2
- data/plugins/project/features/step_definitions/directory_steps.rb +13 -5
- data/plugins/project/features/step_definitions/file_steps.rb +23 -9
- data/plugins/project/features/step_definitions/find_file_steps.rb +6 -2
- data/plugins/project/features/step_definitions/project_tree_steps.rb +6 -2
- data/plugins/project/features/watch_for_modified_files.feature +1 -1
- data/plugins/project/spec/project/adapters/remote_protocols/ftp_spec.rb +1 -1
- data/plugins/project/spec/project/adapters/remote_protocols/sftp_spec.rb +1 -1
- data/plugins/project/spec/project/adapters/remote_spec.rb +1 -1
- data/plugins/project/spec/project/dir_mirror_spec.rb +1 -1
- data/plugins/project/spec/project/file_list_spec.rb +1 -1
- data/plugins/project/spec/project/file_mirror_spec.rb +2 -1
- data/plugins/project/spec/spec_helper.rb +1 -4
- data/plugins/project_search/spec/project_search/binary_data_detector_spec.rb +1 -1
- data/plugins/project_search/spec/project_search/word_search_spec.rb +1 -1
- data/plugins/project_search/spec/spec_helper.rb +1 -4
- data/plugins/{application → redcar}/features/navigation_history.feature +8 -8
- data/plugins/redcar/features/step_definitions/font_steps.rb +9 -5
- data/plugins/redcar/redcar.rb +0 -26
- data/plugins/repl/features/step_definitions/repl_steps.rb +15 -5
- data/plugins/repl/plugin.rb +1 -1
- data/plugins/repl/spec/repl/repl_mirror_spec.rb +1 -1
- data/plugins/repl/spec/spec_helper.rb +1 -4
- data/plugins/ruby/spec/ruby/repl_mirror_spec.rb +1 -1
- data/plugins/ruby/spec/spec_helper.rb +1 -5
- data/plugins/runnables/features/parameter_input.feature +43 -43
- data/plugins/runnables/features/step_definitions/runnable_steps.rb +9 -3
- data/plugins/runnables/plugin.rb +2 -2
- data/plugins/runnables/spec/runnables/output_processor_spec.rb +1 -1
- data/plugins/runnables/spec/spec_helper.rb +1 -5
- data/plugins/scm_svn/features/add_and_commit.feature +1 -0
- data/plugins/scm_svn/features/checkout.feature +1 -0
- data/plugins/scm_svn/features/edit_and_index.feature +1 -0
- data/plugins/scm_svn/features/ignore_files.feature +1 -0
- data/plugins/scm_svn/features/merge.feature +1 -0
- data/plugins/scm_svn/features/resolve_conflict.feature +1 -0
- data/plugins/scm_svn/features/revert_and_delete.feature +1 -0
- data/plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb +14 -9
- data/plugins/scm_svn/features/support/env.rb +4 -4
- data/plugins/scm_svn/features/switch_branches.feature +1 -0
- data/plugins/scm_svn/features/update.feature +1 -0
- data/plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature +4 -4
- data/plugins/test_runner/plugin.rb +3 -1
- data/plugins/test_runner/spec/run_test_command_spec.rb +58 -50
- data/plugins/test_runner/spec/spec_helper.rb +1 -5
- data/plugins/textmate/features/step_definitions/tree_steps.rb +2 -0
- data/plugins/todo_list/features/todo_list.feature +1 -1
- data/plugins/todo_list/spec/spec_helper.rb +1 -4
- data/plugins/todo_list/spec/todo_list/file_parser_spec.rb +1 -1
- data/plugins/tree_view_swt/lib/tree_view_swt.rb +2 -1
- data/plugins/web_bookmarks/features/step_definitions/web_steps.rb +1 -1
- metadata +48 -48
- data/lib/redcar/installer.rb +0 -178
- data/plugins/key_bindings/spec/spec_helper.rb +0 -5
- data/plugins/scm/spec/spec_helper.rb +0 -5
|
@@ -5,12 +5,12 @@ Background:
|
|
|
5
5
|
And I move to line 2
|
|
6
6
|
And I run the command Redcar::OutlineView::OpenOutlineViewCommand
|
|
7
7
|
And I select the outline view
|
|
8
|
-
Then the cursor should be on line
|
|
8
|
+
Then the cursor should be on line 3
|
|
9
9
|
And I run the command Redcar::OutlineView::OpenOutlineViewCommand
|
|
10
10
|
When I set the outline filter to "con"
|
|
11
|
-
And I wait 2 seconds
|
|
11
|
+
And I wait "2" seconds
|
|
12
12
|
And I select the outline view
|
|
13
|
-
Then the cursor should be on line
|
|
13
|
+
Then the cursor should be on line 16
|
|
14
14
|
Given I have opened "plugins/application/lib/application/navigation_history.rb"
|
|
15
15
|
And I move to line 5
|
|
16
16
|
And I run the command Redcar::OutlineView::OpenOutlineViewCommand
|
|
@@ -23,19 +23,19 @@ Scenario: Backward/forward history
|
|
|
23
23
|
And the cursor should be on line 5
|
|
24
24
|
When I run the command Redcar::Top::BackwardNavigationCommand
|
|
25
25
|
Then the focussed document path is "plugins/application/spec/application/navigation_history_spec.rb"
|
|
26
|
-
And the cursor should be on line
|
|
26
|
+
And the cursor should be on line 16
|
|
27
27
|
When I run the command Redcar::Top::BackwardNavigationCommand
|
|
28
28
|
Then the focussed document path is "plugins/application/spec/application/navigation_history_spec.rb"
|
|
29
|
-
And the cursor should be on line
|
|
29
|
+
And the cursor should be on line 3
|
|
30
30
|
When I run the command Redcar::Top::BackwardNavigationCommand
|
|
31
31
|
Then the focussed document path is "plugins/application/spec/application/navigation_history_spec.rb"
|
|
32
32
|
And the cursor should be on line 2
|
|
33
33
|
When I run the command Redcar::Top::ForwardNavigationCommand
|
|
34
34
|
Then the focussed document path is "plugins/application/spec/application/navigation_history_spec.rb"
|
|
35
|
-
And the cursor should be on line
|
|
35
|
+
And the cursor should be on line 3
|
|
36
36
|
When I run the command Redcar::Top::ForwardNavigationCommand
|
|
37
37
|
Then the focussed document path is "plugins/application/spec/application/navigation_history_spec.rb"
|
|
38
|
-
And the cursor should be on line
|
|
38
|
+
And the cursor should be on line 16
|
|
39
39
|
When I run the command Redcar::Top::ForwardNavigationCommand
|
|
40
40
|
Then the focussed document path is "plugins/application/lib/application/navigation_history.rb"
|
|
41
41
|
And the cursor should be on line 5
|
|
@@ -55,7 +55,7 @@ Scenario: Change middle history
|
|
|
55
55
|
And the cursor should be on line 5
|
|
56
56
|
And I run the command Redcar::OutlineView::OpenOutlineViewCommand
|
|
57
57
|
When I set the outline filter to "can"
|
|
58
|
-
And I wait 2 seconds
|
|
58
|
+
And I wait "2" seconds
|
|
59
59
|
And I select the outline view
|
|
60
60
|
Then the cursor should be on line 21
|
|
61
61
|
When I run the command Redcar::Top::BackwardNavigationCommand
|
|
@@ -11,15 +11,19 @@ When /^I set the font size to (\d+|maximum|minimum)$/ do |arg1|
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
When /^I (de|in)crease the font size$/ do |direction|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
Swt.sync_exec do
|
|
15
|
+
if direction == 'in'
|
|
16
|
+
Redcar::Top::IncreaseFontSize.new.run
|
|
17
|
+
else
|
|
18
|
+
Redcar::Top::DecreaseFontSize.new.run
|
|
19
|
+
end
|
|
18
20
|
end
|
|
19
21
|
end
|
|
20
22
|
|
|
21
23
|
When /^I set the font size$/ do
|
|
22
|
-
|
|
24
|
+
Swt.sync_exec do
|
|
25
|
+
Redcar::Top::SelectFontSize.new.run
|
|
26
|
+
end
|
|
23
27
|
end
|
|
24
28
|
|
|
25
29
|
Then /^the font size should be (\d+|maximum|minimum)$/ do |size|
|
data/plugins/redcar/redcar.rb
CHANGED
|
@@ -25,32 +25,6 @@ module Redcar
|
|
|
25
25
|
result
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
class TimeoutError < StandardError; end
|
|
29
|
-
|
|
30
|
-
def self.timeout(limit)
|
|
31
|
-
x = Thread.current
|
|
32
|
-
result = nil
|
|
33
|
-
y = Thread.new do
|
|
34
|
-
begin
|
|
35
|
-
result = yield
|
|
36
|
-
rescue Object => e
|
|
37
|
-
x.raise e
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
s = Time.now
|
|
41
|
-
loop do
|
|
42
|
-
if not y.alive?
|
|
43
|
-
break
|
|
44
|
-
elsif Time.now - s > limit
|
|
45
|
-
y.kill
|
|
46
|
-
raise Redcar::TimeoutError, "timed out after #{Time.now - s}s"
|
|
47
|
-
break
|
|
48
|
-
end
|
|
49
|
-
sleep 0.1
|
|
50
|
-
end
|
|
51
|
-
result
|
|
52
|
-
end
|
|
53
|
-
|
|
54
28
|
module Top
|
|
55
29
|
class OpenNewEditTabCommand < Command
|
|
56
30
|
|
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
When /^I open a "([^"]*)" repl$/ do |repl|
|
|
2
|
-
|
|
2
|
+
Swt.sync_exec do
|
|
3
|
+
Redcar.const_get(repl.camelize).const_get("Open" + repl.camelize + "REPL").new.run
|
|
4
|
+
end
|
|
3
5
|
end
|
|
4
6
|
|
|
5
7
|
When /^I open a new repl$/ do
|
|
6
|
-
|
|
8
|
+
Swt.sync_exec do
|
|
9
|
+
Redcar::REPL::OpenFakeREPL.new.run
|
|
10
|
+
end
|
|
7
11
|
end
|
|
8
12
|
|
|
9
13
|
Then /^the REPL output should be "([^"]*)"$/ do |output|
|
|
10
|
-
|
|
14
|
+
Swt.sync_exec do
|
|
15
|
+
current_tab.edit_view.document.mirror.last_output.should == output
|
|
16
|
+
end
|
|
11
17
|
end
|
|
12
18
|
|
|
13
19
|
Then /^the current command should be "([^"]*)"$/ do |cmd|
|
|
14
|
-
|
|
20
|
+
Swt.sync_exec do
|
|
21
|
+
current_tab.current_command.should == cmd
|
|
22
|
+
end
|
|
15
23
|
end
|
|
16
24
|
|
|
17
25
|
Then /^the current command should be blank$/ do
|
|
18
|
-
|
|
26
|
+
Swt.sync_exec do
|
|
27
|
+
current_tab.current_command.should == nil
|
|
28
|
+
end
|
|
19
29
|
end
|
data/plugins/repl/plugin.rb
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
@runnables
|
|
2
|
-
Feature: Adding parameters to commands
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
# @runnables
|
|
2
|
+
# Feature: Adding parameters to commands
|
|
3
|
+
# As a user
|
|
4
|
+
# I want to add parameters to commands
|
|
5
|
+
# So I don't need to make many similar ones
|
|
6
|
+
#
|
|
7
|
+
# Background:
|
|
8
|
+
# When I will choose "plugins/runnables/features/fixtures" from the "open_directory" dialog
|
|
9
|
+
# And I open a directory
|
|
10
|
+
#
|
|
11
|
+
# Scenario: Running a command containing parameters
|
|
12
|
+
# Given I would type "runnable_app.rb" in an input box
|
|
13
|
+
# When I open the runnables tree
|
|
14
|
+
# And I expand the tree row "fixture_runnables"
|
|
15
|
+
# And I activate the "A params app" node in the tree
|
|
16
|
+
# Then my active tab should be "A params app"
|
|
17
|
+
# And the HTML tab should say "hello world"
|
|
18
|
+
#
|
|
19
|
+
# Scenario: Running a command containing parameters
|
|
20
|
+
# Given I would type "hello" in an input box
|
|
21
|
+
# And I would type "world" in an input box
|
|
22
|
+
# When I open the runnables tree
|
|
23
|
+
# And I expand the tree row "fixture_runnables"
|
|
24
|
+
# And I activate the "A multi-params app" node in the tree
|
|
25
|
+
# Then my active tab should be "A multi-params app"
|
|
26
|
+
# And the HTML tab should say "hello world"
|
|
27
|
+
#
|
|
28
|
+
# Scenario: Appending parameters before running a command
|
|
29
|
+
# Given I would type "world" in an input box
|
|
30
|
+
# When I open the runnables tree
|
|
31
|
+
# And I expand the tree row "fixture_runnables"
|
|
32
|
+
# And I append parameters to the "An appendable app" node in the tree
|
|
33
|
+
# Then my active tab should be "An appendable app"
|
|
34
|
+
# And the HTML tab should say "hello world"
|
|
35
|
+
#
|
|
36
|
+
# Scenario: Appending parameters to a command which ends in parameters is disallowed
|
|
37
|
+
# Given I would type "runnable_app.rb" in an input box
|
|
38
|
+
# And I would type "there" in an input box
|
|
39
|
+
# When I open the runnables tree
|
|
40
|
+
# And I expand the tree row "fixture_runnables"
|
|
41
|
+
# And I append parameters to the "A params app" node in the tree
|
|
42
|
+
# Then my active tab should be "A params app"
|
|
43
|
+
# And the HTML tab should say "hello world"
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
When /^I open the runnables tree$/ do
|
|
2
|
-
|
|
2
|
+
Swt.sync_exec do
|
|
3
|
+
Redcar::Runnables::ShowRunnables.new.run
|
|
4
|
+
end
|
|
3
5
|
end
|
|
4
6
|
|
|
5
7
|
When /^I change the command to "([^"]*)"$/ do |name|
|
|
@@ -10,7 +12,9 @@ When /^I change the command to "([^"]*)"$/ do |name|
|
|
|
10
12
|
end
|
|
11
13
|
|
|
12
14
|
When /^I go back to the "([^"]*)" window$/ do |title|
|
|
13
|
-
|
|
15
|
+
Swt.sync_exec do
|
|
16
|
+
Redcar.app.windows.detect { |w| w.title == title }.focus
|
|
17
|
+
end
|
|
14
18
|
end
|
|
15
19
|
|
|
16
20
|
When /^I note the number of windows$/ do
|
|
@@ -24,5 +28,7 @@ end
|
|
|
24
28
|
When /^I append parameters to the "([^"]*)" node in the tree$/ do |node_text|
|
|
25
29
|
mirror = Redcar.app.focussed_window.treebook.focussed_tree.tree_mirror
|
|
26
30
|
node = find_node_with_text(mirror.top, node_text)
|
|
27
|
-
|
|
31
|
+
Swt.sync_exec do
|
|
32
|
+
Redcar::Runnables::AppendParamsAndRunCommand.new(node).run
|
|
33
|
+
end
|
|
28
34
|
end
|
data/plugins/runnables/plugin.rb
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
|
+
|
|
1
2
|
Given /^I will open "([^"]*)" branch as a new project$/ do |branch_name|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Swt.sync_exec do
|
|
4
|
+
path = parse_branch_path(branch_name)
|
|
5
|
+
if path
|
|
6
|
+
Redcar.gui.dialog_adapter.set(:open_directory, path)
|
|
7
|
+
@svn_module = Redcar::Scm::Subversion::Manager.new
|
|
8
|
+
@svn_module.load(path)
|
|
9
|
+
end
|
|
7
10
|
end
|
|
8
11
|
end
|
|
9
12
|
|
|
10
13
|
When /^I switch to "([^"]*)" branch$/ do |branch_name|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
Swt.sync_exec do
|
|
15
|
+
path = parse_branch_path(branch_name)
|
|
16
|
+
Redcar.gui.dialog_adapter.set(:open_directory, path) if path
|
|
17
|
+
svn_module.switch!(branch_name)
|
|
18
|
+
svn_module.repository?(path).should == true
|
|
19
|
+
end
|
|
15
20
|
end
|
|
16
21
|
|
|
17
22
|
When /^I merge the "([^"]*)" branch$/ do |branch_name|
|