List of usage examples for com.intellij.openapi.diff FileContent FileContent
public FileContent(Project project, @NotNull VirtualFile file)
From source file:org.jetbrains.idea.svn.diff.FileWithBranchComparer.java
License:Apache License
@Override protected void showResult() { if (!success.isNull()) { SimpleDiffRequest req = new SimpleDiffRequest(myProject, SvnBundle.message("compare.with.branch.diff.title")); req.setContents(/* w ww . j a v a 2 s .co m*/ new SimpleContent(CharsetToolkit.bytesToString(content.get(), myVirtualFile.getCharset())), new FileContent(myProject, myVirtualFile)); req.setContentTitles(remoteTitleBuilder.toString(), myVirtualFile.getPresentableUrl()); DiffManager.getInstance().getDiffTool().show(req); } }
From source file:org.sonar.ide.idea.actions.OpenDiffToolAction.java
License:Open Source License
private DiffContent createDiffContent(final Project project, final VirtualFile virtualFile) { return new FileContent(project, virtualFile); }