Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » How to set icon in a dialog extension
How to set icon in a dialog extension [message #1219807] Thu, 05 December 2013 20:48 Go to next message
Joseph Gagnon is currently offline Joseph GagnonFriend
Messages: 68
Registered: June 2013
Member
I am using the org.eclipse.fx.ui.dialogs package to provide dialog functionality in my application. I needed a dialog that would allow for the display of a list of strings (error messages), so I extended the TitleAreaDialog. It works well, except I wanted to be able to show an error icon in the title area. I'd like to point my class to use the error icon that's included in org.eclipse.fx.ui.dialogs, but I don't know how to do it. I don't know how to form the URL that the constructor wants. Any suggestions?

[Updated on: Thu, 05 December 2013 20:49]

Report message to a moderator

Re: How to set icon in dialog [message #1220040 is a reply to message #1219807] Mon, 09 December 2013 09:42 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Is the question how to reuse the icons provided by the dialog bundle?

You can of course construct an URL towards them but they are internals
of the bundle and might change anytime! Instead of makeing direct use of
them I'd copy them to my own bundle (they are coming from the KDE
Oxygene L&F).

Tom

On 05.12.13 21:48, Joseph Gagnon wrote:
> I am using the org.eclipse.fx.ui.dialogs package to provide dialog
> functionality in my application. I needed a dialog that would allow for
> the display of a list of strings (error messages), so I extended the
> TitleAreaDialog. It works well, except I wanted to be able to show an
> error icon in the title area. I'd like to point my class to use the
> error icon that's included in org.eclipse.fx.ui.dialogs, but I don't
> know how to do it. I don't know how to form the URL that the constructor
> wants. Any suggestions?
Previous Topic:Using RBAC Pattern with e(fx)clipse
Next Topic:Install problem
Goto Forum:
  


Current Time: Fri Apr 19 20:15:12 GMT 2024

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

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

Back to the top