Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
rhbz804871 - rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Aug 10, 2012
1 parent 09735c3 commit 7578e13
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -740,7 +740,7 @@ public void onInsertString(final InsertStringInEditorEvent event)
}

@Override
public void onTransMemoryCopy(final CopyDataToEditorEvent event)
public void onDataCopy(final CopyDataToEditorEvent event)
{
copyTextWhenIsEditing(event.getTargetResult(), false);
}
Expand Down
Expand Up @@ -35,7 +35,7 @@ public CopyDataToEditorEvent(List<String> targetResult)
@Override
protected void dispatch(CopyDataToEditorHandler handler)
{
handler.onTransMemoryCopy(this);
handler.onDataCopy(this);
}

@Override
Expand Down
Expand Up @@ -4,5 +4,5 @@

public interface CopyDataToEditorHandler extends EventHandler
{
void onTransMemoryCopy(CopyDataToEditorEvent event);
void onDataCopy(CopyDataToEditorEvent event);
}
Expand Up @@ -400,7 +400,7 @@ public void testOnTransMemoryCopy()
givenCurrentEditorsAs(editor);

// TODO update for plurals
presenter.onTransMemoryCopy(new CopyDataToEditorEvent(Arrays.asList("target")));
presenter.onDataCopy(new CopyDataToEditorEvent(Arrays.asList("target")));

verify(editor).setTextAndValidate("target");
verify(eventBus, atLeastOnce()).fireEvent(notificationEventCaptor.capture());
Expand Down

0 comments on commit 7578e13

Please sign in to comment.