Community
Participate
Working Groups
Build Identifier: Closing the Eclipse editor and double clicking the same file a second time opened the file in the external editor. I didn't found a way to force it back into the Eclipse editor. Please check the behaviour of "Open" and "Open with >" in the context menu of the Package Explorer in example. Basically the same functionality and semantic is expected for the "open/edit remote files" feature. Reproducible: Always Steps to Reproduce: 1.Open the file system from Target Explorer view. 2.Right click a file node to show a popup menu. 3.No "Open With" menu is found to select alternative editors.
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.
https://git.eclipse.org/c/tcf/org.eclipse.tcf.git/commit/?h=0.6.0&id=6b3b514c5e76e31c28774e7b88420eef7bccc280