|
17 | 17 | import org.netbeans.api.editor.EditorRegistry; |
18 | 18 | import org.netbeans.api.project.FileOwnerQuery; |
19 | 19 | import org.netbeans.api.project.Project; |
20 | | -import org.netbeans.api.settings.ConvertAsProperties; |
21 | 20 | import org.netbeans.modules.editor.NbEditorUtilities; |
22 | | -import org.openide.awt.ActionID; |
23 | | -import org.openide.awt.ActionReference; |
24 | 21 | import org.openide.filesystems.FileObject; |
25 | 22 | import org.openide.filesystems.FileUtil; |
26 | 23 | import org.openide.util.Exceptions; |
|
31 | 28 | /** |
32 | 29 | * Top component which displays something. |
33 | 30 | */ |
34 | | -@ConvertAsProperties(dtd = "-//org.netbeans.modules.python.testrunner//PythonTestResults//EN", autostore = false) |
35 | | -@TopComponent.Description(preferredID = "PythonTestResultsTopComponent", iconBase = "org/netbeans/modules/python/pytest.png", persistenceType = TopComponent.PERSISTENCE_ALWAYS) |
36 | | -@TopComponent.Registration(mode = "output", openAtStartup = false) |
37 | | -@ActionID(category = "Window", id = "org.netbeans.modules.python.testrunner.PythonTestResultsTopComponent") |
38 | | -@ActionReference(path = "Menu/Window/Tools", position = 255) |
39 | | -@TopComponent.OpenActionRegistration(displayName = "#CTL_PythonTestResultsAction", preferredID = "PythonTestResultsTopComponent") |
| 31 | +//@ConvertAsProperties(dtd = "-//org.netbeans.modules.python.testrunner//PythonTestResults//EN", autostore = false) |
| 32 | +//@TopComponent.Description(preferredID = "PythonTestResultsTopComponent", iconBase = "org/netbeans/modules/python/pytest.png", persistenceType = TopComponent.PERSISTENCE_ALWAYS) |
| 33 | +//@TopComponent.Registration(mode = "output", openAtStartup = false) |
| 34 | +//@ActionID(category = "Window", id = "org.netbeans.modules.python.testrunner.PythonTestResultsTopComponent") |
| 35 | +//@ActionReference(path = "Menu/Window/Tools", position = 255) |
| 36 | +//@TopComponent.OpenActionRegistration(displayName = "#CTL_PythonTestResultsAction", preferredID = "PythonTestResultsTopComponent") |
40 | 37 | @Messages({ |
41 | | - "CTL_PythonTestResultsAction=PyTest Results", |
42 | | - "CTL_PythonTestResultsTopComponent=PyTest Results Window", |
43 | | - "HINT_PythonTestResultsTopComponent=This is a PyTest Results window" |
| 38 | + "CTL_PythonTestResultsAction=PyTest Results", |
| 39 | + "CTL_PythonTestResultsTopComponent=PyTest Results Window", |
| 40 | + "HINT_PythonTestResultsTopComponent=This is a PyTest Results window" |
44 | 41 | }) |
45 | 42 | public final class PythonTestResultsTopComponent extends TopComponent { |
46 | 43 |
|
@@ -91,7 +88,7 @@ public void componentOpened() { |
91 | 88 | .getProjectDirectory()).toPath()) |
92 | 89 | .map(Path::toFile) |
93 | 90 | .filter(file -> file.getName() |
94 | | - .equals("report.html")) |
| 91 | + .equals("report.html")) |
95 | 92 | .collect(Collectors.toList()); |
96 | 93 | collect.sort(LastModifiedFileComparator.LASTMODIFIED_REVERSE); |
97 | 94 | if (!collect.isEmpty()) { |
|
0 commit comments