Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » changing the style of UI
changing the style of UI [message #1766189] Sat, 17 June 2017 10:17 Go to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
Hi,

How can I change the design style of IUserInput in EOL?
e.g., the window that is created from the System.user.choose statement.
Re: changing the style of UI [message #1766190 is a reply to message #1766189] Sat, 17 June 2017 11:14 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1498
Registered: July 2009
Location: York, UK
Senior Member

Hi,

getContenxt().setUserInput(...) should do the trick.

Cheers,
Dimitris
Re: changing the style of UI [message #1766191 is a reply to message #1766190] Sat, 17 June 2017 11:58 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
To clarify, I have the bellow code and e.g., I want to set background of the window yellow.
var v = System.user.choose('which of the following ...?', Sequence {'opt1', 'opt2'});
Re: changing the style of UI [message #1766193 is a reply to message #1766191] Sat, 17 June 2017 13:05 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1498
Registered: July 2009
Location: York, UK
Senior Member

Hi,

It's not possible to customise the appearance of the default user input implementation [1] from EOL. You'd need to define your own implementation of the IUserInput interface [2] to achieve this.

Cheers,
Dimitris

[1] http://download.eclipse.org/epsilon/javadoc/org/eclipse/epsilon/eol/dt/userinput/JFaceUserInput.html
[2] http://download.eclipse.org/epsilon/javadoc/org/eclipse/epsilon/eol/userinput/IUserInput.html
Previous Topic:Workflow and EObject references
Next Topic:refImmediateComposite in ETL
Goto Forum:
  


Current Time: Tue Jan 23 06:11:55 GMT 2018

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

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