Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse RCP - relative field of view perspective extension not working
    text
    copied!<p>Greetings fellow Stackoverflownians,</p> <p>Currently developing an Eclipse RCP app.</p> <p>I'm trying to make a view appear in the right place when the perspective is reset.</p> <p>In my plugin.xml:</p> <pre><code>&lt;perspectiveExtension targetID="the.perspective.id"&gt; &lt;view id="the.first.view.id" relationship="stack" relative="org.eclipse.ui.navigator.ProjectExplorer" visible="false"&gt; &lt;/view&gt; &lt;view id="the.second.view.id" relationship="left" relative="org.eclipse.ui.navigator.ProjectExplorer" visible="true"&gt; &lt;/view&gt; &lt;/perspectiveExtension&gt; </code></pre> <p>Where the first and second views are declared in the views extension point.</p> <p>As per <a href="http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_advext_perspectiveExtension.htm" rel="nofollow">eclipse.org</a>:</p> <blockquote> <p><strong>stack</strong> indicates that the view will be stacked with the relative view in a folder</p> </blockquote> <p>The issue is that when I reset the perspective, I get the view in a separate place (more exactly, to the right) occupying ~50% of the workbench.</p> <p>Should the ProjectExplorer view be declared once more in my plugin.xml, so that the <code>stack</code> value of the <code>relative</code> field would work?</p> <p>EDIT: I've looked in another plugin project</p> <pre><code>&lt;view id="org.eclipse.search.ui.views.SearchView" minimized="false" relationship="stack" relative="dreisoft.tresos.launcher2.api.views.ErrorLog" visible="false"&gt; &lt;/view&gt; </code></pre> <p>This seems to work, and I've looked in the <code>IPerspectiveFactory</code>, and the <code>createInitialLayout</code> is empty. Despite that, this works.</p> <p>Respectfully yours,</p> <p>Vlad</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload