view_.showLogButton().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event)
{
FileSystemItem logFile = FileSystemItem.createFile(
targetFile_.getParentPath().completePath(
targetFile_.getStem() + ".log"));
fileTypeRegistry_.editFile(logFile);
}
});
view_.errorList().addSelectionCommitHandler(
new SelectionCommitHandler<CodeNavigationTarget>() {
@Override
public void onSelectionCommit(
SelectionCommitEvent<CodeNavigationTarget> event)
{
CodeNavigationTarget target = event.getSelectedItem();
FileSystemItem fsi = FileSystemItem.createFile(target.getFile());
fileTypeRegistry_.editFile(fsi, target.getPosition());
}
});
}