Skip to content

Commit

Permalink
Fixed Paste into Speedbar not updating the TextItem's value
Browse files Browse the repository at this point in the history
  • Loading branch information
danlucraft committed Feb 21, 2010
1 parent a58249d commit 37d614c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/application_swt/lib/application_swt/speedbar.rb
Expand Up @@ -99,9 +99,9 @@ def create_item_widgets
gridData.grabExcessHorizontalSpace = true
gridData.horizontalAlignment = Swt::Layout::GridData::FILL
mate_text.getControl.set_layout_data(gridData)
mate_text.getControl.add_modify_listener do
edit_view.document.add_listener(:changed) do
ignore(item.name) do
item.value = mate_text.getControl.get_text
item.value = edit_view.document.to_s
if item.listener
begin
@model.instance_exec(item.value, &item.listener)
Expand Down

0 comments on commit 37d614c

Please sign in to comment.