| Summary: | [CSS] Consider removing capturing of widget state for reset | ||
|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Kevin McGuire <Kevin_McGuire> |
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Bogdan Gheorghe <gheorghe> |
| Severity: | normal | ||
| Priority: | P3 | CC: | azerr, gheorghe, kai.toedter, remy.suen |
| Version: | 0.9 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Kevin McGuire
Just for sake of discussion (although you'll see me argue against it in the end): Another possibility, which would require SWT support though, is for there to be an explicit app widget customization step. Imagine if when you created a widget one of the args was an inner class which, when invoked, would configure the widget. We would then have a way to capture what the application thinks the default state should be. That, in combination with SWT widget creation notification, would give us a life cycle like: 1. Widget instance initialized 2. Widget internal initialization/configuration 3. Call out to app to customize 4. Call out to CSS to style it We can then always revert the widget to it's default state by reverting to factory all properties we set in (4), and then calling (3). I'm not sure the practical value of this though since apps must rearrange their widget creation code for (3), so this doesn't come for free. If they're making these kinds of changes, then really (3) should be empty: they shouldn't do any widget configuration, but rather rely on CSS. This is the right architectural split. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. This is a mass change to close all e4 bugs marked with "stalebug" whiteboard. If this bug is still valid, please reopen and remove the "stalebug" keyword. |