Community
Participate
Working Groups
- update model when window size changes - save model on shutdown - read saved model on startup unless the Application.xmi file is newer
Created attachment 128846 [details] patch I had to remove a call to Shell.pack() from CSSSWTApplyStylesListener.
Released to HEAD.
.
Released some more changes to persist the column widths of the Exif view.
(In reply to comment #1) > Created an attachment (id=128846) [details] > patch > > I had to remove a call to Shell.pack() from CSSSWTApplyStylesListener. Why? I'm suspicious that this code is needed for lazy applying of styles.
Opened bug #271501 to track the CSS issue.
(In reply to comment #5) > > I had to remove a call to Shell.pack() from CSSSWTApplyStylesListener. > > Why? Because I wanted to be able to persist the bounds of the shell. Calling pack() will resize the shell to the minimum preferred size.
(In reply to comment #7) > (In reply to comment #5) > > > I had to remove a call to Shell.pack() from CSSSWTApplyStylesListener. > > > > Why? > > Because I wanted to be able to persist the bounds of the shell. Calling pack() > will resize the shell to the minimum preferred size. Right. I'll investigate why we're doing it and if there's another way.
Hi, As Kevin said, CSSSWTApplyStylesListener is used to apply styles with lazy mode. Do you need apply styles with lazy mode? If you need not that (you must call engine.applyStyles(shell, false) somewhere), you can instanciate CSS engine without lazy mode, like this : CSSEngine engine = new CSSSWTEngineImpl(display); AND not like this : CSSEngine engine = new CSSSWTEngineImpl(display, true); Regards Angelo
For our use in modelled UI we could likely get away without relying on lazy style application. Instead, the renderers could explicitly style the part controls after create. Lets continue the discussion in bug #271501
Reopening. Proper fix requires #271644.
The reconciler is taking care of this.