<?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: Perspective Layouts &#8211; Programmatic vs Declarative</title>
	<atom:link href="http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/</link>
	<description>Eclipse RCP and OSGi training - online or onsite</description>
	<lastBuildDate>Fri, 03 Feb 2012 15:37:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jits</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-9400</link>
		<dc:creator>Jits</dc:creator>
		<pubDate>Tue, 22 Jun 2010 09:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-9400</guid>
		<description>Hi Patrick,

Thanks for pointing the Selection Service out. Linking views together is exactly what we need (and is essential to providing a rich user experience).

We&#039;ve been tracking the development of e4, which sounds very exciting! But as you say, it&#039;s still early days and we probably won&#039;t be adopting it just yet (though we are using it for some prototyping etc).

All the best,

Jits</description>
		<content:encoded><![CDATA[<p>Hi Patrick,</p>
<p>Thanks for pointing the Selection Service out. Linking views together is exactly what we need (and is essential to providing a rich user experience).</p>
<p>We&#8217;ve been tracking the development of e4, which sounds very exciting! But as you say, it&#8217;s still early days and we probably won&#8217;t be adopting it just yet (though we are using it for some prototyping etc).</p>
<p>All the best,</p>
<p>Jits</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-9325</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Fri, 18 Jun 2010 19:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-9325</guid>
		<description>Hi Jits,

You&#039;re right that the RCP way would be to have single instances of each view displaying the current selection (probably the editor that has focus). There is a Selection Service in RCP that facilitates this type of communication.

I don&#039;t know that you can really achieve the UI structure you describe using RCP. RCP is great if your application fits into it&#039;s UI model (workbench with perspectives containing editors and views). You could look at the work being done in e4 which is going to be released I think in July. e4, or the Eclipse SDK 4.0 allows for much more flexibility in the way a UI is structured. But to be honest, the new 4.0 framework might be a bit rough around the edges for mission-critical development, but depending on your needs it might be a good starting point.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Jits,</p>
<p>You&#8217;re right that the RCP way would be to have single instances of each view displaying the current selection (probably the editor that has focus). There is a Selection Service in RCP that facilitates this type of communication.</p>
<p>I don&#8217;t know that you can really achieve the UI structure you describe using RCP. RCP is great if your application fits into it&#8217;s UI model (workbench with perspectives containing editors and views). You could look at the work being done in e4 which is going to be released I think in July. e4, or the Eclipse SDK 4.0 allows for much more flexibility in the way a UI is structured. But to be honest, the new 4.0 framework might be a bit rough around the edges for mission-critical development, but depending on your needs it might be a good starting point.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jits</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-9295</link>
		<dc:creator>Jits</dc:creator>
		<pubDate>Thu, 17 Jun 2010 12:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-9295</guid>
		<description>Hi Patrick,

Thanks for the response. My question reveals my naiveté when it comes to Eclipse RCP :-) You&#039;ve mentioned some very useful info. Let me also try a different explanation...

We&#039;re building an RCP app whereby a user can open and work with many files at once, but not in the same way users would do so right now in the Eclipse IDE (for example) - we don&#039;t intend to show a file browser and we would like each open file to have one corresponding tab at the highest level possible in the UI (think Chrome/Chromium). This tab then has it&#039;s own things (views?) within it that presents a complex UI to work with the file (things like editors, palettes, consoles, etc). Each tab would maintain it&#039;s own instances of it&#039;s internal UI bits and it&#039;s own state, completely independent of the other tabs.

But now I think I may approaching this with the wrong concepts in mind; I didn&#039;t fully grasp that I couldn&#039;t add a view inside another view, so thanks for pointing that out. I guess I need to separate out the notions of &quot;a reusable UI bit&quot; vs. &quot;an Eclipse View&quot;.

It seems to me that the Eclipse RCP way of doing things would be to have common views within a perspective, that then change depending on what object is currently &quot;selected&quot;. Is this correct?

Thanks,
Jits</description>
		<content:encoded><![CDATA[<p>Hi Patrick,</p>
<p>Thanks for the response. My question reveals my naiveté when it comes to Eclipse RCP :-) You&#8217;ve mentioned some very useful info. Let me also try a different explanation&#8230;</p>
<p>We&#8217;re building an RCP app whereby a user can open and work with many files at once, but not in the same way users would do so right now in the Eclipse IDE (for example) &#8211; we don&#8217;t intend to show a file browser and we would like each open file to have one corresponding tab at the highest level possible in the UI (think Chrome/Chromium). This tab then has it&#8217;s own things (views?) within it that presents a complex UI to work with the file (things like editors, palettes, consoles, etc). Each tab would maintain it&#8217;s own instances of it&#8217;s internal UI bits and it&#8217;s own state, completely independent of the other tabs.</p>
<p>But now I think I may approaching this with the wrong concepts in mind; I didn&#8217;t fully grasp that I couldn&#8217;t add a view inside another view, so thanks for pointing that out. I guess I need to separate out the notions of &#8220;a reusable UI bit&#8221; vs. &#8220;an Eclipse View&#8221;.</p>
<p>It seems to me that the Eclipse RCP way of doing things would be to have common views within a perspective, that then change depending on what object is currently &#8220;selected&#8221;. Is this correct?</p>
<p>Thanks,<br />
Jits</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-9285</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 16 Jun 2010 22:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-9285</guid>
		<description>Hi Jits,

I might not sure I&#039;m clear on what you&#039;re trying to do. Are you asking if you can declaratively place a view inside of another view? This isn&#039;t currently possible either programmatically or declaratively using RCP. 

Or if this is about adding multiple views in the same tab group, you can do this by adding a view relative to an existing tabbed view with a &quot;stack&quot;  relationship.

Let me know if I&#039;m close to helping :-) Or maybe rephrase the question.

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Jits,</p>
<p>I might not sure I&#8217;m clear on what you&#8217;re trying to do. Are you asking if you can declaratively place a view inside of another view? This isn&#8217;t currently possible either programmatically or declaratively using RCP. </p>
<p>Or if this is about adding multiple views in the same tab group, you can do this by adding a view relative to an existing tabbed view with a &#8220;stack&#8221;  relationship.</p>
<p>Let me know if I&#8217;m close to helping :-) Or maybe rephrase the question.</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jits</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-9280</link>
		<dc:creator>Jits</dc:creator>
		<pubDate>Wed, 16 Jun 2010 15:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-9280</guid>
		<description>Hi,

Whilst I agree that declaratively building layouts for perspectives makes things much more modular and extensible, it seems a bit of an incomplete solution if I can&#039;t do the same for views within the perspective.

I hope I am missing something here, but is it possible to build something like this declaratively in Eclipse RCP:

Perspective A &gt;&gt; View A (tabs container) &gt;&gt; Instances of View B (multiple tabs which are separate instances of the same View class) &gt;&gt; views/layout within the Tab View B

(where the &#039;&gt;&gt;&#039; indicates that I want a hierarchical/containment relationship).

It seems at the moment that I can use a perspectiveExtension to add View A to Perspective A, but then I am left to programmatically build the rest. Is this true?

Thanks in advance for any help.

Jits</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Whilst I agree that declaratively building layouts for perspectives makes things much more modular and extensible, it seems a bit of an incomplete solution if I can&#8217;t do the same for views within the perspective.</p>
<p>I hope I am missing something here, but is it possible to build something like this declaratively in Eclipse RCP:</p>
<p>Perspective A &gt;&gt; View A (tabs container) &gt;&gt; Instances of View B (multiple tabs which are separate instances of the same View class) &gt;&gt; views/layout within the Tab View B</p>
<p>(where the &#8216;&gt;&gt;&#8217; indicates that I want a hierarchical/containment relationship).</p>
<p>It seems at the moment that I can use a perspectiveExtension to add View A to Perspective A, but then I am left to programmatically build the rest. Is this true?</p>
<p>Thanks in advance for any help.</p>
<p>Jits</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tsoueid</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-3601</link>
		<dc:creator>tsoueid</dc:creator>
		<pubDate>Fri, 04 Dec 2009 23:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-3601</guid>
		<description>Hi, many thanks for the tip, it works well.</description>
		<content:encoded><![CDATA[<p>Hi, many thanks for the tip, it works well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-3590</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Fri, 04 Dec 2009 20:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-3590</guid>
		<description>Hi tsoueid,

You need to add a secondary id to your views when you add them in the perspectiveExtension. Instead of &quot;myview.id&quot;, enter &quot;myview.id:1&quot; and &quot;myview.id:2&quot;.

Hope this helps,

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi tsoueid,</p>
<p>You need to add a secondary id to your views when you add them in the perspectiveExtension. Instead of &#8220;myview.id&#8221;, enter &#8220;myview.id:1&#8243; and &#8220;myview.id:2&#8243;.</p>
<p>Hope this helps,</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tsoueid</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-3560</link>
		<dc:creator>tsoueid</dc:creator>
		<pubDate>Fri, 04 Dec 2009 00:12:11 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-3560</guid>
		<description>Hello,

I am struggling to add two instances of the *same* view (which has allowMultiple=true) to the same perspectiveExtension: only one view is showing.

Do you have an idea if this achieveable?

Thanks</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am struggling to add two instances of the *same* view (which has allowMultiple=true) to the same perspectiveExtension: only one view is showing.</p>
<p>Do you have an idea if this achieveable?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-624</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 04 May 2009 21:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-624</guid>
		<description>Hi Lars,

I agree about the template and voted for the Bugzilla entry. Thanks for doing this!

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Lars,</p>
<p>I agree about the template and voted for the Bugzilla entry. Thanks for doing this!</p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Vogel</title>
		<link>http://www.modumind.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/comment-page-1/#comment-623</link>
		<dc:creator>Lars Vogel</dc:creator>
		<pubDate>Mon, 04 May 2009 20:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://rcpquickstart.com/?p=303#comment-623</guid>
		<description>Hi Patrick,

I agree that the declarative approach is the preferable.

I adjusted therefore my Eclipse RCP tutorial (http://www.vogella.de/articles/RichClientPlatform/article.html) so that it first demonstrates the usage of perspective extension and then afterwards demonstrates the usage of code.

I believe it is tempting to stick with the things you first learn. As the Eclipse view RCP template uses code to stick the view to the perspective most of the people stay with this approach. A Bug report is open for this https://bugs.eclipse.org/bugs/show_bug.cgi?id=265231

Best regards, Lars</description>
		<content:encoded><![CDATA[<p>Hi Patrick,</p>
<p>I agree that the declarative approach is the preferable.</p>
<p>I adjusted therefore my Eclipse RCP tutorial (<a href="http://www.vogella.de/articles/RichClientPlatform/article.html" rel="nofollow">http://www.vogella.de/articles/RichClientPlatform/article.html</a>) so that it first demonstrates the usage of perspective extension and then afterwards demonstrates the usage of code.</p>
<p>I believe it is tempting to stick with the things you first learn. As the Eclipse view RCP template uses code to stick the view to the perspective most of the people stay with this approach. A Bug report is open for this <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=265231" rel="nofollow">https://bugs.eclipse.org/bugs/show_bug.cgi?id=265231</a></p>
<p>Best regards, Lars</p>
]]></content:encoded>
	</item>
</channel>
</rss>

