<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>plugins/application/features/step_definitions/diaog_steps.rb</filename>
    </added>
    <added>
      <filename>plugins/edit_view/features/fixtures/winter.txt</filename>
    </added>
    <added>
      <filename>plugins/edit_view/features/open_and_save_files.feature</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -22,6 +22,8 @@ plugins/application_swt/vendor/swt/osx/swt.jar
 plugins/application_swt/vendor/swt/linux/swt.jar
 plugins/application_swt/vendor/jface/
 plugins/application_swt/vendor/swtbot/
+plugins/edit_view_swt/vendor/org*
 plugins/edit_view_swt/vendor/j*
+plugins/edit_view_swt/vendor/swt*
 
 plugins/dans</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,7 @@ module Redcar
       @gui.register_event_loop(EventLoop.new)
       @gui.register_features_runner(CucumberRunner.new)
       @gui.register_controllers(Redcar::Tab =&gt; ApplicationSWT::Tab)
-      @gui.register_dialog_adapter(ApplicationSWT::DialogAdapter)
+      @gui.register_dialog_adapter(ApplicationSWT::DialogAdapter.new)
     end
     
     def self.start</diff>
      <filename>plugins/application_swt/lib/application_swt.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module Redcar
   class ApplicationSWT
-    module DialogAdapter
-      def self.open_file(window, options)
+    class DialogAdapter
+      def open_file(window, options)
         dialog = Swt::Widgets::FileDialog.new(window.controller.shell, Swt::SWT::OPEN)
         if options[:filter_path]
           dialog.set_filter_path(options[:filter_path])
@@ -9,5 +9,19 @@ module Redcar
         dialog.open
       end
     end
+    
+    class FakeDialogAdapter
+      def initialize
+        @responses = {}
+      end
+      
+      def set(method, value)
+        @responses[method] = value
+      end
+      
+      def open_file(*args)
+        @responses[:open_file]
+      end
+    end
   end
 end
\ No newline at end of file</diff>
      <filename>plugins/application_swt/lib/application_swt/dialog_adapter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,8 @@
 module SwtKeyHelper
   def keypress(key)
     post(Swt::SWT::KeyDown, 0, 4194304)
-    post(Swt::SWT::KeyDown, 110, 110)
-    post(Swt::SWT::KeyUp, 110, 110)
+    post(Swt::SWT::KeyDown, key.downcase[-1], key.downcase[-1])
+    post(Swt::SWT::KeyUp, key.downcase[-1], key.downcase[-1])
     post(Swt::SWT::KeyUp, 0, 4194304)
   end
   </diff>
      <filename>plugins/edit_view/features/step_definitions/key_steps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -32,3 +32,9 @@ Then /^the tab should have the keyboard focus$/ do
   tab = get_tab(tab_folder)
   tab.controller.edit_view.has_focus?.should be_true
 end
+
+Then /^I should see &quot;(.*)&quot; in the edit tab$/ do |content|
+  tab_folder = get_tab_folder
+  tab = get_tab(tab_folder)
+  tab.edit_view.document.to_s.include?(content).should be_true
+end</diff>
      <filename>plugins/edit_view/features/step_definitions/tab_steps.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>52a03688860c004f9e28a6f4975c5cbaa3dff935</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </author>
  <url>http://github.com/danlucraft/redcar/commit/c5ca8ca0be84d50bc4259b35763302e185936067</url>
  <id>c5ca8ca0be84d50bc4259b35763302e185936067</id>
  <committed-date>2009-10-24T11:35:28-07:00</committed-date>
  <authored-date>2009-10-24T11:35:28-07:00</authored-date>
  <message>Added a feature testing open file, but still needs an After feature block that cleans up</message>
  <tree>680617b4849b2e7eb5dd36842a0fc4e73d1eeb94</tree>
  <committer>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </committer>
</commit>
