Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » IEObjectDocumentationProvider-Labels too small
IEObjectDocumentationProvider-Labels too small [message #1698973] Fri, 19 June 2015 09:10
Ma Aa is currently offline Ma AaFriend
Messages: 7
Registered: May 2015
Junior Member
Hello,

for my DSL I implemented the IEObjectDocumentationProvider interface to give the tooltips in my DSL a better documentation.

What I have:

override getDocumentation(EObject o)
	{
		switch o
		{
			Statement:
			{
				return '''
					<b>Kommentar</b>: «o.kommentar» </br>
					<b>Anzahl Parameter</b>: «o.aktionen.filter[a|a.parameterEbene != 0].length»'''
			}
			Variable:
			{
				return '''
					<b>Datentyp</b>: «datentypMapping.get(o.datentyp)»</br>
					<b>Herkunft</b>: «ermittleNameZuVariablenContainer(o)»</br>
					<b>Kommentar</b>: «o.kommentar»'''
			}
			FormelTyp:
			{
				return '''
				<b>Kommentar:</b> «o.kommentar»</br>
				<b>Referenziert:</b> «o.zuordnungen.map[ zuordnung | zuordnung.variablendefnition.name].join(', ')»'''
			}
		}
	}


I do get the correct documentation in my labels, however those are always too small.

Is there a way to automatically "fit" the size of the labels?

I've attached two screenshots, one with the cut label and one with the focused label (you have the label manually).


Thanks in advance!
  • Attachment: zuKlein.png
    (Size: 2.48KB, Downloaded 126 times)
  • Attachment: richtig.png
    (Size: 4.73KB, Downloaded 132 times)
Previous Topic:Content Assist Context
Next Topic:Parsing Xtext-File with Xtext
Goto Forum:
  


Current Time: Mon Sep 23 09:31:09 GMT 2024

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

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

Back to the top