| Summary: | Provide an "Open With" action in the popup menu of file system nodes of Target Explorer. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] TCF | Reporter: | William Chen <william.chen> | ||||||
| Component: | Target | Assignee: | Project Inbox <tcf.tm-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Uwe Stieber <uwe.st> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cdtdoug, mober.at+eclipse, uwe.st, william.chen | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 0.6.0 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
William Chen
Hi Uwe, I submitted a bug to add an "Open With" so that it can resolve the issue you reported. -William When you say "Target Explorer" I suppose you want the bug to go into TCF / Target Explorer and not into the RSE bucket. Correct? Yes, yes. Sorry I didn't notice that I had chosen a wrong product and component. Thanks. Created attachment 205010 [details]
The patch to fix this bug.
Hi Uwe,
I created a patch to fix this bug. Please have a review.
Note that in this fix, I also fixed the openChannel problems and made some refactoring.
BTW, there's no binary file added in this patch.
Thanks.
-William
I, William Chen, declare that I developed the attached code from scratch, without referencing any 3rd party materials except materials licensed under the EPL. I am authorized by my employer to make this contribution under the EPL. -William Chen William, I don't see the "Open With" menu after applying the patch. Under which circumstances is it expected to be shown? OK. Found it. The "Open With" menu is missing within the target explorer tree if the "Target File System (TCF)" content is enabled (Target Explorer View menu > Customize View... > Content"). Please fix this and submit an updated patch version. Furthermore, the "open"/double click action does not take the last "open with" selection into account. Check within the package explorer. If switching the editor using "open with", the change is persistent and subsequent double clicking the file opens the editor last set by "open with". Created attachment 205291 [details]
Updated patch for the previous fix.
Yeah, you are right. I forgot to add the menu in the target explorer view.
And in the handler of "Open", which is invoked when double-clicked, did not consider using the persisted default "editor ID". I have fixed both of them in this updated patch. Please apply this patch.
Thank you very much!
Committed. |