IWorkbench workbench = ReviewPlugin.getInstance().getWorkbench();
IWorkbenchWindow activeWindow = workbench.getWorkbenchWindows()[0];
final InputStream contents = listener.getContents();
final ICVSRemoteFile file = (ICVSRemoteFile) CVSWorkspaceRoot.getRemoteResourceFor(cvsResource);
IEditorRegistry registry = CVSUIPlugin.getPlugin().getWorkbench().getEditorRegistry();
log.debug("file name: " + file.getName());
IEditorDescriptor descriptor = registry.getDefaultEditor(file.getName());
final String id;
if (descriptor != null) {
log.debug("descriptor is not null");
id = descriptor.getId();
}