| Summary: | ClassCastException when opening PHP file from within the code | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Jacek Jaroczynski <jacek.jaroczynski> |
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | silviya, zhaozhongwei |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Jacek Jaroczynski
Hi
I think you develop plugin based on pdt,I have added a judgement:
if (!(ctx.getDocument() instanceof IStructuredDocument)) {
return null;
}
so,if I am right,can you check out the latest code from cvs head to verify this bug,because our QA and I could not verify this bug fixed or not,thanks!
Now I marked as fixed,please feel free to reopen it if this bug could still be reproduced.
I checked the head from CVS and it works without CCE now. Thank you!!! However the editor is open without PHP highlighting. It says that content type is not set while it is (no stacktrace unfortunately). I will check that and perhaps open next ticket. OK,thanks,but php highlighting is based on wtp sse,so I am not sure if it could work for your plugin:) Hmm. It works for PHP files opened from ProjectExplorer so why it could not work when open from within the code? Moreover it works fine in both cases (code and explorer) for Java files. (In reply to comment #4) > Hmm. It works for PHP files opened from ProjectExplorer so why it could not > work when open from within the code? > Moreover it works fine in both cases (code and explorer) for Java files. if it works when open from ProjectExplorer ,it should work when open from within the code:) Nevertheless it does not work for files from outside the workspace. It looks like it is a deeper problem. I need to debug it more. Thank you once again for quick fix. Hi Can we close this issue if the original problem is fixed? Thanks Hi Silviya You can close it now:) Thanks. Closing |