if (docDisplay_.getSelectionValue().length() > 0)
{
int start = docDisplay_.getSelectionStart().getRow() + 1;
int end = docDisplay_.getSelectionEnd().getRow() + 1;
events_.fireEvent(new VcsViewOnGitHubEvent(
new GitHubViewRequest(file, type, start, end)));
}
else
{
events_.fireEvent(new VcsViewOnGitHubEvent(
new GitHubViewRequest(file, type)));
}
}