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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target Editor renders Maven target locations using Object.toString() #373

Closed
sewe opened this issue Oct 13, 2021 · 3 comments
Closed

Target Editor renders Maven target locations using Object.toString() #373

sewe opened this issue Oct 13, 2021 · 3 comments
Labels
pde-integration M2Eclipse PDE Integration

Comments

@sewe
Copy link
Contributor

sewe commented Oct 13, 2021

Noticed this with the latest snapshot (1.18.2.20211011-2139):

content-location

Apparently, the Content tab with Group By: Location uses Object.toString() to render the MavenTargetLocation node. 馃槥

@laeubi laeubi added the pde-integration M2Eclipse PDE Integration label Oct 13, 2021
@HannesWell
Copy link
Contributor

@laeubi in case you take care of this label improvement, for the Definition tab I noticed that the element for the new multi dependency target starts with the number of dependencies:

grafik

While this mimics the natural language, personally I don't find it very nice as label. The small number is a bit lost between the icon and the remaining text and it also has the effect that those multi Maven-targets are always sorted to the top.

This is just a cosmetic label and of course everybody has a different taste. Nevertheless I want to suggest some alternatives and maybe we end with a better solution :)

  • Maven Dependencies - 3
  • Maven Dependencies, count: 3
  • Maven Modules - 3
  • Maven Module Group with 3 Dependencies

@laeubi
Copy link
Member

laeubi commented Oct 13, 2021

Yeah the problem is that one can't derive a good name from the childs (I first though about something like <id of first child> and n more ...) but the ultimate solution would be to allow giving a name to a group ... I also have to check that this is not a limitation of PDE itself as you can see it only affects the Content tab and I fear that there is simply the label provider not adapting correctly.

@laeubi
Copy link
Member

laeubi commented Oct 14, 2021

This is a bug in PDE see https://bugs.eclipse.org/bugs/show_bug.cgi?id=576630

@laeubi laeubi closed this as completed Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pde-integration M2Eclipse PDE Integration
Projects
None yet
Development

No branches or pull requests

3 participants