Community
Participate
Working Groups
This is a handy feature in Eclipse. As you switch editors, it highlights the corresponding resource in the explorer. We should probably do something like this ourselves. I can see a case where the user has made several different classes named "MyClass" in different projects; it'd be impossible to know which one is represented by the current editor. I'm inclined to think of this as an "always on" feature and not include an icon in the view's tool bar (i.e. the left-right arrow icon).
Created attachment 163689 [details] Patch to link editor and package explorer Attaching a patch that enables package explorer <-> editor linking. It may seem like a large chunk of code, but I pretty much copy / pasted existing functionality from org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart. I brought down all the relevant code into our LitePackageExplorer. When we go to create the view part, I automatically enable the linking. The code however, still allows for toggling on/off as its a direct copy from PackageExplorerPart. Some of the functions add some more internal calls.. Maybe you can see some areas for improving the code? Either way, this is a good baseline I think.