redcar 0.3.0dev → 0.3.1dev
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +29 -3
- data/README.md +33 -0
- data/ROADMAP.md +23 -25
- data/Rakefile +58 -85
- data/bin/redcar +8 -2
- data/lib/freebase2/lib/freebase/readers.rb +8 -1
- data/lib/redcar.rb +22 -7
- data/lib/redcar/boot.rb +2 -5
- data/lib/redcar/{install.rb → installer.rb} +24 -22
- data/lib/redcar/ruby_extensions.rb +4 -0
- data/plugins/application/features/step_definitions/menu_steps.rb +12 -0
- data/plugins/application/features/step_definitions/tree_steps.rb +14 -2
- data/plugins/application/features/support/env.rb +4 -0
- data/plugins/application/lib/application.rb +48 -4
- data/plugins/application/lib/application/command.rb +4 -0
- data/plugins/application/lib/application/command/executor.rb +4 -1
- data/plugins/application/lib/application/dialogs/filter_list_dialog.rb +45 -0
- data/plugins/application/lib/application/menu.rb +17 -2
- data/plugins/application/lib/application/menu/builder.rb +18 -15
- data/plugins/application/lib/application/notebook.rb +28 -1
- data/plugins/application/lib/application/sensitivity.rb +10 -6
- data/plugins/application/lib/application/tab.rb +0 -1
- data/plugins/application/lib/application/treebook.rb +5 -0
- data/plugins/application/lib/application/window.rb +21 -1
- data/plugins/application/spec/application/menu/builder_spec.rb +0 -12
- data/plugins/application/spec/application/menu_spec.rb +14 -0
- data/plugins/application/spec/spec_helper.rb +2 -1
- data/plugins/application_swt/lib/application_swt.rb +9 -2
- data/plugins/application_swt/lib/application_swt/dialogs/filter_list_dialog_controller.rb +128 -0
- data/plugins/application_swt/lib/application_swt/dialogs/no_buttons_dialog.rb +24 -0
- data/plugins/application_swt/lib/application_swt/menu.rb +3 -1
- data/plugins/application_swt/lib/application_swt/notebook.rb +20 -31
- data/plugins/application_swt/lib/application_swt/swt/listener_helpers.rb +20 -0
- data/plugins/application_swt/lib/application_swt/swt_wrapper.rb +11 -0
- data/plugins/application_swt/lib/application_swt/tab.rb +2 -1
- data/plugins/application_swt/lib/application_swt/window.rb +4 -6
- data/plugins/application_swt/spec/spec_helper.rb +4 -1
- data/plugins/core/lib/core.rb +21 -0
- data/plugins/core/lib/core/gui.rb +6 -1
- data/plugins/core/lib/core/observable.rb +7 -3
- data/plugins/core/lib/core/plugin/storage.rb +48 -0
- data/plugins/core/spec/core/storage_spec.rb +30 -0
- data/plugins/edit_view/features/step_definitions/editing_steps.rb +7 -0
- data/plugins/edit_view/features/step_definitions/notebook_steps.rb +4 -0
- data/plugins/edit_view/features/step_definitions/tab_steps.rb +24 -6
- data/plugins/edit_view/features/support/env.rb +4 -0
- data/plugins/edit_view/features/switch_tabs.feature +55 -0
- data/plugins/edit_view/features/undo_and_redo.feature +52 -0
- data/plugins/edit_view/lib/edit_view.rb +22 -12
- data/plugins/edit_view/lib/edit_view/command.rb +6 -0
- data/plugins/edit_view/lib/edit_view/document.rb +69 -8
- data/plugins/edit_view/lib/edit_view/edit_tab.rb +2 -1
- data/plugins/edit_view/spec/spec_helper.rb +2 -1
- data/plugins/edit_view_swt/lib/edit_view_swt.rb +36 -7
- data/plugins/edit_view_swt/lib/edit_view_swt/document.rb +42 -7
- data/plugins/project/features/open_and_save_files.feature +9 -0
- data/plugins/project/features/refresh_directory_tree.feature +37 -0
- data/plugins/project/features/step_definitions/directory_steps.rb +5 -1
- data/plugins/project/features/step_definitions/file_steps.rb +17 -0
- data/plugins/project/lib/project.rb +91 -20
- data/plugins/project/lib/project/dir_mirror.rb +10 -1
- data/plugins/project/lib/project/file_mirror.rb +2 -0
- data/plugins/project/lib/project/find_file_dialog.rb +86 -0
- data/plugins/project/lib/project/project_command.rb +5 -0
- data/plugins/project/spec/spec_helper.rb +2 -1
- data/plugins/redcar/plugin.yaml +0 -2
- data/plugins/redcar/redcar.rb +181 -14
- data/plugins/repl/lib/repl.rb +16 -8
- data/plugins/repl/lib/repl/internal_mirror.rb +3 -1
- data/plugins/repl/plugin.yaml +2 -2
- data/plugins/repl/spec/spec_helper.rb +2 -1
- data/plugins/tree/lib/tree.rb +5 -0
- data/plugins/tree/spec/spec_helper.rb +2 -1
- data/plugins/tree_view_swt/lib/tree_view_swt.rb +16 -0
- data/textmate/Bundles/Cucumber.tmbundle/Syntaxes/Cucumber_Plain_Text_Feature.tmLanguage +186 -0
- data/textmate/Bundles/Cucumber.tmbundle/Syntaxes/Cucumber_Steps.tmLanguage +249 -0
- data/textmate/Bundles/Cucumber.tmbundle/Syntaxes/plaintext_template.erb +187 -0
- data/textmate/Bundles/Java.tmbundle/Syntaxes/Java.plist +1153 -0
- data/textmate/Bundles/Java.tmbundle/Syntaxes/JavaProperties.plist +70 -0
- data/textmate/Bundles/Java.tmbundle/Syntaxes/Java_Server_Pages___JSP__.tmLanguage +256 -0
- data/textmate/Bundles/Perl.tmbundle/Syntaxes/Perl.plist +3209 -0
- data/textmate/Bundles/RedcarRepl.tmbundle/Syntaxes/InternalRuby.plist +2 -0
- data/textmate/Bundles/Ruby on Rails.tmbundle/Syntaxes/HTML___Rails__.plist +92 -0
- data/textmate/Bundles/Ruby on Rails.tmbundle/Syntaxes/JavaScript___Rails__.tmLanguage +82 -0
- data/textmate/Bundles/Ruby on Rails.tmbundle/Syntaxes/RJS.tmLanguage +25 -0
- data/textmate/Bundles/Ruby on Rails.tmbundle/Syntaxes/Ruby_on_Rails.plist +288 -0
- data/textmate/Bundles/Ruby on Rails.tmbundle/Syntaxes/SQL___Rails__.plist +51 -0
- metadata +342 -651
- data/ext/extconf.rb +0 -18
- data/textmate/Bundles/C.tmbundle/Snippets/010_main_______main__.plist +0 -20
- data/textmate/Bundles/C.tmbundle/Snippets/030_for_int_loop___fori__.plist +0 -19
- data/textmate/Bundles/C.tmbundle/Snippets/Include_header_once_only_guard.plist +0 -28
- data/textmate/Bundles/C.tmbundle/Snippets/Typedef.tmSnippet +0 -16
- data/textmate/Bundles/C.tmbundle/Snippets/__1_begin_________1_end_______beginend__.plist +0 -16
- data/textmate/Bundles/C.tmbundle/Snippets/__endif.plist +0 -17
- data/textmate/Bundles/C.tmbundle/Snippets/__ifndef__________define__________endif.tmSnippet +0 -18
- data/textmate/Bundles/C.tmbundle/Snippets/__include________inc__.plist +0 -16
- data/textmate/Bundles/C.tmbundle/Snippets/__pragma_mark___mark__.plist +0 -21
- data/textmate/Bundles/C.tmbundle/Snippets/class______class__.plist +0 -24
- data/textmate/Bundles/C.tmbundle/Snippets/do___while_loop___do__.plist +0 -18
- data/textmate/Bundles/C.tmbundle/Snippets/fprintf_______.tmSnippet +0 -16
- data/textmate/Bundles/C.tmbundle/Snippets/if______if__.plist +0 -19
- data/textmate/Bundles/C.tmbundle/Snippets/namespace______namespace__.plist +0 -20
- data/textmate/Bundles/C.tmbundle/Snippets/next___include________Inc__.plist +0 -16
- data/textmate/Bundles/C.tmbundle/Snippets/printf______printf__.plist +0 -16
- data/textmate/Bundles/C.tmbundle/Snippets/read_file___readF__.plist +0 -23
- data/textmate/Bundles/C.tmbundle/Snippets/std____map___map__.plist +0 -16
- data/textmate/Bundles/C.tmbundle/Snippets/std____vector___v__.plist +0 -16
- data/textmate/Bundles/C.tmbundle/Snippets/struct.plist +0 -19
- data/textmate/Bundles/C.tmbundle/Snippets/template___typename________template__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/Fixed_Position_Bottom_100___wide_IE6.tmSnippet +0 -18
- data/textmate/Bundles/CSS.tmbundle/Snippets/__important_CSS_______.plist +0 -18
- data/textmate/Bundles/CSS.tmbundle/Snippets/background____color_image_repeat_attachment_position___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__attachment___scroll__fixed___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__color____color__hex___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__color____color__name___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__color____color__rgb___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__color____transparent___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__image____none___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__image____url___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__position____position___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/background__repeat____r__r__x__r__y__n__r___background__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border_____size_style_color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__bottom___size_style_color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__bottom__color___size_style_color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__bottom__style___size_style_color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__bottom__width___size_style_color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__color___color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__left___size_style_color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__left__color___color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__left__style___style___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__left__width___size___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__right___size_style_color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__right__color___color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__right__style___style___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__right__width___size___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__style___style___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__top___size_style_color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__top__color___color___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__top__style___style___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__top__width___size___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/border__width___width___border__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/clear___value___clear__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/color____color__hex___color__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/color____color__name___color__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/color____color__rgb___color__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/cursor___type___cursor__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/cursor___url___cursor__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/direction___ltr__rtl___direction__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/display___block___display__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/display___common__types___display__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/display___inline___display__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/display___table__types___display__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/filter___AlphaImageLoader___for_IE_PNGs_____background__.plist +0 -19
- data/textmate/Bundles/CSS.tmbundle/Snippets/float___left__right__none___float__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/font_____style_variant_weight_size__line__height_font___family___font__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/font___size_font___font__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/font__family_____family___font__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/font__size___size___font__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/font__style_____normal__italic__oblique___font__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/font__variant_____normal__small__caps___font__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/font__weight___weight___font__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/letter__spacing_____length__em___letter__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/letter__spacing_____length__px___letter__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/list__style___type_position_image___list__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/list__style__image___url___list__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/list__style__position___pos___list__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/list__style__type___asian___list__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/list__style__type___marker__list__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/list__style__type___numeric___list__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/list__style__type___other___list__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/list__style__type___roman__alpha__greek___list__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/margin___T_R_B_L___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/margin___V_H___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/margin_____all___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/margin__bottom___length___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/margin__left___length___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/margin__right___length___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/margin__top___length___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/marker__offset___auto___marker__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/marker__offset___length___marker__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/opacity_____for_Safari___FF_and_IE_____opacity__.plist +0 -18
- data/textmate/Bundles/CSS.tmbundle/Snippets/overflow___type___overflow__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/padding_____T_R_B_L___padding__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/padding_____V_H___padding__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/padding_____all___padding__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/padding__bottom___length___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/padding__left___length___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/padding__right___length___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/padding__top___length___margin__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/position___type___position__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/properties_______________.plist +0 -19
- data/textmate/Bundles/CSS.tmbundle/Snippets/scrollbar.tmSnippet +0 -23
- data/textmate/Bundles/CSS.tmbundle/Snippets/selection.tmSnippet +0 -20
- data/textmate/Bundles/CSS.tmbundle/Snippets/text__align___left__center__right___txt__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/text__decoration___none__underline__overline__line__through__blink___text__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/text__indent___length___text__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/text__shadow___color__hex_x_y_blur___text__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/text__shadow___color__rgb_x_y_blur___text__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/text__shadow___none___text__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/text__transform___capitalize__upper__lower___text__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/text__transform___none___text__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/vertical__align___type___vertical__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/visibility___type___visibility__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/white__space____normal__pre__nowrap___white__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/word__spacing____length___word__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/word__spacing____normal___word__.plist +0 -16
- data/textmate/Bundles/CSS.tmbundle/Snippets/z__index___index___z__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Arrow___arrow__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Backspace___backspace__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Backtab___backtab__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Command___command__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Control___control__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Delete___delete__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/DocType_HTML_4_0_Strict.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/DocType_XHTL_1_0_Frameset.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/DocType_XHTML_1_0_Strict.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/DocType_XHTML_1_0_Transitional.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/DocType_XHTML_1_1.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/Down___down__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Embed_QT_movie___movie__.plist +0 -26
- data/textmate/Bundles/HTML.tmbundle/Snippets/Emphasize.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Enter___enter__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Escape___escape__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Fieldset.tmSnippet +0 -22
- data/textmate/Bundles/HTML.tmbundle/Snippets/HTML________4_0_Transitional___doctype__.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/IE_Conditional_Comment___Internet_Explorer.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/IE_Conditional_Comment___Internet_Explorer_5_0_only.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/IE_Conditional_Comment___Internet_Explorer_5_5_only.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/IE_Conditional_Comment___Internet_Explorer_5_x.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/IE_Conditional_Comment___Internet_Explorer_6_and_below.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/IE_Conditional_Comment___Internet_Explorer_6_only.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/IE_Conditional_Comment___Internet_Explorer_7__.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/IE_Conditional_Comment___NOT_Internet_Explorer.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Input_with_Label.tmSnippet +0 -19
- data/textmate/Bundles/HTML.tmbundle/Snippets/Left___left__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Option.tmSnippet +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/Option___option__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Return___return__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Right___right__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Select_Box.tmSnippet +0 -22
- data/textmate/Bundles/HTML.tmbundle/Snippets/Shift___shift__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Smart_return__indent_for_tag_pairs.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/Strong.tmSnippet +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Tab___tab__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Up___up__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Wrap_Selection_In_Tag.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/Wrap_in___________________.plist +0 -14
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML_____input__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML_____textarea__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___a_mailto_____.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___base__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___body__.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___br_____.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___div__.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___form__.plist +0 -20
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___h1__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___head__.plist +0 -20
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___link__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___meta__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___nbsp___NonBreakingSpace.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___script__.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___script_src_____.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___style__.plist +0 -18
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___table__.plist +0 -19
- data/textmate/Bundles/HTML.tmbundle/Snippets/XHTML___title__.plist +0 -16
- data/textmate/Bundles/HTML.tmbundle/Templates/HTML /342/200/223 4.0 Strict/index.html" +0 -15
- data/textmate/Bundles/HTML.tmbundle/Templates/HTML /342/200/223 4.0 Strict/info.plist" +0 -20
- data/textmate/Bundles/HTML.tmbundle/Templates/HTML /342/200/224 4.0 Transitional/index.html" +0 -15
- data/textmate/Bundles/HTML.tmbundle/Templates/HTML /342/200/224 4.0 Transitional/info.plist" +0 -20
- data/textmate/Bundles/HTML.tmbundle/Templates/XHTML /342/200/223 1.0 Frameset/index.html" +0 -16
- data/textmate/Bundles/HTML.tmbundle/Templates/XHTML /342/200/223 1.0 Frameset/info.plist" +0 -16
- data/textmate/Bundles/HTML.tmbundle/Templates/XHTML /342/200/223 1.0 Strict/index.html" +0 -16
- data/textmate/Bundles/HTML.tmbundle/Templates/XHTML /342/200/223 1.0 Strict/info.plist" +0 -16
- data/textmate/Bundles/HTML.tmbundle/Templates/XHTML /342/200/223 1.0 Transitional/index.html" +0 -16
- data/textmate/Bundles/HTML.tmbundle/Templates/XHTML /342/200/223 1.0 Transitional/info.plist" +0 -16
- data/textmate/Bundles/HTML.tmbundle/Templates/XHTML /342/200/223 1.1/index.html" +0 -15
- data/textmate/Bundles/HTML.tmbundle/Templates/XHTML /342/200/223 1.1/info.plist" +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/060_ruby_if_else.plist +0 -20
- data/textmate/Bundles/Ruby.tmbundle/Snippets/070_ruby_if.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/080_ruby_case.plist +0 -19
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Add_____________Marker.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Array_new__10________i____________Arr__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Benchmark_bmbm_______do____end.tmSnippet +0 -19
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Dir__________.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Dir_glob___________do___file______end____Dir__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/File_foreach____________do___line______end____File__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/File_open________________file________.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/File_read__________.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Hash_new______hash___key___hash__key_______________Has__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Insert_ERb__s______________or_______________.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Marshal_dump__obj___file______Md__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Marshal_load__obj______Ml__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/PStore_new________.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/RDoc_documentation_block.tmSnippet +0 -20
- data/textmate/Bundles/Ruby.tmbundle/Snippets/Wrap_in_Begin________Rescue________End.plist +0 -23
- data/textmate/Bundles/Ruby.tmbundle/Snippets/YAML_dump_______file______Yd____.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/YAML_load__file______Yl____.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/__END__.tmSnippet +0 -17
- data/textmate/Bundles/Ruby.tmbundle/Snippets/______usr__local__bin__ruby___w.plist +0 -17
- data/textmate/Bundles/Ruby.tmbundle/Snippets/__yields___RDoc_comment.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/alias_method_______am__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/all________e____________all__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/any________e____________any__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/application_code_______app__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert__________as__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_equal.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_in_delta__________asid__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_instance_of__________asio__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_kind_of__________asko__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_match__________asm__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_nil__________asn__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_no_match__________asnm__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_not_equal__________asne__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_not_nil__________asnn__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_not_same__________asns__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_nothing_raised___________________asnr__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_nothing_thrown_____________asnt__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_operator__________aso__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_raise___________________asr__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_respond_to__________asrt__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_same__________ass__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_send__________ass__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/assert_throws___________________ast__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/attr_accessor_______rw__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/attr_reader_______r__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/attr_writer_______w__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class_______DelegateClass____initialize____end____class__.plist +0 -24
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class_______ParentClass____initialize____end.plist +0 -22
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class_______Struct____initialize____end.plist +0 -22
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class_______Test____Unit____TestCase____end____tc__.plist +0 -24
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class______self____end.tmSnippet +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class____end____cla__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class____initialize____end.plist +0 -22
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class____instance_methods____undef____initialize____end____class__.plist +0 -30
- data/textmate/Bundles/Ruby.tmbundle/Snippets/class_from_name________clafn__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/classify______e____________clas__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/collect______e____________col__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/deep_copy__________dee__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/def_delegator______defd__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/def_delegators______defds__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/def_end.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/def_method_missing____end____mm__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/def_self____end____defs__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/def_test_____end____t__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/delete_if______e____________deli__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/detect______e____________det__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/directory____.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/do___obj______end___doo__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/downto__0________n____________dow__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each______e____________ea__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_byte______byte____________eab__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_char______chr____________eac____.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_cons____________group____________eac____.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_index______i____________eai__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_key______key____________eak__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_line______line____________eal__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_pair______name___val____________eap__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_slice______group____________eas__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_value______val____________eav__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/each_with_index______e___i____________eawi__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/elsif____.tmSnippet +0 -17
- data/textmate/Bundles/Ruby.tmbundle/Snippets/embed_string_variable.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/extend_Forwardable____Forw__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/fetch__name________key____________fet__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/fill__range________i____________fil__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/find______e____________fin__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/find_all______e____________fina__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/flatten_once____fla__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/flunk__________fl__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/grep____pattern__________match____________gre__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/gsub________________match____________gsu__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/hash_pair_______.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/hash_pointer.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/include_Comparable_______Comp__.plist +0 -20
- data/textmate/Bundles/Ruby.tmbundle/Snippets/include_Enumerable_______Enum__.plist +0 -20
- data/textmate/Bundles/Ruby.tmbundle/Snippets/inject__init________mem___var____________inj__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/lambda______args____________lam__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/loop_________.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/map______e____________map__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/map_with_index______e___i____________mapwi__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/max______a___b____________max__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/min______a___b____________min__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/module____ClassMethods____end.plist +0 -29
- data/textmate/Bundles/Ruby.tmbundle/Snippets/module____end.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/module____module_function____end.plist +0 -20
- data/textmate/Bundles/Ruby.tmbundle/Snippets/namespace______do____end.tmSnippet +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/open____path__or__url_______w_____do___doc______end___ope__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/open_yield_block_______.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/option_parse_____________optp__.plist +0 -43
- data/textmate/Bundles/Ruby.tmbundle/Snippets/partition______e____________par__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/path_from_here________.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/randomize____ran__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/reject______e____________rej__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/require___________req__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/require___tc____________ts__.plist +0 -20
- data/textmate/Bundles/Ruby.tmbundle/Snippets/require_gem_______.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/results_report_______________.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/reverse_each______e____________rea__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/scan________________match____________sca__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/select______e____________sel__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/singleton_class____.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/sort______a___b____________sor__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/sort_by______e____________sorb__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/step__2________e____________ste__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/sub________________match____________sub__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/task___task_name__________dependent_____tasks___do____end.tmSnippet +0 -19
- data/textmate/Bundles/Ruby.tmbundle/Snippets/times______n____________tim__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/transaction_________do____end.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/unix_filter______uni__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/unless___unless__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/until_____end.tmSnippet +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/untitled.plist +0 -19
- data/textmate/Bundles/Ruby.tmbundle/Snippets/upto__1_0__0_0________n____________upt__.plist +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/usage_if________usai__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/usage_unless________usau__.plist +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/when.plist +0 -17
- data/textmate/Bundles/Ruby.tmbundle/Snippets/while_____end.tmSnippet +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/xmlread______.tmSnippet +0 -16
- data/textmate/Bundles/Ruby.tmbundle/Snippets/xpath_______________.tmSnippet +0 -18
- data/textmate/Bundles/Ruby.tmbundle/Snippets/zip__enums________row____________zip__.plist +0 -16
- data/textmate/Bundles/Source.tmbundle/Snippets/Continue_line_comment.plist +0 -35
- data/textmate/Bundles/Source.tmbundle/Snippets/Escaped_Quote_Pair_____________.plist +0 -14
- data/textmate/Bundles/Source.tmbundle/Snippets/Escaped_Single_Quote_Pair_____________.plist +0 -14
- data/textmate/Bundles/Source.tmbundle/Snippets/Frame_text.plist +0 -16
- data/textmate/Bundles/Source.tmbundle/Snippets/__n.plist +0 -16
- data/textmate/Bundles/Text.tmbundle/Snippets/010_Copyright.plist +0 -14
- data/textmate/Bundles/Text.tmbundle/Snippets/Conitnue_bullet.plist +0 -17
- data/textmate/Bundles/Text.tmbundle/Snippets/Conitnue_light_bullet.plist +0 -17
- data/textmate/Bundles/Text.tmbundle/Snippets/Conitnue_star_bullet.plist +0 -17
- data/textmate/Bundles/Text.tmbundle/Snippets/Insert_ISO_date.plist +0 -14
- data/textmate/Bundles/Text.tmbundle/Snippets/Lorem_ipsum.plist +0 -14
- data/textmate/Bundles/Text.tmbundle/Templates/Empty file/info.plist +0 -14
- data/textmate/Bundles/Text.tmbundle/Templates/From Clipboard/info.plist +0 -17
data/plugins/repl/lib/repl.rb
CHANGED
@@ -3,6 +3,22 @@ require 'repl/internal_mirror'
|
|
3
3
|
|
4
4
|
module Redcar
|
5
5
|
class REPL
|
6
|
+
def self.start
|
7
|
+
Sensitivity.new(:open_repl_tab, Redcar.app, false, [:tab_focussed]) do |tab|
|
8
|
+
tab and
|
9
|
+
tab.is_a?(EditTab) and
|
10
|
+
tab.edit_view.document.mirror.is_a?(REPL::InternalMirror)
|
11
|
+
end
|
12
|
+
|
13
|
+
Redcar.app.menu.sub_menu("Plugins").build do
|
14
|
+
sub_menu "REPL" do
|
15
|
+
item "Open", REPL::OpenInternalREPL
|
16
|
+
item "Execute", REPL::CommitREPL
|
17
|
+
end
|
18
|
+
end
|
19
|
+
Redcar.app.refresh_menu!
|
20
|
+
end
|
21
|
+
|
6
22
|
class OpenInternalREPL < Command
|
7
23
|
|
8
24
|
def execute
|
@@ -18,14 +34,6 @@ module Redcar
|
|
18
34
|
sensitize :open_repl_tab
|
19
35
|
end
|
20
36
|
|
21
|
-
def self.start
|
22
|
-
Sensitivity.new(:open_repl_tab, Redcar.app, false, [:tab_focussed]) do |tab|
|
23
|
-
tab and
|
24
|
-
tab.is_a?(EditTab) and
|
25
|
-
tab.edit_view.document.mirror.is_a?(REPL::InternalMirror)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
37
|
class CommitREPL < ReplCommand
|
30
38
|
key :linux => "Ctrl+M",
|
31
39
|
:osx => "Cmd+M",
|
@@ -24,7 +24,9 @@ module Redcar
|
|
24
24
|
output, is_error = *result
|
25
25
|
str << prompt + command + "\n"
|
26
26
|
str << (is_error ? error_pointer : output_pointer)
|
27
|
-
|
27
|
+
output.scan(/.{1,80}/).each do |output_line|
|
28
|
+
str << output_line + "\n"
|
29
|
+
end
|
28
30
|
end
|
29
31
|
str << prompt
|
30
32
|
end
|
data/plugins/repl/plugin.yaml
CHANGED
data/plugins/tree/lib/tree.rb
CHANGED
@@ -5,6 +5,7 @@ require 'tree/mirror'
|
|
5
5
|
module Redcar
|
6
6
|
class Tree
|
7
7
|
include Redcar::Model
|
8
|
+
include Redcar::Observable
|
8
9
|
|
9
10
|
attr_reader :tree_mirror, :tree_controller
|
10
11
|
|
@@ -12,6 +13,10 @@ module Redcar
|
|
12
13
|
@tree_mirror = tree_mirror
|
13
14
|
@tree_controller = tree_controller
|
14
15
|
end
|
16
|
+
|
17
|
+
def refresh
|
18
|
+
notify_listeners(:refresh)
|
19
|
+
end
|
15
20
|
end
|
16
21
|
end
|
17
22
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
|
2
2
|
module Redcar
|
3
3
|
class TreeViewSWT
|
4
|
+
attr_reader :viewer
|
4
5
|
|
5
6
|
def initialize(composite, model)
|
6
7
|
@composite, @model = composite, model
|
@@ -13,6 +14,21 @@ module Redcar
|
|
13
14
|
@viewer.add_tree_listener(@viewer.getControl, TreeListener.new)
|
14
15
|
@viewer.add_open_listener(OpenListener.new(@model.tree_controller))
|
15
16
|
end
|
17
|
+
|
18
|
+
@model.add_listener(:refresh) do
|
19
|
+
s = Time.now
|
20
|
+
begin
|
21
|
+
@viewer.refresh
|
22
|
+
rescue => e
|
23
|
+
# Don't know why the @viewer sometimes throws these:
|
24
|
+
# "undefined method `getParent' for #<Redcar::TreeViewSWT::TreeMirrorContentProvider:0x44655c8c> (NoMethodError)"
|
25
|
+
# It looks like it is expecting a ILazyTreeViewContentProvider, because getParent
|
26
|
+
# is in the API for that.
|
27
|
+
puts e.message
|
28
|
+
puts e.backtrace
|
29
|
+
end
|
30
|
+
puts "tree refresh took #{Time.now - s} seconds"
|
31
|
+
end
|
16
32
|
end
|
17
33
|
|
18
34
|
def control
|
@@ -0,0 +1,186 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>fileTypes</key>
|
6
|
+
<array>
|
7
|
+
<string>feature</string>
|
8
|
+
</array>
|
9
|
+
<key>foldingStartMarker</key>
|
10
|
+
<string>^\s*\b(Cenário|Escenario|MISHUN|Scenarie|Scenarijus|Scenario|Scenariu|Scenariusz|Scénario|Skenario|Stsenaarium|Szenario|Tapaus|Сценарий|سيناريو|シナリオ|场景|예:)</string>
|
11
|
+
<key>foldingStopMarker</key>
|
12
|
+
<string>^\s*$</string>
|
13
|
+
<key>keyEquivalent</key>
|
14
|
+
<string>^~C</string>
|
15
|
+
<key>name</key>
|
16
|
+
<string>Cucumber Plain Text Feature</string>
|
17
|
+
<key>patterns</key>
|
18
|
+
<array>
|
19
|
+
<dict>
|
20
|
+
<key>include</key>
|
21
|
+
<string>#scenario_keyword</string>
|
22
|
+
</dict>
|
23
|
+
<dict>
|
24
|
+
<key>include</key>
|
25
|
+
<string>#description</string>
|
26
|
+
</dict>
|
27
|
+
<dict>
|
28
|
+
<key>include</key>
|
29
|
+
<string>#feature_keyword</string>
|
30
|
+
</dict>
|
31
|
+
<dict>
|
32
|
+
<key>include</key>
|
33
|
+
<string>#line_keyword</string>
|
34
|
+
</dict>
|
35
|
+
<dict>
|
36
|
+
<key>include</key>
|
37
|
+
<string>#pending_keyword</string>
|
38
|
+
</dict>
|
39
|
+
<dict>
|
40
|
+
<key>include</key>
|
41
|
+
<string>#strings_single_quote</string>
|
42
|
+
</dict>
|
43
|
+
<dict>
|
44
|
+
<key>include</key>
|
45
|
+
<string>#strings_double_quote</string>
|
46
|
+
</dict>
|
47
|
+
<dict>
|
48
|
+
<key>include</key>
|
49
|
+
<string>#comments</string>
|
50
|
+
</dict>
|
51
|
+
</array>
|
52
|
+
<key>repository</key>
|
53
|
+
<dict>
|
54
|
+
<key>comments</key>
|
55
|
+
<dict>
|
56
|
+
<key>captures</key>
|
57
|
+
<dict>
|
58
|
+
<key>0</key>
|
59
|
+
<dict>
|
60
|
+
<key>name</key>
|
61
|
+
<string>comment.line.number-sign</string>
|
62
|
+
</dict>
|
63
|
+
</dict>
|
64
|
+
<key>match</key>
|
65
|
+
<string>\s*(#.*)</string>
|
66
|
+
</dict>
|
67
|
+
<key>description</key>
|
68
|
+
<dict>
|
69
|
+
<key>captures</key>
|
70
|
+
<dict>
|
71
|
+
<key>1</key>
|
72
|
+
<dict>
|
73
|
+
<key>name</key>
|
74
|
+
<string>keyword.language.cucumber.feature.description</string>
|
75
|
+
</dict>
|
76
|
+
<key>2</key>
|
77
|
+
<dict>
|
78
|
+
<key>name</key>
|
79
|
+
<string>string.language.cucumber.feature.description</string>
|
80
|
+
</dict>
|
81
|
+
</dict>
|
82
|
+
<key>match</key>
|
83
|
+
<string>^\s*(As an|As a|I want|So that|In order)(.*)</string>
|
84
|
+
</dict>
|
85
|
+
<key>feature_keyword</key>
|
86
|
+
<dict>
|
87
|
+
<key>captures</key>
|
88
|
+
<dict>
|
89
|
+
<key>1</key>
|
90
|
+
<dict>
|
91
|
+
<key>name</key>
|
92
|
+
<string>keyword.language.cucumber.feature</string>
|
93
|
+
</dict>
|
94
|
+
<key>2</key>
|
95
|
+
<dict>
|
96
|
+
<key>name</key>
|
97
|
+
<string>string.language.cucumber.feature.title</string>
|
98
|
+
</dict>
|
99
|
+
</dict>
|
100
|
+
<key>match</key>
|
101
|
+
<string>\b(Arwedd|Característica|Egenskab|Egenskap|Feature|Fitur|Fonctionnalité|Functionalitate|Functionaliteit|Funcționalitate|Funktionalität|Funzionalità|OH HAI|Omadus|Ominaisuus|Sąvybė|Właściwość|Функционал|خاصية|フィーチャ|功能|기능:)(.*)\b</string>
|
102
|
+
</dict>
|
103
|
+
<key>line_keyword</key>
|
104
|
+
<dict>
|
105
|
+
<key>captures</key>
|
106
|
+
<dict>
|
107
|
+
<key>1</key>
|
108
|
+
<dict>
|
109
|
+
<key>name</key>
|
110
|
+
<string>keyword.language.cucumber.feature.scenario.line</string>
|
111
|
+
</dict>
|
112
|
+
</dict>
|
113
|
+
<key>match</key>
|
114
|
+
<string>\b(A|AN|Aber|Abstrakt Scenario|Ale|Allora|Alors|Als|And|And y'all|Antecedentes|Arabic|Atunci|B4|BUT|Background|Baggrund|Bahasa Indonesia|Bakgrund|Bakgrunn|Beispiele|Bet|But|But y'all|Cand|Chinese simplified|Contoh|Cuando|Cymraeg|Când|DEN|Daca|Dacă|Dado|Dan|Dane|Danish|Dann|Dar|Dato|Dengan|Deutsch|Duota|Dutch|E|EXAMPLZ|Eeldades|Ejemplos|Eksempler|En|Enghreifftiau|English|Entonces|Então|Esquema del escenario|Estonian|Et|Etant donné|Examples|Exempel|Exemples|Finnish|French|GIVN|Gegeben sei|Gegeven|German|Gitt|Given|Given y'all|Givet|Indonesian|Ir|Italian|Ja|Japanese|Jeżeli|Kai|Ketika|Korean|Kui|Kuid|Kun|LOLCAT|Lithuanian|Lorsque|MISHUN SRSLY|Ma|Maar|Mais|Maka|Mas|Men|Mutta|Nederlands|Niin|Norwegian|När|Når|Och|Og|Oletetaan|Ond|Oraz|Pavyzdžių|Pero|Più esempi|Polish|Portuguese|Pryd|Quando|Romanian|Romanian (diacritical)|Russian|Scenario Outline|Scénario esquisse|Shift_JIS|Si|Siis|Skenario konsep|Spanish|Svenska|Swedish|Szenariogrundriss|Så|Tada|Tapaukset|Tapausaihio|Tapi|Texan|Then|Then y'all|UTF-8|Und|WEN|Welsh|Wenn|When|When y'all|Wtedy|Y|Yna|anrhegedig a|dansk|eesti keel|español|français|italiano|lietuvių kalba|norsk|polski|português|română|română (diacritical)|suomi|Și|Если|И|Но|Сначала|То|русский язык|اذاً|العربية|بفرض|لكن|متى|و|かつ|しかし|ならば|もし|中文|他のサンプル|但是|假如|前提|当|日本語|而且|那么|그러면|그리고|만일|조건|하지만|한국어)\b</string>
|
115
|
+
</dict>
|
116
|
+
<key>pending_keyword</key>
|
117
|
+
<dict>
|
118
|
+
<key>captures</key>
|
119
|
+
<dict>
|
120
|
+
<key>1</key>
|
121
|
+
<dict>
|
122
|
+
<key>name</key>
|
123
|
+
<string>keyword.language.cucumber.feature.scenario.pending.line</string>
|
124
|
+
</dict>
|
125
|
+
<key>2</key>
|
126
|
+
<dict>
|
127
|
+
<key>name</key>
|
128
|
+
<string>string.language.cucumber.feature.scenario.pending.line</string>
|
129
|
+
</dict>
|
130
|
+
</dict>
|
131
|
+
<key>match</key>
|
132
|
+
<string>\b(Pending)(.*)\b</string>
|
133
|
+
</dict>
|
134
|
+
<key>scenario_keyword</key>
|
135
|
+
<dict>
|
136
|
+
<key>captures</key>
|
137
|
+
<dict>
|
138
|
+
<key>1</key>
|
139
|
+
<dict>
|
140
|
+
<key>name</key>
|
141
|
+
<string>keyword.language.cucumber.feature.scenario</string>
|
142
|
+
</dict>
|
143
|
+
<key>2</key>
|
144
|
+
<dict>
|
145
|
+
<key>name</key>
|
146
|
+
<string>string.language.cucumber.feature.scenario.title</string>
|
147
|
+
</dict>
|
148
|
+
</dict>
|
149
|
+
<key>match</key>
|
150
|
+
<string>\b(Cenário|Escenario|MISHUN|Scenarie|Scenarijus|Scenario|Scenariu|Scenariusz|Scénario|Skenario|Stsenaarium|Szenario|Tapaus|Сценарий|سيناريو|シナリオ|场景|예:)(.*)\b</string>
|
151
|
+
</dict>
|
152
|
+
<key>strings_double_quote</key>
|
153
|
+
<dict>
|
154
|
+
<key>captures</key>
|
155
|
+
<dict>
|
156
|
+
<key>0</key>
|
157
|
+
<dict>
|
158
|
+
<key>name</key>
|
159
|
+
<string>string.quoted.double</string>
|
160
|
+
</dict>
|
161
|
+
</dict>
|
162
|
+
<key>match</key>
|
163
|
+
<string>\s+"([^"]+)"[\b\s]+</string>
|
164
|
+
</dict>
|
165
|
+
<key>strings_single_quote</key>
|
166
|
+
<dict>
|
167
|
+
<key>captures</key>
|
168
|
+
<dict>
|
169
|
+
<key>0</key>
|
170
|
+
<dict>
|
171
|
+
<key>name</key>
|
172
|
+
<string>string.quoted.single</string>
|
173
|
+
</dict>
|
174
|
+
</dict>
|
175
|
+
<key>match</key>
|
176
|
+
<string>\s+'([^']+)'[\b\s]+</string>
|
177
|
+
</dict>
|
178
|
+
</dict>
|
179
|
+
<key>scopeName</key>
|
180
|
+
<string>text.cucumber.feature</string>
|
181
|
+
<key>uuid</key>
|
182
|
+
<string>85E2C52C-9B16-4A54-81E7-6D8D3ADAEFA8</string>
|
183
|
+
<key>firstLineMatch</key>
|
184
|
+
<string>Arwedd|Característica|Egenskab|Egenskap|Feature|Fitur|Fonctionnalité|Functionalitate|Functionaliteit|Funcționalitate|Funktionalität|Funzionalità|OH HAI|Omadus|Ominaisuus|Sąvybė|Właściwość|Функционал|خاصية|フィーチャ|功能|기능(.*)</string>
|
185
|
+
</dict>
|
186
|
+
</plist>
|
@@ -0,0 +1,249 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>fileTypes</key>
|
6
|
+
<array>
|
7
|
+
<string>steps.rb</string>
|
8
|
+
</array>
|
9
|
+
<key>keyEquivalent</key>
|
10
|
+
<string>^~C</string>
|
11
|
+
<key>name</key>
|
12
|
+
<string>Cucumber Steps</string>
|
13
|
+
<key>patterns</key>
|
14
|
+
<array>
|
15
|
+
<dict>
|
16
|
+
<key>match</key>
|
17
|
+
<string>\b(GivenScenario|Given|When|Then)\b</string>
|
18
|
+
<key>name</key>
|
19
|
+
<string>keyword.other.step.cucumber</string>
|
20
|
+
</dict>
|
21
|
+
<dict>
|
22
|
+
<key>begin</key>
|
23
|
+
<string>\b(?<=GivenScenario|Given|When|Then) (")</string>
|
24
|
+
<key>captures</key>
|
25
|
+
<dict>
|
26
|
+
<key>1</key>
|
27
|
+
<dict>
|
28
|
+
<key>name</key>
|
29
|
+
<string>string.quoted.ruby</string>
|
30
|
+
</dict>
|
31
|
+
<key>2</key>
|
32
|
+
<dict>
|
33
|
+
<key>name</key>
|
34
|
+
<string>punctuation.definition.string.ruby</string>
|
35
|
+
</dict>
|
36
|
+
</dict>
|
37
|
+
<key>comment</key>
|
38
|
+
<string>string after a Cucumber keyword</string>
|
39
|
+
<key>contentName</key>
|
40
|
+
<string>string.quoted.step.cucumber.classic.ruby</string>
|
41
|
+
<key>end</key>
|
42
|
+
<string>((\1))</string>
|
43
|
+
<key>patterns</key>
|
44
|
+
<array>
|
45
|
+
<dict>
|
46
|
+
<key>include</key>
|
47
|
+
<string>#regex_sub</string>
|
48
|
+
</dict>
|
49
|
+
</array>
|
50
|
+
</dict>
|
51
|
+
<dict>
|
52
|
+
<key>begin</key>
|
53
|
+
<string>\b(?<=GivenScenario|Given|When|Then) (')</string>
|
54
|
+
<key>captures</key>
|
55
|
+
<dict>
|
56
|
+
<key>1</key>
|
57
|
+
<dict>
|
58
|
+
<key>name</key>
|
59
|
+
<string>string.quoted.ruby</string>
|
60
|
+
</dict>
|
61
|
+
<key>2</key>
|
62
|
+
<dict>
|
63
|
+
<key>name</key>
|
64
|
+
<string>punctuation.definition.string.ruby</string>
|
65
|
+
</dict>
|
66
|
+
</dict>
|
67
|
+
<key>comment</key>
|
68
|
+
<string>string after a Cucumber keyword</string>
|
69
|
+
<key>contentName</key>
|
70
|
+
<string>string.quoted.step.cucumber.classic.ruby</string>
|
71
|
+
<key>end</key>
|
72
|
+
<string>((\1))</string>
|
73
|
+
<key>patterns</key>
|
74
|
+
<array>
|
75
|
+
<dict>
|
76
|
+
<key>include</key>
|
77
|
+
<string>#regex_sub</string>
|
78
|
+
</dict>
|
79
|
+
</array>
|
80
|
+
</dict>
|
81
|
+
<dict>
|
82
|
+
<key>begin</key>
|
83
|
+
<string>\b(?<=GivenScenario|Given|When|Then) (/)</string>
|
84
|
+
<key>captures</key>
|
85
|
+
<dict>
|
86
|
+
<key>1</key>
|
87
|
+
<dict>
|
88
|
+
<key>name</key>
|
89
|
+
<string>string.regexp.classic.ruby</string>
|
90
|
+
</dict>
|
91
|
+
<key>2</key>
|
92
|
+
<dict>
|
93
|
+
<key>name</key>
|
94
|
+
<string>punctuation.definition.string.ruby</string>
|
95
|
+
</dict>
|
96
|
+
</dict>
|
97
|
+
<key>comment</key>
|
98
|
+
<string>regular expression after a Cucumber keyword</string>
|
99
|
+
<key>contentName</key>
|
100
|
+
<string>string.regexp.step.cucumber.classic.ruby</string>
|
101
|
+
<key>end</key>
|
102
|
+
<string>((/[eimnosux]*))</string>
|
103
|
+
<key>patterns</key>
|
104
|
+
<array>
|
105
|
+
<dict>
|
106
|
+
<key>include</key>
|
107
|
+
<string>#regex_sub</string>
|
108
|
+
</dict>
|
109
|
+
</array>
|
110
|
+
</dict>
|
111
|
+
<dict>
|
112
|
+
<key>begin</key>
|
113
|
+
<string>\b(?<=GivenScenario|Given|When|Then) (%r{)</string>
|
114
|
+
<key>captures</key>
|
115
|
+
<dict>
|
116
|
+
<key>1</key>
|
117
|
+
<dict>
|
118
|
+
<key>name</key>
|
119
|
+
<string>string.regexp.mod-r.ruby</string>
|
120
|
+
</dict>
|
121
|
+
<key>2</key>
|
122
|
+
<dict>
|
123
|
+
<key>name</key>
|
124
|
+
<string>punctuation.definition.string.ruby</string>
|
125
|
+
</dict>
|
126
|
+
</dict>
|
127
|
+
<key>comment</key>
|
128
|
+
<string>regular expression after a Cucumber keyword</string>
|
129
|
+
<key>contentName</key>
|
130
|
+
<string>string.regexp.step.cucumber.mod-r.ruby</string>
|
131
|
+
<key>end</key>
|
132
|
+
<string>((}[eimnosux]*))</string>
|
133
|
+
<key>patterns</key>
|
134
|
+
<array>
|
135
|
+
<dict>
|
136
|
+
<key>include</key>
|
137
|
+
<string>#regex_sub</string>
|
138
|
+
</dict>
|
139
|
+
</array>
|
140
|
+
</dict>
|
141
|
+
<dict>
|
142
|
+
<key>include</key>
|
143
|
+
<string>source.ruby</string>
|
144
|
+
</dict>
|
145
|
+
</array>
|
146
|
+
<key>repository</key>
|
147
|
+
<dict>
|
148
|
+
<key>regex_sub</key>
|
149
|
+
<dict>
|
150
|
+
<key>patterns</key>
|
151
|
+
<array>
|
152
|
+
<dict>
|
153
|
+
<key>include</key>
|
154
|
+
<string>#interpolated_ruby</string>
|
155
|
+
</dict>
|
156
|
+
<dict>
|
157
|
+
<key>include</key>
|
158
|
+
<string>#escaped_char</string>
|
159
|
+
</dict>
|
160
|
+
<dict>
|
161
|
+
<key>captures</key>
|
162
|
+
<dict>
|
163
|
+
<key>1</key>
|
164
|
+
<dict>
|
165
|
+
<key>name</key>
|
166
|
+
<string>punctuation.definition.arbitrary-repitition.ruby</string>
|
167
|
+
</dict>
|
168
|
+
<key>3</key>
|
169
|
+
<dict>
|
170
|
+
<key>name</key>
|
171
|
+
<string>punctuation.definition.arbitrary-repitition.ruby</string>
|
172
|
+
</dict>
|
173
|
+
</dict>
|
174
|
+
<key>match</key>
|
175
|
+
<string>(\{)\d+(,\d+)?(\})</string>
|
176
|
+
<key>name</key>
|
177
|
+
<string>string.regexp.arbitrary-repitition.ruby</string>
|
178
|
+
</dict>
|
179
|
+
<dict>
|
180
|
+
<key>begin</key>
|
181
|
+
<string>\[(?:\^?\])?</string>
|
182
|
+
<key>captures</key>
|
183
|
+
<dict>
|
184
|
+
<key>0</key>
|
185
|
+
<dict>
|
186
|
+
<key>name</key>
|
187
|
+
<string>punctuation.definition.character-class.ruby</string>
|
188
|
+
</dict>
|
189
|
+
</dict>
|
190
|
+
<key>end</key>
|
191
|
+
<string>\]</string>
|
192
|
+
<key>name</key>
|
193
|
+
<string>string.regexp.character-class.ruby</string>
|
194
|
+
<key>patterns</key>
|
195
|
+
<array>
|
196
|
+
<dict>
|
197
|
+
<key>include</key>
|
198
|
+
<string>#escaped_char</string>
|
199
|
+
</dict>
|
200
|
+
</array>
|
201
|
+
</dict>
|
202
|
+
<dict>
|
203
|
+
<key>begin</key>
|
204
|
+
<string>\(</string>
|
205
|
+
<key>captures</key>
|
206
|
+
<dict>
|
207
|
+
<key>0</key>
|
208
|
+
<dict>
|
209
|
+
<key>name</key>
|
210
|
+
<string>punctuation.definition.group.ruby</string>
|
211
|
+
</dict>
|
212
|
+
</dict>
|
213
|
+
<key>end</key>
|
214
|
+
<string>\)</string>
|
215
|
+
<key>name</key>
|
216
|
+
<string>string.regexp.group.ruby</string>
|
217
|
+
<key>patterns</key>
|
218
|
+
<array>
|
219
|
+
<dict>
|
220
|
+
<key>include</key>
|
221
|
+
<string>#regex_sub</string>
|
222
|
+
</dict>
|
223
|
+
</array>
|
224
|
+
</dict>
|
225
|
+
<dict>
|
226
|
+
<key>captures</key>
|
227
|
+
<dict>
|
228
|
+
<key>1</key>
|
229
|
+
<dict>
|
230
|
+
<key>name</key>
|
231
|
+
<string>punctuation.definition.comment.ruby</string>
|
232
|
+
</dict>
|
233
|
+
</dict>
|
234
|
+
<key>comment</key>
|
235
|
+
<string>We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.</string>
|
236
|
+
<key>match</key>
|
237
|
+
<string>(?<=^|\s)(#)\s[[a-zA-Z0-9,. \t?!-][^\x{00}-\x{7F}]]*$</string>
|
238
|
+
<key>name</key>
|
239
|
+
<string>comment.line.number-sign.ruby</string>
|
240
|
+
</dict>
|
241
|
+
</array>
|
242
|
+
</dict>
|
243
|
+
</dict>
|
244
|
+
<key>scopeName</key>
|
245
|
+
<string>source.ruby.rspec.cucumber.steps</string>
|
246
|
+
<key>uuid</key>
|
247
|
+
<string>B269B8F3-3A6D-4169-9E70-DD89A679416A</string>
|
248
|
+
</dict>
|
249
|
+
</plist>
|