[SVN] Revision 1137
Chris Thomas
chris at cjack.com
Thu Jun 2 07:23:33 UTC 2005
Ruby interface to the CocoaDialog progress dialog. Advantages:
• much more readable than the equivalent shell script
• no exposed implementation details -- insulates callers from CocoaDialog
Usage:
$LOAD_PATH << ENV['TM_SUPPORT_PATH'] + "/lib"
require 'progress'
target_path = ENV['TM_FILEPATH']
output_path = File.basename(target_path) + ".diff"
TextMate::call_with_progress(:title => "Subversion diff", :message => "contacting Subversion mothership", :output_filepath => output_path) do
# ...your commands here...
end
Changed:
A trunk/Support/lib/progress.rb
More information about the textmate-dev
mailing list