Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Widget: Text(How can I get the value Expression)
Widget: Text [message #1776348] Wed, 15 November 2017 14:12 Go to next message
Andreas Buchner is currently offline Andreas BuchnerFriend
Messages: 47
Registered: August 2017
Member
Hi,

I would like to work more with the "open Dialog" in a Table representation.

Specially with the widget "Text". Therefor I want to use the value I enter in the TextBox, to set the value of a certain cell from there.

For now I work with the JOptionPane.showInputDialog() to set the value of the cell via the (JavaCode) Service. (which doesnt look that good)

My Problem is, I dont know how to handle/adress the "value" of the "Text".

I would like to have somthing like:

TextBox ( value: This is the Text I enter)

Button(click me)
begin
Change context (var:self)
set ( Feature column: Name
Value Expression: THE TEXT I ENTERED EARLIER)

how can I do that?

Thanks a lot
Re: Widget: Text [message #1776354 is a reply to message #1776348] Wed, 15 November 2017 15:36 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

The value entered in the text widget is set in a variable "newValue". Therefore under the "Change Context" operation, you need to add a set operation where value expression is "newValue". You can find more information about Text widgets here: https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html#text

Regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Widget: Text [message #1776405 is a reply to message #1776354] Thu, 16 November 2017 08:32 Go to previous message
Andreas Buchner is currently offline Andreas BuchnerFriend
Messages: 47
Registered: August 2017
Member
Perfect, thanks a lot :)
Previous Topic:Sirius change from version 4.1.1 to 5.1.0
Next Topic:Customising Edge styles
Goto Forum:
  


Current Time: Wed Apr 24 18:47:07 GMT 2024

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

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

Back to the top