Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » expandall icon(need to get icon of expandall.gif )
expandall icon [message #1713422] Wed, 04 November 2015 01:01 Go to next message
Ahmed Eltayeb is currently offline Ahmed EltayebFriend
Messages: 5
Registered: October 2015
Junior Member
Hi All,

i added a new action to outline view to expand all but i can't get imagedescriptor of expandall.gif which under xtext_ui jar under icons.elcl16
and also can't get it from ISharedImages as it's not shared


Thanks in advance
Re: expandall icon [message #1713504 is a reply to message #1713422] Wed, 04 November 2015 16:50 Go to previous messageGo to next message
Thomas Fritsch is currently offline Thomas FritschFriend
Messages: 28
Registered: April 2013
Location: Germany
Junior Member
You might use a static method from class org.eclipse.ui.plugin.AbstractUIPlugin :
AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.xtext.ui", "icons/elcl16/expandall.gif");

(But I would consider this a hack, since you would rely on undocumented Xtext details)
Re: expandall icon [message #1713542 is a reply to message #1713504] Wed, 04 November 2015 23:20 Go to previous message
Ahmed Eltayeb is currently offline Ahmed EltayebFriend
Messages: 5
Registered: October 2015
Junior Member
thanks, it worked fine
i agree with you it can be considered a hack but there is not any alternative than load the gif in my plugin
Previous Topic:Using Gradle to Generate XCore and IncQuery code
Next Topic:Bounds mismatch error using generic extension
Goto Forum:
  


Current Time: Wed Sep 25 21:37:49 GMT 2024

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

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

Back to the top