Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to manipulate size of custem widgets in properties view
https://www.eclipse.org/forums/index.php/mv/msg/1084881/1755911/#msg_1755911
I try to add a custom widget in the properties view. The widget is a embedded xtext editor. So far, I get the editor displayed but too small. (Only showing one line of text.)
I'm not too familiar with EEF so this might be a very silly question but how can I arrange the widget to occupy more space?
Attached you'll find a picture of the editor with the properties view.
Greetings,
Wilbert.
]]>Wilbert Alberts2017-03-09T09:40:14-00:00Re: How to manipulate size of custem widgets in properties view
https://www.eclipse.org/forums/index.php/mv/msg/1084881/1755924/#msg_1755924
Good job plugin Xtext in the Sirius Properties View!
In order to make your widget take more space, you don't anything specific for EEF, it's just a regular SWT/JFace problem. I think that you could use the same behavior as our TextArea widget. In the grid data of our widget, we are specifying a heightHint to tell SWT the minimum height that we would like to use.
Regards,
Stephane Begaudeau, Obeo]]>Stephane Begaudeau2017-03-09T10:22:15-00:00Re: How to manipulate size of custem widgets in properties view
https://www.eclipse.org/forums/index.php/mv/msg/1084881/1755925/#msg_1755925
Thanks man! Worked straight out of the box.
Greetings,
Wilbert.]]>Wilbert Alberts2017-03-09T10:33:16-00:00Re: How to manipulate size of custem widgets in properties view
https://www.eclipse.org/forums/index.php/mv/msg/1084881/1784630/#msg_1784630
Louis Detweiler2018-03-30T22:48:04-00:00Re: How to manipulate size of custem widgets in properties view
https://www.eclipse.org/forums/index.php/mv/msg/1084881/1784636/#msg_1784636
The starting point is the EmbeddedXtextEditor, which has evolved since I first adapted it for ConsoleView embedding five years ago, so I cannot recommend that you use the OCL Xtext Console code as an example. Search for other example uses.