(JavaEditor editor, PreprocessingService pps)
| 24 | |
| 25 | |
| 26 | public PDEX(JavaEditor editor, PreprocessingService pps) { |
| 27 | this.pps = pps; |
| 28 | |
| 29 | this.enabled = !editor.hasJavaTabs(); |
| 30 | |
| 31 | errorChecker = new ErrorChecker(editor, pps); |
| 32 | |
| 33 | usage = new ShowUsage(editor, pps); |
| 34 | inspect = new InspectMode(editor, pps, usage); |
| 35 | rename = new Rename(editor, pps, usage); |
| 36 | |
| 37 | if (SHOW_DEBUG_TREE) { |
| 38 | debugTree = new DebugTree(editor, pps); |
| 39 | } |
| 40 | |
| 41 | for (SketchCode code : editor.getSketch().getCode()) { |
| 42 | Document document = code.getDocument(); |
| 43 | addDocumentListener(document); |
| 44 | } |
| 45 | |
| 46 | sketchChanged(); |
| 47 | } |
| 48 | |
| 49 | |
| 50 | public void addDocumentListener(Document doc) { |
nothing calls this directly
no test coverage detected