Community
Participate
Working Groups
Items (classes, methods) are not visible in package explorer in "focused" mode unless packages they are in are also in the context. This is inconvenient and confusing (IMO)
The parents, i.e. class and packages, of interesting elements should be automatically added to the context. Does that not work for you? Can you provide steps to reproduce?
Well, a note: projects I am working with are Maven projects. I just checked with plain java (well, web app) project and there it seems to work fine. I am using 0.9.7 Sonatype Maven plug-in (if this helps) Following are steps to reproduce: Odd... I am not doing anything special. Create task Activate it Uncheck "focus on active task" Find class you want to work with (do *not* double-click on packages, click on triangles to the left to expand the tree) open a java file- it gets added to the context Click "focus on active task" --> at this point I see only source directory for the file (as in build path directory, root from which packages start) but not package uncheck "focus" find same file but now double-clicking on packages-> notice them added to the context Focus again, notice that you see files
Does that happen for all your Maven projects? Do you have a Maven integration for Eclipse installed and which one?
As I mentioned, Sonatype (m2), version 0.9.7 Project URL: http://m2eclipse.codehaus.org/ Update URL: http://m2eclipse.sonatype.org/update/ I did try with a few projects, all seem to behave same way. Then again, all my Maven projects are set up similarly. Is there anything I can do to help you debug this?
Created attachment 125684 [details] Screen shot of parent package excluded
An update: on top of described behavior, same "parent" elements sometimes drop from the context *after* being added. Specifically, "parent of the parent" is being dropped See attached screenshot (sorry for airbrushing parts, I'm paranoid)- all files disappeared from Explorer while I was editing WedgeManager (after I specifically added parent packages) I will post bug report in M2 issue tracker too, maybe they have some thoughts.
Created attachment 125688 [details] Bigger screen shot with packages excluded, showing package explorer
Maven plugin report created; http://jira.codehaus.org/browse/MNGECLIPSE-1195 (sorry for the number of updates)
Michael, the way parent elements are handled has changed in Mylyn 3.2.2 and later. Please retry the latest release of Mylyn and reopen if you are still experiencing the described problem. *** This bug has been marked as a duplicate of bug 168475 ***