Added a button to show launch bundles#1922
Conversation
|
@laeubi kindly review this PR |
| PluginsTabToolBar_validate=&Validate {0} | ||
| PluginsTabToolBar_validate_plugins=&Validate Plug-ins | ||
| PluginsTabToolBar_validate_bundles=&Validate Bundles | ||
| PluginsTabToolBar_show_launch_bundles=&Show launch bundles |
There was a problem hiding this comment.
your screen shot is however showing "Show plug-ins", how is that possible? was this modified later?
There was a problem hiding this comment.
ohh yes I renamed it later. Thanks for pointing that out
I will update the screenshot now
HannesWell
left a comment
There was a problem hiding this comment.
Thanks for this proposal.
I have a few remarks below, but there are two more points:
- The button should also be available for Eclipse-apps based on features (at least personally I'm hardly using bundle-based apps). This can be done easily by repeating the same code of the
AbstractPluginBlockin theFeatureBlock, around here:
Ideally features would then also be listed (in addition to bundles), but I assume the currently used dialog is not capable of that. - While using the
PluginSelectionDialogis certainly a quick solution, I'm not sure if it's really suitable. At least the title of the dialog should be changed to something more meaningful in this use-case.
What I'm currently missing is the ability to copy the list of plugins (ideally just the selected sub-set) and being able to past it e.g. into a text- or diff-editor. This way I often try to figure what has changed in the full application. But that's not working at the moment.
For #1850 I initially thought about a separate tab or something like that.
Maybe we could instead also re-use the selection tree in the center and just have a check-box on the right to list all included (features and) bundles. Of course selecting them should then not be possible.
But yes that would probably be more work and I'm not sure if that's overall much better in the end. It's currently just an idea.
| private Label fCounter; | ||
|
|
||
| private Button fValidateButton; | ||
| private Button fShowPlugin; |
There was a problem hiding this comment.
As the button is used in only one method, this field is not necessary and the button can just be a local variable.
| private Button fShowPlugin; |
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/AbstractPluginBlock.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/AbstractPluginBlock.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/AbstractPluginBlock.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/AbstractPluginBlock.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/AbstractPluginBlock.java
Outdated
Show resolved
Hide resolved
thanks @HannesWell . I have these questions:
In case we add a new separate tab:
|
4897456 to
ad6c8db
Compare
I added the same for Eclipse-apps based on features. Also, with current changes, if we select one/more features and click on 'show launch bundles', it is showing the list of plug-ins(direct and transitive dependent plug-ins both) respective to the features selected.
Yeah I missed that. I have changed the title to 'Launch Plug-ins list'
Yeah I have that in my mind(based on our conversation in #1850 (comment)). I will be taking the copy/paste option in another PR. |
ad6c8db to
cc39b5b
Compare
Features are exploded and do not remain in the final runtime, so I would say this is not really useful here. One might want to show what a feature pulls in but then we need a tree to represent the data and it would possibly complicate things a lot. So I would vote for starting simple and improve on that iteratively. |
With my changes, we will still be able to see what a feature pulls in(the direct and indirect dependent plug-in).
|
|
While this can be interesting I don't think the selection should matter and would expect to always see the final result of what will happen when I click |
|
Hi @HannesWell |
|
Hi @HannesWell |
cc39b5b to
0f5e757
Compare
|
@HannesWell - do you still have outstanding suggestions on this? |
Sorry for the delay. I'll look into the new state tomorrow. |
Good question. I cannot answer this clearly, but I would say that it would allow to support more scenarios or 'tools' (later). But to come back to the current proposal and as my counter-suggestion from #1922 (review), is indeed much more complex, what about re-using the approach used for the If we use that to show the list of resolved bundles in CSV style (if we want to have more then the name) and also add a search field to for the text, then we would have, what would be provided with your proposal plus the ability to copy (parts) of the list. To feed the content of that text field you could actually use what's generated into the Overall I think it should still be not too complicated to achieve and should provide more information than today. What do you think? |
Sure Hannes, that sounds better given that we will have selected text block/field. I will check this. |
@HannesWell I am re-using the approach used for the |
If you can make it fully copy-able where one gets the bundle-symbolic name and the version (and maybe even the file-system path) speparated by space or semicolon or similar copied into the clipboard on copy, a table like UI would definitively be nicer. |
@HannesWell Earlier you had mentioned this to fetch all the details which gives the list of selected plug-ins. |
70a141e to
e07941f
Compare
|
@HannesWell |
e07941f to
ea1b843
Compare
|
Hi @HannesWell |
ea1b843 to
b4d8861
Compare
b4d8861 to
967ddb3
Compare
967ddb3 to
2c09645
Compare
2c09645 to
ac3ba7f
Compare
|
Hi @HannesWell |
|
this is ready to land, but would benefit from a final review by @HannesWell . @HannesWell - pls have a look? |
Very sorry for the delay! I'll try to have a look tomorrow. |
|
I just looked into this and in general it looks good. Thanks for your work on this. But I have multiple minor points that should be addressed.
I'll provide more details later today as I have to leave now. |
ac3ba7f to
2fcdeee
Compare
HannesWell
left a comment
There was a problem hiding this comment.
Please see the details comments below.
In general please always format new code and add copy-right headers to new files and don't format code that hasn't been touched.
Besides the points mentioned below, it would be good to have an explanation about the displayed values respectively their structure at the top of the dialog.
List of all bundles contained in this launch:
<Symbolic Name>, <Version>, <Start level>, <File Path>
The text is just a first attempt and probably should be improved.
Do you have suggestions for that?
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/FeatureBlock.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/ShowBundlesDialog.java
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/ShowBundlesDialog.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/ShowBundlesDialog.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/ShowBundlesDialog.java
Outdated
Show resolved
Hide resolved
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/ShowBundlesDialog.java
Outdated
Show resolved
Hide resolved
2fcdeee to
02caa9b
Compare
|
@HannesWell |
3e52dcd to
ff03ddf
Compare
ff03ddf to
e2b5cdd
Compare
There was a problem hiding this comment.
Thank you @nburnwal09 for the update.
I made a few more adjustments, mostly minor and the most relevant one was to move the explanation for the new dialog into a separate label above the list of bundles.
With that this is ready for submission from my side, too.




Added a button to show launch bundles: #1850
It has filter option and shows number of bundles selected(attached screenshot)