Skip to main content



      Home
Home » Modeling » EMF Parsley » FeatureCaptionProvider(featureCaptionProvider has no effects)
FeatureCaptionProvider [message #1746165] Mon, 24 October 2016 07:41 Go to next message
Eclipse UserFriend
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 #1746258 is a reply to message #1746165] Wed, 26 October 2016 02:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael

thank you for your interest in Parsley!

By "has no effect" what do you mean? The features (and their captions) are not shown at all? Or are they shown with the default behavior? Are these features transient, derived or something else? Because not all the features are automatically shown in the form (e.g., derived and transient).

Could you please share parts of your code?

cheers
Lorenzo
Re: FeatureCaptionProvider [message #1746287 is a reply to message #1746165] Wed, 26 October 2016 09:11 Go to previous message
Eclipse UserFriend
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

Previous Topic:Dialog enhancement
Next Topic:Support for StyledLabelProvider or how to use StyledStrings in LabelProviders
Goto Forum:
  


Current Time: Tue Jul 01 06:36:56 EDT 2025

Powered by FUDForum. Page generated in 0.04622 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top