forked from amitdev/PMD-Intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show annotations in editor, and allow quick-fix to supress. Issue ami…
- Loading branch information
1 parent
f920dfd
commit 83d9448
Showing
14 changed files
with
371 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/com/intellij/plugins/bodhi/pmd/annotator/FileInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.intellij.plugins.bodhi.pmd.annotator; | ||
|
||
import com.intellij.openapi.editor.Document; | ||
import com.intellij.openapi.project.Project; | ||
import com.intellij.psi.PsiFile; | ||
|
||
import java.io.File; | ||
|
||
public class FileInfo { | ||
|
||
private final PsiFile file; | ||
private final Document document; | ||
|
||
public FileInfo(PsiFile file, Document document) { | ||
this.file = file; | ||
this.document = document; | ||
} | ||
|
||
public Project getProject() { | ||
return file.getProject(); | ||
} | ||
|
||
public File getFile() { | ||
return file.getVirtualFile().toNioPath().toFile(); | ||
} | ||
|
||
public Document getDocument() { | ||
return document; | ||
} | ||
} |
Oops, something went wrong.