Bug 441684 - Plug-in launch buttons should already stay active even if a filter is set
Summary: Plug-in launch buttons should already stay active even if a filter is set
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: 4.11 M1   Edit
Assignee: Julian Honnen CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted, usability
: 220668 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-13 09:08 EDT by Lars Vogel CLA
Modified: 2019-08-22 04:06 EDT (History)
15 users (show)

See Also:


Attachments
Inactive buttons (73.43 KB, image/png)
2014-08-13 09:08 EDT, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2014-08-13 09:08:54 EDT
Created attachment 245959 [details]
Inactive buttons

In my RCP / plug-in training session I noticed that most "newcomers" fight with the buttons in the Runtime configuration. These are only active if the filter is not set. See screenshot

I suggest to handle the button activation independently of the filter.
Comment 1 Curtis Windatt CLA 2014-08-13 09:51:58 EDT
I am closing this as WONTFIX because I know that the filtered tree implementation used there is very fragile.  If you want to work on a fix, you can reopen, but any change will require substantial testing.

All of the disabled buttons affect the checked items, including those that are currently filtered.  The solution may have to clear the filter, change the checked items, then reapply the filter, causing flashing in the UI.

You find it common that users are entering a filter and not clearing that filter?
Comment 2 Lars Vogel CLA 2014-08-13 12:21:07 EDT
(In reply to Curtis Windatt from comment #1)
> You find it common that users are entering a filter and not clearing that
> filter?

Yes, out of two reasons:

1.) I see it with my RCP / Plug-in trainees all the time. These days our PDE runtime exercise has two BIG warning issues reminding the people to remove the filter to avoid that issue in the exercises.

2.) Other Eclipse functionality works differently, e.g., the Target Editor from PDE does not require to delete a filter to work fine these days, see Bug 441561 or the p2 installation dialog does also not require that a filter is removed. 

I think the common assumption (and implementation in Eclipse) is that the filter filters the UI and that this does not affect the "model", e.g. the ability to add dependencies based on the current selection. 

> If you want to work on a fix, you can reopen, but any change will require 
> substantial testing.

OK, I give it a try. Might get easier, once I fix Bug 440366, in this case we would have a "common" FilteredTree implementation.
Comment 3 Curtis Windatt CLA 2014-08-13 12:36:22 EDT
(In reply to Lars Vogel from comment #2)
> 2.) Other Eclipse functionality works differently, e.g., the Target Editor
> from PDE does not require to delete a filter to work fine these days, see
> Bug 441561 or the p2 installation dialog does also not require that a filter
> is removed. 
> 
> I think the common assumption (and implementation in Eclipse) is that the
> filter filters the UI and that this does not affect the "model", e.g. the
> ability to add dependencies based on the current selection. 
> 
> > If you want to work on a fix, you can reopen, but any change will require 
> > substantial testing.
> 
> OK, I give it a try. Might get easier, once I fix Bug 440366, in this case
> we would have a "common" FilteredTree implementation.

The target uses a filtered tree implementation I built from borrowed bits from p2.  It is far better than the implementation used in the launch config and I still ended up with many subtle issues with running actions while a filter was applied.

So good luck :)
Comment 4 Lars Vogel CLA 2016-11-30 08:47:22 EST
Martin, something for you? This is a major usability issue IMHO?
Comment 5 Lars Vogel CLA 2016-12-08 02:59:56 EST
(In reply to Lars Vogel from comment #4)
> Martin, something for you? This is a major usability issue IMHO?

Martin, are you available to have a look at this for M5?
Comment 6 Martin Karpisek CLA 2016-12-08 16:10:48 EST
yes, i think most probably i will be able to look at it
Comment 7 Lars Vogel CLA 2016-12-21 03:48:15 EST
Note: AbstractPluginBlock contains the relevant code.
Comment 8 Moritz Aleithe CLA 2017-10-27 14:48:06 EDT
Is anybody active on this ticket? I think this is very inconvenient and it always confuses my students  when they are starting to create their own launch configurations.
Comment 9 Julian Honnen CLA 2018-11-16 04:00:43 EST
I'll take a look at it, but can't promise anything for M3.
Comment 10 Lars Vogel CLA 2018-11-16 04:17:37 EST
(In reply to Julian Honnen from comment #9)
> I'll take a look at it, but can't promise anything for M3.

Thanks. There is no time pressure on this issue as current behaviour is not wrong. But a fix will significantly improve usability IMHO.
Comment 11 Eclipse Genie CLA 2018-11-23 12:36:06 EST
New Gerrit change created: https://git.eclipse.org/r/133002
Comment 12 Eclipse Genie CLA 2018-11-23 12:44:13 EST
New Gerrit change created: https://git.eclipse.org/r/133002
Comment 14 Lars Vogel CLA 2018-12-12 08:07:33 EST
Awesome, Julian. This solves the number #1 usability issue with PDE tooling I see in my RCP training sessions.
Comment 15 Vikas Chandra CLA 2019-01-07 05:00:25 EST
Julian/Lars, can you please verify this defect?
Comment 16 Julian Honnen CLA 2019-01-07 06:48:49 EST
Verified on I20190106-1800
Comment 17 Andrey Loskutov CLA 2019-01-14 07:41:12 EST
Please check bug 543416, which is possibly a regression from this fix.
Comment 18 Julian Honnen CLA 2019-08-22 04:06:02 EDT
*** Bug 220668 has been marked as a duplicate of this bug. ***