FeatureCaptionProvider [message #1746165] |
Mon, 24 October 2016 07:41  |
Eclipse User |
|
|
|
Hello EMF-Parsley community,
I just started using parsley and have to say: Great stuff, very useful framework!
I managed to create a first e4-based example application containing a part with a SaveableTreeFormView and some minor customizations (a labelProvider for custom icons). Unfortunately I got stuck somehow right now: Adding a featureCaptionProvider and a formControlFactory to the DSL had no effects on the form appearence. (However, the labelProvider is working fine).
labelProvider {
image {
Library -> "Library_16.png"
}
}
featureCaptionProvider {
text {
Library : owner -> "Owner:"
Library : creationDate -> "Created on:"
}
}
formControlFactory {
control {
Library : creationDate -> { createDateTime(SWT::BORDER) }target observeSelection()
}
}
Has anybody an idea of what could be wrong? Gladly, I give more information about my example application, if needed!
Many thanks in advance,
cheers
Michael
|
|
|
|
Re: FeatureCaptionProvider [message #1746287 is a reply to message #1746165] |
Wed, 26 October 2016 09:11  |
Eclipse User |
|
|
|
Hi Lorenzo,
thanks for your reply.
By "no effects" I mean that the features and their captions are shown with default behavior.
In the meantime I found the error: i had attributes with names starting with a capital letter (Library: Owner (EString), CreationDate (EDate)) in my sample ecore model. Within the DSL, the content assist suggests the attributes starting with a lowercase letter. Customizations concerning those attributes had no effect. However, after renaming the attributes in the model my example code works as expected!
Thanks again for your reply,
cheers
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.04622 seconds