<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>news.eclipse.tools.gef</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/maillist.html</link>
		<description>NewsGroup: news.eclipse.tools.gef</description>
		<language>en-us</language>
		<pubDate>Fri, 18 Sep 2009 10:31:04 GMT</pubDate>
		<lastBuildDate>Fri, 18 Sep 2009 10:31:04 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>news.eclipse.tools.gef</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/maillist.html</link>
		</image>
 

	<item>
		<title>[news.eclipse.tools.gef] Drawing JFreeChart chart in Draw2D figure</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21751.html</link>
		<description>Hi, I need to draw charts created with JFreeChart, which uses AWT, in Draw2D figures. At the moment I use JFreeChart headlessly to create an SWT image from an AWT image buffer. Then I draw the SWT image with an ImageFigure, which works reasonably well. Are...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi,</pre><br>
<tt>I need to draw charts created with JFreeChart, which uses AWT, in Draw2D 
figures. At the moment I use JFreeChart headlessly to create an SWT image 
from an AWT image buffer. Then I draw the SWT image with an ImageFigure, 
which works reasonably well.</tt><br>
<br>
<pre style="margin: 0em;">Are there any better approaches I don't know of?</pre><br>
<pre style="margin: 0em;"><br>Regards,
Marian</pre><br>
<br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 10:22:25 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21751.html</guid>
		<author>marian@xxxxxxx (Marian Seitner)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.gef] Re: Ideal GEF Viewer eats up CPU</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21750.html</link>
		<description> outline view thumbnail updater runs continuously, even when application is minimized is this right??? I solved the above problem,This problem was because of figure.setBackground calls in painFigure method,the setBackground should be called on graphics ins...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">vijay wrote:</pre><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Hi,
</tt></blockquote><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">I have a GEF viewer with large figure,
And an associated outline view for the same,
</pre></blockquote><br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>With outline view the application eats up cpu even while minimized,
</tt></blockquote><tt><br>outline view thumbnail updater runs continuously, even when application is 
minimized is this right??? </tt><br>
<br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Without outline view the application starts eating CPU once in focus with 
no user activity,
</tt></blockquote><tt><br>I solved the above problem,This problem was because of 
figure.setBackground calls in painFigure method,the setBackground should 
be called on graphics instance not on figure instance.<br>
(Hope this would help others)</tt><br>
<br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Is this right,
How can i find out what is eating the CPU,
a break point position in GEF or draw2d classes would be appreciated...
</pre></blockquote><pre style="margin: 0em;"><br></pre><br>
<pre style="margin: 0em;"><br></pre><br>
<br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 06:46:20 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21750.html</guid>
		<author>vijay.rajonline@xxxxxxx (vijay )</author>
	</item>
	<item>
		<title>[news.eclipse.tools.gef] Ideal GEF Viewer eats up CPU</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21749.html</link>
		<description>Hi, I have a GEF viewer with large figure, And an associated outline view for the same, With outline view the application eats up cpu even while minimized, Without outline view the application starts eating CPU once in focus with no user activity, Is this ...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi,</pre><br>
<pre style="margin: 0em;">I have a GEF viewer with large figure,
And an associated outline view for the same,</pre><br>
<pre style="margin: 0em;">With outline view the application eats up cpu even while minimized,</pre><br>
<tt>Without outline view the application starts eating CPU once in focus with 
no user activity,</tt><br>
<br>
<tt>Is this right,<br>
How can i find out what is eating the CPU,<br>
a break point position in GEF or draw2d classes would be appreciated... </tt><br>
<br>
<pre style="margin: 0em;"><br></pre><br>
<br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 04:43:31 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21749.html</guid>
		<author>vijay.rajonline@xxxxxxx (vijay )</author>
	</item>


	<item>
		<title>[news.eclipse.tools.gef] Re: Dispatching Event from Figure to	EditPart</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21748.html</link>
		<description>No problem. The problem with #setToolClass() is still bothering me though... I think it might be caused by not declaring Gef as an Eclipse-registerBuddy in the manifest.mf (since the default implementation of #createTool() use reflection to create the tool...</description>
		<content:encoded><![CDATA[<tt>ngotme@xxxxxx wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Thanks for the solution Pascal!  :)
That looks like a clean solution to my problem.
I will get back with my results in a week from now.
</pre></blockquote><pre style="margin: 0em;"><br>No problem.</pre><br>
<tt>The problem with #setToolClass() is still bothering me though... I think 
it might be caused by not declaring Gef as an Eclipse-registerBuddy in 
the manifest.mf (since the default implementation of #createTool() use 
reflection to create the tool), but I'm not sure and I'm not an expert 
in those thing. Could anyone confirm/test this??</tt><br>
<br>
<pre style="margin: 0em;">--
Pascal G&#xC3;linas | Software Developer
*Nu Echo Inc.*
<a  href="http://www.nuecho.com/">http://www.nuecho.com/</a> | <a  href="http://blog.nuecho.com/">http://blog.nuecho.com/</a></pre><br>
<pre style="margin: 0em;">*Because performance matters.*</pre><br>
]]></content:encoded>
		<pubDate>Thu, 17 Sep 2009 16:48:08 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21748.html</guid>
		<author>pascal.gelinas@xxxxxxx (Pascal Gelinas)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.gef] Re: Dispatching Event from Figure to EditPart</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21747.html</link>
		<description>Thanks for the solution Pascal! :) That looks like a clean solution to my problem. I will get back with my results in a week from now. </description>
		<content:encoded><![CDATA[<tt>Thanks for the solution Pascal!  :) </tt><br>
<br>
<tt>That looks like a clean solution to my problem. </tt><br>
<br>
<pre style="margin: 0em;">I will get back with my results in a week from now.</pre><br>
]]></content:encoded>
		<pubDate>Thu, 17 Sep 2009 16:20:42 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21747.html</guid>
		<author>ngotme@xxxxxxx (ngotme)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.gef] Re: Dispatching Event from Figure to	EditPart</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21746.html</link>
		<description>I'm guessing you want some custom behavior on a single click of the figure, so I'll start from there. First of all, you need to have a selection tool entry in your palette. You need to modify the tool it gives you for your own SelectionTool. The default on...</description>
		<content:encoded><![CDATA[<tt>Pascal Gelinas wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>ngotme@xxxxxx wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hello all,</pre><br>
<tt>I want to react on a click on a label in a figure and pass it to the 
corresponding editpart in order to create a request and change the model.<br>
What is the best practice to do so? How would I dispatch the 
mouseClick event to the editpart?<br>
Thanks in advance
</tt></blockquote><tt><br>I'm guessing you want some custom behavior on a single click of the 
figure, so I'll start from there. First of all, you need to have a 
selection tool entry in your palette. You need to modify the tool it 
gives you for your own SelectionTool. The default one does not ask the 
edit part for a command, and that's what we want here. So, subclass 
SelectionTool, and extend the #mouseDown() method as follow:<br>
        @Override<br>
        public void mouseDown(MouseEvent e, EditPartViewer viewer)<br>
        {<br>
            // Let the superclass treat it before you, so its state 
updates.<br>
            super.mouseDown(e, viewer);<br>
            Command command = getCommand();<br>
            getCommandStack().execute(command);<br>
        }<br>
note: you may which to extend something else, such has 
#handleButtonUp(), or #mouseUp(). The #mouseDown() approach was only for 
 quick testing. Also, I didn't do any error checking which you may or 
may not need.</tt><br>
<br>
<tt>Then, you need to tell the selection tool entry which tool to use. There 
is two way for that:<br>
1- pass your own class to the #setToolClass() method (I had no luck with 
this tho)<br>
2- subclass SelectionToolEntry and override #createTool as follow:<br>
            @Override<br>
            public Tool createTool()<br>
            {<br>
                Tool tool = new Test();<br>
                tool.setProperties(getToolProperties());<br>
                return tool;<br>
            }</tt><br>
<br>
<tt>Then, all you need is an edit policy on your edit part which understand 
the REQ_SELECTION and gives you the command.</tt><br>
<br>
<tt>Hope this helps.
</tt></blockquote><pre style="margin: 0em;"><br>wow, major typo. I meant:
note: you may wish to extend ...</pre><br>
<pre style="margin: 0em;">--
Pascal G&#xC3;linas | Software Developer
*Nu Echo Inc.*
<a  href="http://www.nuecho.com/">http://www.nuecho.com/</a> | <a  href="http://blog.nuecho.com/">http://blog.nuecho.com/</a></pre><br>
<pre style="margin: 0em;">*Because performance matters.*</pre><br>
]]></content:encoded>
		<pubDate>Thu, 17 Sep 2009 15:52:43 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21746.html</guid>
		<author>pascal.gelinas@xxxxxxx (Pascal Gelinas)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.gef] Re: Dispatching Event from Figure to	EditPart</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21745.html</link>
		<description>I'm guessing you want some custom behavior on a single click of the figure, so I'll start from there. First of all, you need to have a selection tool entry in your palette. You need to modify the tool it gives you for your own SelectionTool. The default on...</description>
		<content:encoded><![CDATA[<tt>ngotme@xxxxxx wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hello all,</pre><br>
<tt>I want to react on a click on a label in a figure and pass it to the 
corresponding editpart in order to create a request and change the model.<br>
What is the best practice to do so? How would I dispatch the mouseClick 
event to the editpart?<br>
Thanks in advance
</tt></blockquote><tt><br>I'm guessing you want some custom behavior on a single click of the 
figure, so I'll start from there. First of all, you need to have a 
selection tool entry in your palette. You need to modify the tool it 
gives you for your own SelectionTool. The default one does not ask the 
edit part for a command, and that's what we want here. So, subclass 
SelectionTool, and extend the #mouseDown() method as follow:<br>
        @Override<br>
        public void mouseDown(MouseEvent e, EditPartViewer viewer)<br>
        {<br>
            // Let the superclass treat it before you, so its state 
updates.<br>
            super.mouseDown(e, viewer);<br>
            Command command = getCommand();<br>
            getCommandStack().execute(command);<br>
        }<br>
note: you may which to extend something else, such has 
#handleButtonUp(), or #mouseUp(). The #mouseDown() approach was only for 
 quick testing. Also, I didn't do any error checking which you may or 
may not need.</tt><br>
<br>
<tt>Then, you need to tell the selection tool entry which tool to use. There 
is two way for that:<br>
1- pass your own class to the #setToolClass() method (I had no luck with 
this tho)<br>
2- subclass SelectionToolEntry and override #createTool as follow:<br>
            @Override<br>
            public Tool createTool()<br>
            {<br>
                Tool tool = new Test();<br>
                tool.setProperties(getToolProperties());<br>
                return tool;<br>
            }</tt><br>
<br>
<tt>Then, all you need is an edit policy on your edit part which understand 
the REQ_SELECTION and gives you the command.</tt><br>
<br>
<pre style="margin: 0em;">Hope this helps.
--
Pascal G&#xC3;linas | Software Developer
*Nu Echo Inc.*
<a  href="http://www.nuecho.com/">http://www.nuecho.com/</a> | <a  href="http://blog.nuecho.com/">http://blog.nuecho.com/</a></pre><br>
<pre style="margin: 0em;">*Because performance matters.*</pre><br>
]]></content:encoded>
		<pubDate>Thu, 17 Sep 2009 15:44:16 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21745.html</guid>
		<author>pascal.gelinas@xxxxxxx (Pascal Gelinas)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.gef] Re: Dispatching Event from Figure to EditPart</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21744.html</link>
		<description>I did not solve the problem yet tho I tried two workarounds to react on the label click inside a figure: 1) install a SelectionEditPolicy on the EditPart - add a MouseListener to the figure's label which will toggle a boolean value - from the SelectionEdit...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">I did not solve the problem yet tho I tried two workarounds to react on the label click inside a figure:</pre><br>
<pre style="margin: 0em;">1) install a SelectionEditPolicy on the EditPart - add a MouseListener to the figure's label which will toggle a boolean value - from the SelectionEditPolicy's ShowSelection methode read that boolean value of the figure and execute a command</pre><br>
<tt>2) Add the MouseListener as in 1) - also add a ProperyChangeListener to the figure - firePropertyChange when the label is clicked - handle that Event in the corresponding EditPart </tt><br>
<br>
<tt>I prefer the 2. workaround but neither is very clean and follows the philosophy - &quot;models should only be modified by commands&quot; </tt><br>
<br>
<pre style="margin: 0em;">So if someone has a nice and clean solution please feel free to answer!</pre><br>
]]></content:encoded>
		<pubDate>Thu, 17 Sep 2009 12:55:26 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21744.html</guid>
		<author>ngotme@xxxxxxx (ngotme)</author>
	</item>


	<item>
		<title>[news.eclipse.tools.gef] Combine Zest with GEF</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21743.html</link>
		<description>Hi, Is it possible to combine Zest (particulary, layout managers) with GEF? Is there any example of this? Dmitry </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi,</pre><br>
<pre style="margin: 0em;">Is it possible to combine Zest (particulary, layout managers) with GEF?
Is there any example of this?</pre><br>
<pre style="margin: 0em;">Dmitry</pre><br>
<br>
]]></content:encoded>
		<pubDate>Wed, 16 Sep 2009 13:58:16 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21743.html</guid>
		<author>divis1969@xxxxxxx (Dmitry Smirnov)</author>
	</item>


	<item>
		<title>[news.eclipse.tools.gef] Dispatching Event from Figure to EditPart</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21742.html</link>
		<description>Hello all, I want to react on a click on a label in a figure and pass it to the corresponding editpart in order to create a request and change the model. What is the best practice to do so? How would I dispatch the mouseClick event to the editpart? Thanks ...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hello all,</pre><br>
<tt>I want to react on a click on a label in a figure and pass it to the corresponding editpart in order to create a request and change the model. </tt><br>
<br>
<tt>What is the best practice to do so? How would I dispatch the mouseClick event to the editpart? </tt><br>
<br>
<pre style="margin: 0em;">Thanks in advance</pre><br>
]]></content:encoded>
		<pubDate>Tue, 15 Sep 2009 15:41:52 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.gef/msg21742.html</guid>
		<author>ngotme@xxxxxxx (ngotme)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
