Created
October 25, 2010 02:21
-
-
Save jeremyd/644288 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$activity.start_ruboto_activity("$source_picker") do | |
setup_content do | |
x = self.load_deployments | |
@list_view = list_view(:id => 55555, :list => x) | |
#registerForContextMenu(@list_view) | |
@list_view | |
end | |
def self.reload_deploys(parent_context) | |
x = get_deployments | |
@list_view.reload_list(x) | |
parent_context.finish | |
end | |
handle_create_options_menu do |menu| | |
add_menu("Refresh") do | |
parent_context = self | |
self.start_ruboto_dialog("$refresh") do | |
handle_start do | |
Log.v "YODOG>", "we got here, to after finish" | |
parent_context.reload_deploys(self) | |
end | |
end | |
end | |
add_menu("Preferences") do | |
edit_preferences(self) | |
end | |
add_menu("Exit") do | |
finish | |
end | |
true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment