-
Notifications
You must be signed in to change notification settings - Fork 121
Bndtools-to-PDE: Migrate Resolutionview to PDE #1763
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
Bndtools-to-PDE: Migrate Resolutionview to PDE #1763
Conversation
laeubi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, what currently is missing:
- License headers, these must be restored from git history of bnd
- the view must be made available in
plugin.xmlso it can actually be shown
Beside that it would be good to have one commit that contains the original files from BND (with just the header added) and one follow up that adds your changes /adjustment (e.g. package name changes, formatting, cleanup and so on), so it is easier to create a CQ for this.
ui/org.eclipse.pde.bnd.ui/src/org/eclipse/pde/bnd/ui/internal/SelectionUtils.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.bnd.ui/src/org/eclipse/pde/bnd/ui/internal/SelectionUtils.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.bnd.ui/src/org/eclipse/pde/bnd/ui/tasks/AnalyseBundleResolutionJob.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.bnd.ui/src/org/eclipse/pde/bnd/ui/tasks/AnalyseBundleResolutionJob.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.bnd.ui/src/org/eclipse/pde/bnd/ui/tasks/AnalyseBundleResolutionJob.java
Show resolved
Hide resolved
4a169df to
1420d6e
Compare
- required for PR eclipse-pde/eclipse.pde#1763
|
Waiting for eclipse-platform/eclipse.platform.releng.aggregator#3030 for required util library- Until this is available build will fail. |
Done in 1st commit f40532e
Already the case. |
- required for PR eclipse-pde/eclipse.pde#1763
4096368 to
f5d3388
Compare
f5d3388 to
e4b3ab7
Compare
|
@chrisrueger I created https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/21016 now to import the content from bndtools repo into PDE. |
e4b3ab7 to
b277fab
Compare
|
Fixed the ClassCastException in b277fab When I click on the repo "PDE Target Platform State" I get this: It does not happen when I click on single entries. |
|
Now a new exception when I click on the "PDE Target Platform State" and have the Resolution View open: |
b277fab to
7f5b317
Compare
|
@laeubi I think this is in an OK state for the first version. Regarding the last exception ( I don't know what I can do here. Maybe it is just my setup. You remember my Eclipse SDK has still some read problems but I can launch the Runtime Workspace, but there are some errors still. If you think this is ok too, then I do a final squash of commits. |
Yes but please keep the first one intact where you imported the files from bnd tools! |
|
While we are waiting for CQ approval, you probably want to prepare a N&N entry here: https://github.com/eclipse-platform/www.eclipse.org-eclipse/blob/master/news/4.36/pde.md after this is merged we can find it here: https://eclipse.dev/eclipse/markdown/?f=news/4.36/pde.md And should add a note here: https://github.com/eclipse-pde/eclipse.pde/blob/master/ui/org.eclipse.pde.bnd.ui/README.MD#available-components |
3aff451 to
7ed950b
Compare
- This commit does not compile - it only serves the purpose of having all migrated files in one place + the license headers - later commits will put those files in different folders, do cleanup etc.
HannesWell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @chrisrueger
thanks for this contribution. This looks promising and at the moment PDE indeed lacks the capability to analyze resolution problems easily. I hope this can close this gap.
I didn't had the time yet to look into the details, but just from looking over this briefly, I was wondering if the icons are also available as SVG images?
We have recently added SVG support in SWT and a lot of icons where migrated to use their SVG version.
It would be great if new icons are added as SVG directly.
I just copied them over from bndtools as they were there for decades :)
I will try if I can do that somehow. |
That's not a surprise. :D
That would be great, thanks. On the other hand, it's not a blocker if that's too much work. Just one day they should be SVGs and ideally from day one. |
|
@HeikoKlare can you advice regarding the active/inactive ones? |
Might be that you are referring to this recent news: https://eclipse.dev/eclipse/markdown/?f=news/4.36/platform.md#improved-disabled-icons-generation-
I would not provide pre-generated disabled/inactive icons anymore. The algorithm for calculating them out of the original icon has been improved (see the news above) such that results are (almost) equal to how the pre-generated disabled icons in Eclipse looked before. For the disabled icon of A further benefit of using the automatic algorithm in SWT is that you can exchange the used algorithm (also see the news above), so that a different look will consistently be applied to also your disabled/inactive images if (and only if) they are generated with that algorithm. |
|
Question regarding the icons: Bndtools has used some icons from https://icons8.com/license The icons are free if there is a link to icons8. How do we do this now in Eclipse? If there is a way, I would also check for SVG replacements for the current icons. Or where do you guys get icons from? |
|
@chrisrueger we have https://github.com/eclipse-platform/eclipse.platform.images/ for Eclipse images, if you can use or derive icons from there it would be the best. |
7ed950b to
7e91689
Compare
|
@HannesWell @laeubi @HeikoKlare I replaced as many icons with svgs as I could from https://github.com/eclipse-platform/eclipse.platform.images/ 7e91689 For some I did not find good replacements and left them .png. I suggest I adress the rest in another PR. |
- 1st draft of Bndtools Resolution view, which shows Requirements and Capabilities of selected resources (.jar files, .bnd files, RepositoryView entries) add some missing icons fix more icons Add license headers to migrated files Replace SelectionUtils with Adapters.adapt() cleanup, add suggestions from PR fix icon fix compile warnings fix ClassCastException in CapReqComparator - reason was that the namespace 'osgi.ee' can contain List<Version> - so we now handle cases of single Version vs. List<Version> - for lists we take the highest version for comparison remove temp. migration package svg images - update as many images to svg (taken from https://github.com/eclipse-platform/eclipse.platform.images/tree/master/org.eclipse.images/eclipse-svg) - for some I coudn't find replacements yet. Will do them in another PR
7e91689 to
f166aaa
Compare
laeubi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CQ is approved now. When build succeeds I'll merge this any improvement can then be made with follow up PRs.
|
@chrisrueger thanks for this useful addition, please add a note for this new feature here: https://github.com/eclipse-platform/www.eclipse.org-eclipse/blob/master/news/4.36/pde.md |
|
@laeubi first draft of New and Noteworthy eclipse-platform/www.eclipse.org-eclipse#342 |
Thank you for the updates. Subsequent enhancements are always possible. :) |


This migrates the bndtools Resolution View (https://bndtools.org/manual/resolution-view.html) to PDE.
Still work in progress. Just created the Draft PR for discussion of first results.
This is the first screenshot of the Resolution view.
You can click on on any
Open issues