Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Advanced perspective layout(How to define little advanced perspective layout declaratively?)
Advanced perspective layout [message #807560] Sun, 26 February 2012 17:37 Go to next message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

Hello dear forum members,
I would like to ask you to help with setting up little advanced perspective layout. May blog posts and articles are discouraging from hard-coded perspective layout in IPerspectiveFactory.

I would like to achieve this layout:
index.php/fa/7302/0/

But I am getting:
index.php/fa/7301/0/

Here is excerpt of main plugin's plugin.xml:

  
   <extension
         point="org.eclipse.ui.perspectives">
      <perspective
            name="Default perspective"
            class="com.virtage.plexflow.ui.DefaultPerspective"
            id="com.virtage.plexflow.ui.defaultPerspective"
            fixed="false">
      </perspective>
   </extension>

   <extension
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension
            targetID="com.virtage.plexflow.ui.defaultPerspective">
         <view
               closeable="false"
               id="org.eclipse.ui.views.ProgressView"
               minimized="false"
               ratio="0.8"
               relationship="bottom"
               relative="org.eclipse.ui.editorss"
               visible="true">
         </view>
      </perspectiveExtension>
   </extension>


From additonal plugin I am trying to contribute to the left pane:

   <extension
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension
            targetID="com.virtage.plexflow.ui.defaultPerspective">
         <view
               id="com.virtage.plexflow.ui.explorer.PlacesView"
               minimized="false"
               ratio="0.25"
               relationship="left"
               relative="org.eclipse.ui.editorss">
         </view>
      </perspectiveExtension>
   </extension>


Please, how to define <perspectiveExtensions> and <view> to create what is figured on second image?

Thanks.
Libor

[Updated on: Sun, 26 February 2012 17:40]

Report message to a moderator

Re: Advanced perspective layout [message #808443 is a reply to message #807560] Mon, 27 February 2012 19:52 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I would advise you to create your perspective in your IPerspectiveFactory. Add and position what you want to include in your main perspective correctly.

perspectiveExtensions is for views coming from secondary plugins so they can position themselves correctly in an existing perspective.

PW


Previous Topic:how to load external xml file without using eclipse registry
Next Topic:Key binding for simple action
Goto Forum:
  


Current Time: Sat Nov 28 17:57:56 GMT 2020

Powered by FUDForum. Page generated in 0.01459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top