<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: ImageDescriptor problem on JFace actions?</title>
	<link>http://kwsanders.com/2005/03/19/imagedescriptor-problem-on-jface-actions/</link>
	<description>My blog about all things family, photography, geocaching, and programming.</description>
	<pubDate>Tue, 06 Jan 2009 06:54:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Jeremy</title>
		<link>http://kwsanders.com/2005/03/19/imagedescriptor-problem-on-jface-actions/#comment-987</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 19 Mar 2008 13:43:54 +0000</pubDate>
		<guid>http://kwsanders.com/2005/03/19/imagedescriptor-problem-on-jface-actions/#comment-987</guid>
		<description>Your problem with the button could potentially be related to when you are creating your ExitAction...  Obviously I don't have the whole picture but I'll vernture a guess anyways.  In JFace the Image Descriptor requires the Display to be around.  So if you for example called the new ExitAction from the constructor of a JFace Application Window.  You would have the Display linked up properly.  Because that is when the Shell is created and attached to the Display.

Try moving the code to the configureShell method of the ApplicationWindow.  Here you will have the display / shell wired up correctly and it will be just before the shell is attached to the  window which is where you want to be.  I've tested on my end and it works for me if I put it into that function.</description>
		<content:encoded><![CDATA[<p>Your problem with the button could potentially be related to when you are creating your ExitAction&#8230;  Obviously I don&#8217;t have the whole picture but I&#8217;ll vernture a guess anyways.  In JFace the Image Descriptor requires the Display to be around.  So if you for example called the new ExitAction from the constructor of a JFace Application Window.  You would have the Display linked up properly.  Because that is when the Shell is created and attached to the Display.</p>
<p>Try moving the code to the configureShell method of the ApplicationWindow.  Here you will have the display / shell wired up correctly and it will be just before the shell is attached to the  window which is where you want to be.  I&#8217;ve tested on my end and it works for me if I put it into that function.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
