This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 426777 - [CSS] Remove "A restart is required for the theme to start full effect" popup
Summary: [CSS] Remove "A restart is required for the theme to start full effect" popup
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 4.4 M7   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 423813
Blocks:
  Show dependency tree
 
Reported: 2014-01-28 05:36 EST by Lars Vogel CLA
Modified: 2014-05-07 05:10 EDT (History)
4 users (show)

See Also:


Attachments
Screenshot (73.01 KB, image/png)
2014-03-14 07:39 EDT, Lars Vogel CLA
no flags Details
Proposed visual solution (75.82 KB, image/png)
2014-03-24 19:09 EDT, Nobody - feel free to take it 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-01-28 05:36:46 EST
With Bug 423813 fixed, maybe we can remove the warning popup which is displayed if a theme is changed?
Comment 1 Lars Vogel CLA 2014-01-28 05:43:23 EST
After reading https://bugs.eclipse.org/bugs/show_bug.cgi?id=423813#c14 it looks like the restart is still required.

Maybe we can display a warning message on the preference page instead of the popup? I find the popup a bit too strong, especially as now most of the CSS seems to get applied at runtime.
Comment 2 Daniel Rolka CLA 2014-01-28 05:57:35 EST
(In reply to Lars Vogel from comment #1)
> After reading https://bugs.eclipse.org/bugs/show_bug.cgi?id=423813#c14 it
> looks like the restart is still required.
> 
> Maybe we can display a warning message on the preference page instead of the
> popup? I find the popup a bit too strong, especially as now most of the CSS
> seems to get applied at runtime.

It is good idea,
Daniel
Comment 3 Paul Webster CLA 2014-01-28 05:59:41 EST
I'm fine as long as the warning appears when the change is made and is close to the combo that drives the change.

PW
Comment 4 Dani Megert CLA 2014-01-28 06:39:02 EST
AFAIK for some widgets the restart is still required. The problem in 4.x (as compared to 3.x) is that the dialog no longer directly allows to restart.

So, first we should double-check on the "required". If it is required, then we should keep the dialog but make it again work like in 3.x.
Comment 5 Lars Vogel CLA 2014-02-03 05:46:43 EST
(In reply to Dani Megert from comment #4)
> AFAIK for some widgets the restart is still required. The problem in 4.x (as
> compared to 3.x) is that the dialog no longer directly allows to restart.
> 
> So, first we should double-check on the "required". If it is required, then
> we should keep the dialog but make it again work like in 3.x.

Sounds like a bit of overdesign IMHO. The popup is relative annoying, especially as it is displayed twice (press Apply and afterwards OK). A inline warning would be already a big improvement to the popup.
Comment 6 Lars Vogel CLA 2014-03-14 05:57:47 EDT
I just learned from Daniel in IRC that he manually resets all SWT widgets and that a missing reset would be considered a bug. 

In this case I think a label in the dialog would be sufficient.
Comment 7 Lars Vogel CLA 2014-03-14 05:58:19 EDT
Sopot, do you want to take this one? I originally implemented the popup.
Comment 8 Nobody - feel free to take it CLA 2014-03-14 07:28:14 EDT
Yes I can take it. So what's the consensus on the location of the label?
Comment 9 Lars Vogel CLA 2014-03-14 07:39:21 EDT
Created attachment 240902 [details]
Screenshot

What about this amazing mockup? Button should of course be pushed done...
Comment 10 Nobody - feel free to take it CLA 2014-03-24 10:55:03 EDT
I'll try to implement it somehow and I'll post screenshots.
Comment 11 Nobody - feel free to take it CLA 2014-03-24 19:09:21 EDT
Created attachment 241203 [details]
Proposed visual solution

I like this one better because it is closer to the action.

Give me a go and I'll push the gerrit.
Comment 12 Nobody - feel free to take it CLA 2014-03-24 19:24:54 EDT
Just in case: https://git.eclipse.org/r/23825
Comment 14 Daniel Rolka CLA 2014-03-25 08:06:01 EDT
(In reply to Lars Vogel from comment #13)
> Fixed with
> https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/
> ?id=a7e66ff93fa8ca612f1bb3d1598ec2ce9fd407f6
> 
> Thanks Sopot!

The 'Restart is required ...' message was also applicable for the 3.x theme combo (if (themeChanged || colorsAndFontsThemeChanged)). Does the new popup support the 3.x combo as well?

Daniel
Comment 15 Lars Vogel CLA 2014-03-25 08:10:17 EDT
(In reply to Daniel Rolka from comment #14)
 
> The 'Restart is required ...' message was also applicable for the 3.x theme
> combo (if (themeChanged || colorsAndFontsThemeChanged)). Does the new popup
> support the 3.x combo as well?

Does this require also sometimes a restart? In this case if would be great if Sopot can add a similar warning message to the second combo.
Comment 16 Daniel Rolka CLA 2014-03-25 08:21:17 EDT
(In reply to Lars Vogel from comment #15)
> (In reply to Daniel Rolka from comment #14)
>  
> > The 'Restart is required ...' message was also applicable for the 3.x theme
> > combo (if (themeChanged || colorsAndFontsThemeChanged)). Does the new popup
> > support the 3.x combo as well?
> 
> Does this require also sometimes a restart? In this case if would be great
> if Sopot can add a similar warning message to the second combo.

Yes, I would add the similar popup for the 3.x theme combo

thanks,
Daniel
Comment 18 Lars Vogel CLA 2014-04-29 09:17:01 EDT
Verified in Build id: I20140427-2030
Comment 19 Dani Megert CLA 2014-05-07 05:10:47 EDT
This is not really nice as it requires user work to figure out what's going on.

Take a look at the 'Compiler' preference page and change the compliance to e.g. '1.3'. This will show a warning and give enough information for the user to decide what to do. For this bug here it could show a link to restart the workbench.