Skip to content

[#1417] Plug-in editor: Runtime tab should show selected package#1418

Open
ruspl-afed wants to merge 1 commit intoeclipse-pde:masterfrom
ruspl-afed:1417
Open

[#1417] Plug-in editor: Runtime tab should show selected package#1418
ruspl-afed wants to merge 1 commit intoeclipse-pde:masterfrom
ruspl-afed:1417

Conversation

@ruspl-afed
Copy link
Copy Markdown
Contributor

@ruspl-afed ruspl-afed commented Sep 26, 2024

The simplest solution would be to use the section description

image

Fixes #1417

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 26, 2024

Test Results

   765 files  ±0     765 suites  ±0   54m 3s ⏱️ - 3m 33s
 3 611 tests ±0   3 556 ✅  - 1   54 💤 ±0  1 ❌ +1 
10 834 runs  ±0  10 670 ✅  - 1  163 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 23ec76f. ± Comparison against base commit 512b94b.

♻️ This comment has been updated with latest results.

@HannesWell
Copy link
Copy Markdown
Member

@ruspl-afed for the build-failure see #1419.

@ruspl-afed
Copy link
Copy Markdown
Contributor Author

Thanks @HannesWell ! After rebasing, everything turns green.
I'm going to merge it if there's no objection.

Copy link
Copy Markdown
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @HannesWell ! After rebasing, everything turns green.

Better thank @akurtakov for his work on resolving this. :)

About this change: Can't one see the packages from the selection in the list?

grafik

On the other hand one can start scrolling and lose it, so it can be helpful to name the selected package(s) explicitly.

But I think we should keep (and fix) the introducing sentence and just append the actually selected packages. But when we are on this it should be adjusted depending on if one or multiple packages are selected:
Either The selected package is <selected-package> or The selected packages are: <selected-package-list>.
Or to read it more like a sentence with the following radio choice:

The package <selected-package> is: or The packages <selected-package-list> are:

@ruspl-afed
Copy link
Copy Markdown
Contributor Author

On the other hand one can start scrolling and lose it

Yes, this is exactly the case, see #1417

Either The selected package is or The selected packages are: .

I tried this approach in the very beginning and found that we have very limited horizontal space and it is better to avoid all the words except package name itself. And also, section doesn't support \n in description, so I cannot enumerate packages in the readable form of the vertical list

Please advice how to proceed better.

@laeubi
Copy link
Copy Markdown
Contributor

laeubi commented Sep 30, 2024

It took me some time to figure whats changed, as I would have expected the information of selected packages (if we want to duplicate that information) would be shown somewhere at the section list on the left.

Beside that I'm not sure if it is a good think, just in your example select all packages and it will become very crowded... I also wonder what is the underlying use case to select some packages and then scroll them out of view to afterwards show them on a different place.

In any case I would probably for artificially use-case more go like this:

  1. If there is only one package selected, show a text like The package <package> is (to further read the check boxes "public API" or "provisional API")
  2. If there are more than one, show a text like The packages are (to further read the check boxes "public API" or "provisional API") where packages is a link that shows a tooltip text with all selected packages, clicking on the link can bring up a dialog with a checkbox list where I can view and probably change the selection.

@ruspl-afed
Copy link
Copy Markdown
Contributor Author

Thank you for your comment @laeubi , it turns me back to the question how I came to this artificial use case.
Here is the scenario:

  1. There is a bundle with many packages. Well not so many, but more than 10 is enough for my setup.
  2. Another package added to the bundle, with a name that puts it to the end of the list.
  3. Then one decides to export this new package and opens the MANIFEST.MF editor on Runtime tab
  4. With "Add..." button the "new" package is added and selected, but the list is not scrolled to make it visible (may be this is the real issue!)

@HannesWell
Copy link
Copy Markdown
Member

Thanks Christoph for your suggestion. I wanted to suggest basically the same but got distracted and forgot to answer. Sorry for that.

2. If there are _more than one_, show a text like `The packages are` (to further read the check boxes "public API" or "provisional API") where `packages` is a link that shows a tooltip text with all selected packages, clicking on the link can bring up a dialog with a checkbox list where I can view and probably change the selection.

I fully support suggestion 1, but in suggestion two, opening a dialog that changes the selection is too much. I would simply stick with an (enhanced) simple label in case multiple packages are selected: The selected packages are.
Tbh. before this issue I wasn't really aware that one can even select multiple packages so I think this is a special case. And for a single package the situation would still be improved.

@ruspl-afed ruspl-afed force-pushed the 1417 branch 2 times, most recently from c441268 to 050b5af Compare November 7, 2024 07:34
@ruspl-afed
Copy link
Copy Markdown
Contributor Author

Is that what you meant? @HannesWell @laeubi

Single selection:
image

Multiple selection:
image

@laeubi
Copy link
Copy Markdown
Contributor

laeubi commented Nov 7, 2024

@ruspl-afed single selection looks fine for me, multi selection should be something like "the selected packages are" where you probabbly set a tooltip text to show the actual list because otherwise if you select say 10 or more package I fear it would somehow explode the available space.

@laeubi
Copy link
Copy Markdown
Contributor

laeubi commented Jul 26, 2025

@ruspl-afed do you plan to continue with that?

@ruspl-afed
Copy link
Copy Markdown
Contributor Author

@ruspl-afed do you plan to continue with that?

Generally yes, but I need to restore context

…ackage

The simplest solution would be to use the section description
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

Successfully merging this pull request may close these issues.

Plug-in editor: Runtime tab should show information about selected package

3 participants