| Summary: | [editor] IProblemRequestor does not get installed on JS file working copy when new JS File wizard is used | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Ian Tewksbury <itewksbu> | ||||||
| Component: | General | Assignee: | Ian Tewksbury <itewksbu> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cmjaun | ||||||
| Version: | 3.2.2 | Flags: | thatnitind:
review+
|
||||||
| Target Milestone: | 3.2.3 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 326605 | ||||||||
| Attachments: |
|
||||||||
|
Description
Ian Tewksbury
Created attachment 179033 [details]
Fix Patch
This patch is a candidate solution to the problem. All it does is update CompilationUnit#becomeWorkingCopy so that if JavaModelManager.PerWorkingCopyInfo already exists it updates perWorkingCopyInfo.problemRequestor with the given problemReqestor.
I say candidate solution because I am not sure the legitimacy of this approach. It does fix the issue and it does pass all existing JUnits, but it still seems a bit wonky to me. Any other suggestions would be welcome.
FYI: the code that adds the correct requester was added back in Bug 311990 Any reason we don't just either have the wizard discard its working copy? What would this patch do if a problem requestor was already in place? (In reply to comment #3) > Any reason we don't just either have the wizard discard its working copy? I like the sound of that idea, how does one do that? > What would this patch do if a problem requestor was already in place? hence my not loving this patch, it would just wipe it out. Created attachment 179110 [details] Fix Patch - Update 1 (In reply to comment #3) > Any reason we don't just either have the wizard discard its working copy? That worked great. And I like it much better then my original patch. Here is an updated patch that discards the working copy after adding the file comment. Patch checked into 3.2.3 and HEAD. |