Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate elements shown in context preview page when duplicates exist in the model #247

Open
gnl42 opened this issue Jul 15, 2023 · 3 comments

Comments

@gnl42
Copy link
Contributor

gnl42 commented Jul 15, 2023

This issue was created in gitlab.eclipse.org by Eugene Kuleshov
(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=256887.
Also referenced:

`I am working with projects organized hierarchically on disk. For example:

foo-parent
foo-module1
src
resources
foo-module2
src
resources

This structure give 3 projects in Eclipse:

foo-parent
foo-module1
foo-module2

Note that such project layout is quite popular in Maven community.

Now, when resource in foo-module1/src/resources is changed, e.g. using one of Eclipse editors, this same resource is forcefully shown in the package explorer two times, first in foo-module1/src/resources and second in foo-parent/foo-module1/src/resources

This clutters package explorer view and also forcing user to deal with this clutter, basically distracting him form the main task.`

@BeckerFrank
Copy link
Contributor

In your case, you will also get each search result twice.

In such a case, I always filter out the foo-module* projects from the foo-parent project. Did you try this?

@merks
Copy link
Contributor

merks commented Jul 18, 2023

@gnl42

Lots of people don't know about filters. You can do that via the properties of a project:

image

Here I have two nested projects but I don't want to show them twice, so in the parent project, I filter out the children of the nested projects so that I still see the placeholder folder, but not the "duplicate" contents. Here's a filter expression which uses regular expressions:

maven-osgi/org.eclipse.orbit.maven.generator/.*|maven-bnd/org.eclipse.orbit.maven.bnd.generator/.*

@gnl42
Copy link
Contributor Author

gnl42 commented Jul 18, 2023

Thanks. I'll have to try it out.

Could something like that be incorporated into focused mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants