<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Secondary ID</title>
	<atom:link href="http://hexapixel.com/2009/06/16/the-secondary-id/feed" rel="self" type="application/rss+xml" />
	<link>http://hexapixel.com/2009/06/16/the-secondary-id</link>
	<description>Programming, Eclipse, SWT and everything inbetween</description>
	<lastBuildDate>Mon, 26 Jul 2010 07:05:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Emil</title>
		<link>http://hexapixel.com/2009/06/16/the-secondary-id/comment-page-1#comment-128</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Thu, 08 Jul 2010 13:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://hexapixel.com/?p=739#comment-128</guid>
		<description>Looks like you&#039;re already being helped here: http://www.eclipse.org/forums/index.php?t=msg&amp;goto=545574&amp; , such long questions are better suited for a forum than here anyway.</description>
		<content:encoded><![CDATA[<p>Looks like you&#8217;re already being helped here: <a href="http://www.eclipse.org/forums/index.php?t=msg&amp;goto=545574&#038;amp" rel="nofollow">http://www.eclipse.org/forums/index.php?t=msg&amp;goto=545574&#038;amp</a>; , such long questions are better suited for a forum than here anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahbubul Syeed</title>
		<link>http://hexapixel.com/2009/06/16/the-secondary-id/comment-page-1#comment-126</link>
		<dc:creator>Mahbubul Syeed</dc:creator>
		<pubDate>Thu, 08 Jul 2010 07:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://hexapixel.com/?p=739#comment-126</guid>
		<description>Hi, 

This article is quite helpful and answers many of my questions. But i have one more problem in hand regarding this seondary id which i am not able to solve. Please put forward some solution to this,

I am creating a RCP application. I need to open multiple instances of the same view but with different data. I did it by setting secondary id for different instances of the same view. Specifically, my problem is as follows: Please take a look,

i have a graph view called &quot;Views.GraphView&quot;. I opened different instances of it from a command called &quot;openGraphView&quot; to show different graphs. the command is as follows:

page.showView(&quot;Views.GraphView&quot;, Integer.toString(instanceNum++), IWorkbenchPage.VIEW_ACTIVATE);

Now, I have a command called &quot;TreeLayout&quot; on this &quot;Views.GraphView&quot; toolbar, which suppose to change the layout of the graph and it will operate on each instace of the view. But for this, i think, i need to identify which instance of the view is active. the &quot;TreeLayout&quot; command looks something like this:

IViewPart findView = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage(). findView( &quot;Views.GraphView&quot;); //i think in the findView i need to give the id of the view [but how can i put the secondary id!!]

GraphView view = (GraphView) findView; view.changeLayout(); //i wrote this method in the graph view to change the layout

//i just tried to print the secondary id, but it did not print anyting System.out.println(&quot;From treelayout command:- &quot; + view.getViewSite().getSecondaryId());

So how can i identify whcih instance of the view is currently active and to operate on it? Please, provide some solution.

Thanks,

-Syeed</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>This article is quite helpful and answers many of my questions. But i have one more problem in hand regarding this seondary id which i am not able to solve. Please put forward some solution to this,</p>
<p>I am creating a RCP application. I need to open multiple instances of the same view but with different data. I did it by setting secondary id for different instances of the same view. Specifically, my problem is as follows: Please take a look,</p>
<p>i have a graph view called &#8220;Views.GraphView&#8221;. I opened different instances of it from a command called &#8220;openGraphView&#8221; to show different graphs. the command is as follows:</p>
<p>page.showView(&#8220;Views.GraphView&#8221;, Integer.toString(instanceNum++), IWorkbenchPage.VIEW_ACTIVATE);</p>
<p>Now, I have a command called &#8220;TreeLayout&#8221; on this &#8220;Views.GraphView&#8221; toolbar, which suppose to change the layout of the graph and it will operate on each instace of the view. But for this, i think, i need to identify which instance of the view is active. the &#8220;TreeLayout&#8221; command looks something like this:</p>
<p>IViewPart findView = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage(). findView( &#8220;Views.GraphView&#8221;); //i think in the findView i need to give the id of the view [but how can i put the secondary id!!]</p>
<p>GraphView view = (GraphView) findView; view.changeLayout(); //i wrote this method in the graph view to change the layout</p>
<p>//i just tried to print the secondary id, but it did not print anyting System.out.println(&#8220;From treelayout command:- &#8221; + view.getViewSite().getSecondaryId());</p>
<p>So how can i identify whcih instance of the view is currently active and to operate on it? Please, provide some solution.</p>
<p>Thanks,</p>
<p>-Syeed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manuel Selva</title>
		<link>http://hexapixel.com/2009/06/16/the-secondary-id/comment-page-1#comment-58</link>
		<dc:creator>Manuel Selva</dc:creator>
		<pubDate>Tue, 16 Jun 2009 09:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://hexapixel.com/?p=739#comment-58</guid>
		<description>Hi,

Nice post. I blogged (http://manuelselva.wordpress.com/2008/05/15/multi-instances-of-a-viewpart/) a while ago about the same subject.

My solution was to use the &quot;Primary view == the one with no secondary ID&quot; to access all the &quot;secondary&quot; views. Nevertheless I will keep in mind your solution for my next multi instances views ..

Manu</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Nice post. I blogged (<a href="http://manuelselva.wordpress.com/2008/05/15/multi-instances-of-a-viewpart/" rel="nofollow">http://manuelselva.wordpress.com/2008/05/15/multi-instances-of-a-viewpart/</a>) a while ago about the same subject.</p>
<p>My solution was to use the &#8220;Primary view == the one with no secondary ID&#8221; to access all the &#8220;secondary&#8221; views. Nevertheless I will keep in mind your solution for my next multi instances views ..</p>
<p>Manu</p>
]]></content:encoded>
	</item>
</channel>
</rss>
