| Summary: | CCE in XMLEditorTester.test | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Johannes Rieken <johannes_rieken> |
| Component: | wst.xml | Assignee: | wst.xml <wst.xml-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | critical | ||
| Priority: | P3 | CC: | ccc, nsand.dev, remy.suen |
| Version: | 3.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Johannes Rieken
Hi Johannes, It looks like your implementation of IEditorPart has broken the API contract for IAdaptable#getAdapter(). In particular, it must return an object which is an instance of the class provided as a parameter. Since we are passing ITextEditor.class, we are guaranteed to have an object returned that is castable to ITextEditor or null. Still, I have the feeling it's a bit weird to have a workbench listener that pokes into other editors to figure out if it's a xml editor. This knowledge should come from somewhere else |