Re: [Xswt-developer] Xswt-developer Digest, Vol 3, Issue 4
Brought to you by:
dvorme
|
From: <ha...@id...> - 2006-08-21 13:26:50
|
David, > -----Original Message----- > Date: Thu, 17 Aug 2006 21:32:02 -0500 > From: "David J. Orme" <dj...@co...> > Subject: [Xswt-developer] Feedback: Should we focus on supporting RCP only? > > Might we want to make XSWT support Eclipse plugins *only*? > ie: to have an explicit linkage to the Eclipse platform? I'll have to think about this. My first thought is that I would have liked us to support Windows Mobile with eSWT, but I'm not sure how realistic that is. > ------------------------------ > Date: Thu, 17 Aug 2006 22:31:50 -0500 > From: "David J. Orme" <dj...@co...> > Subject: Re: [Xswt-developer] Xswt-developer Digest, Vol 2, Issue 5 > > Right now I think there's no way to define a style for a layoutData? No, I guess it's because property nodes (tags) don't use the stylesheet mechanism. > What I think I wanted to write in the style sheet was the following: > > <composite> > <layoutData x:id="grabHorizontal" x:class="gridData" bla > bla bla/> </composite> > > Then I could have the following in a regular XSWT file: > > <composite> > <layoutData x:style="styles.grabHorizontal"/> </composite> > > which would be much more concise than the usual bag of > attributes that normally come with grabbing horizontally. > :-) I don't know if this is hard in the current > implementation, but notice that the meta x:class attribute is > implicitly included in the style too. > > Does this make sense? Do you agree that this is a good idea? Aha! I was confused since in your suggestion markup in the test file it was the wrapping composite tag that had the x:id="grabHorizontal" attribute. It wasn't very difficult, just a matter of inserting stylesheet handling code in processNodeProperty. I'll commit support for this later today, including a test case: In a stylesheet: <layoutData x:id="grabHorizontal" x:class="gridData" grabExcessHorizontalSpace="true" horizontalAlignment="FILL"/> Using the style: <layoutData x:style="grabHorizontal"/> Hallvard |