Tom -

Very cool! That's a great foundation to build on.

- B



From:
Tom Schindl <[email protected]>
To:
E4 Project developer mailing list <[email protected]>
Date:
08/25/2011 05:36 PM
Subject:
Re: [e4-dev] Meeting Minutes - August 25, 2011 and CSS Editor?
Sent by:
[email protected]



I couldn't resist and spend an hour to implement fairly all currently
supported CSS-Properties, including basic validation for enum-types
(well I get them from the base-framework by default).

See the editor in action in the attached screenshots.

Here's the example for the CTabFolder-properties we support:

> public class CTabFolderElement {
>                public static List<Property> init() {
>                                List<Property> properties = new 
ArrayList<Property>();
> properties.addAll(Util.createReflective(IntegerProperty.class, 
"-swt-corner-radius"));
> properties.addAll(Util.createReflective(UrlProperty.class, 
"-swt-tab-renderer"));
> properties.addAll(Util.createReflective(ColorProperty.class, 
"-swt-unselected-tabs-color", 
> "-swt-outer-keyline-color","-swt-inner-keyline-color",
> 
"-swt-selected-tabs-background","-swt-selected-tab-fill","-swt-tab-outline",
> "-swt-shadow-color"));
> properties.addAll(Util.createReflective(BooleanProperty.class, 
> 
"-swt-simple","-swt-maximize-visible","-swt-minimize-visible","-swt-mru-visible",
> 
"-swt-maximized","-swt-minimized","-swt-single","-swt-unselected-close-visible",
> "-swt-unselected-image-visible","-swt-shadow-visible"));
> properties.addAll(Util.createReflective(IntegerProperty.class, 
"-swt-tab-height"));
>                                // padding
>                                // padding-left
>                                // padding-right
>                                // padding-top
>                                // padding-bottom
> 
> 
>                                return properties;
>                }
> }

This is not 100% correct now because some of the color properties
support a list of colors but that's really easy to implement.

Tom

Am 25.08.11 22:06, schrieb Tom Schindl:
> Hi Bogdan,
> 
> I've commented on the bug because I have already a complete
> CSS-Xtext-Grammer and providing support for SWT is totally easy.
> 
> As said before I'm willing to contribute the base Xtext-Grammer
> implementing the properties for SWT is no more than 2-5 days of work
> (including validation).
> 
> Tom
> 
> Am 25.08.11 21:59, schrieb Bogdan Gheorghe:
>> Hi David -
>>
>> There's a bug raised to track the editor work
>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=354785). So far, I have
>> been playing around with XText to see what's possible with it; looking
>> at the editor in WTP is also on the to-do list. Besides doing the
>> obvious syntax coloring, the editor needs to be able to offer
>> completions based on the set of common properties available within SWT
>> and the additional CSS properties which can be contributed to style a
>> custom widget..
>>
>> Regards,
>> Bogdan
>>
>>
>> From:                 David M Williams <[email protected]>
>> To:           E4 Project developer mailing list <[email protected]>
>> Date:                 08/25/2011 11:25 AM
>> Subject:              Re: [e4-dev] Meeting Minutes - August 25, 2011 
and CSS Editor?
>> Sent by:              [email protected]
>>
>>
>> 
------------------------------------------------------------------------
>>
>>
>>
>> I noticed an item in these minutes; "Working on CSS editor". 
>>
>> Is there more information about this anywhere?
>>
>> I am mostly curious is an assessment was done with the CSS Editor in
>> WTP. I'm sure that as-is it is "heavier" than required for e4, since it
>> deals with many dialects of CSS ... but, just wondering if there were
>> "show stoppers" with reusing it?  Or, at same time, if there could be
>> some synergy or reuse possible.
>>
>> Thanks for any pointers,
>>
>>
>>
>>
>>
>> From:        John Arthorne <[email protected]>
>> To:        E4 Project developer mailing list <[email protected]>
>> Date:        08/25/2011 10:23 AM
>> Subject:        [e4-dev] Meeting Minutes - August 25, 2011
>> Sent by:        [email protected]
>> 
------------------------------------------------------------------------
>>
>>
>> _
>> 
__http://wiki.eclipse.org/E4/Meeting_Minutes/Status_20110825________________________________________________
>> e4-dev mailing list
>> [email protected]_
>> __https://dev.eclipse.org/mailman/listinfo/e4-dev_
>> _______________________________________________
>> e4-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/e4-dev
>>
>>
>>
>>
>> _______________________________________________
>> e4-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/e4-dev
> 
> 


-- 
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                 geschäftsführer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
http://www.BestSolution.at                      phone    ++43 512 935834
[attachment "screen0.png" deleted by Bogdan Gheorghe/Ottawa/IBM] 
[attachment "screen1.png" deleted by Bogdan Gheorghe/Ottawa/IBM] 
[attachment "screen2.png" deleted by Bogdan Gheorghe/Ottawa/IBM] 
[attachment "screen3.png" deleted by Bogdan Gheorghe/Ottawa/IBM] 
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev


_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to