Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » perspectiveExtension - how order provided views
perspectiveExtension - how order provided views [message #531051] Mon, 03 May 2010 10:19 Go to next message
Eclipse UserFriend
Hello,

I have this configuration of several plug ins, lets say A, B, C and D. A is declaring a perspective with a folder layout with a view. B, C, D are all providing their own views into that perspective via the perspectiveExtension EP.

I need a way to specify the order of the views provided by B, C and D relative to each oder. It does not work with the "relative" attribute because the view to which you relate has to be already in the folder...

Any ideas about a workaround? Setting placeholders on the folder layout does not seem to work either...

I could create several EP similar to the perspectiveExtension to provide the view ID-s and add the views manually based on the EP on which they are attached. But I would still want to allow other plugins to attach views via the perspectiveExtension EP... before my views in B, C and D....




Re: perspectiveExtension - how order provided views [message #531065 is a reply to message #531051] Mon, 03 May 2010 10:59 Go to previous messageGo to next message
Eclipse UserFriend
For any set of perspectiveExtensions they 1) can only be relative to a
view that is guaranteed to be there and 2) will be processed in a
non-deterministic order.

If you know that your views will be available from your main plugin,
then you can use placeholders (instead of perspective extensions) to
order them ... but placeholders aren't opened, they're just available.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Re: perspectiveExtension - how order provided views [message #531176 is a reply to message #531065] Tue, 04 May 2010 01:52 Go to previous messageGo to next message
Eclipse UserFriend
But the placeholder does not seem to be working... I set a placeholder like "com.etc.apple*" and I would expect any view with an id matching that to go in that position... but this is ignored completely...
Re: perspectiveExtension - how order provided views [message #531280 is a reply to message #531176] Tue, 04 May 2010 08:25 Go to previous message
Eclipse UserFriend
Mircea Banu wrote:
> But the placeholder does not seem to be working... I set a placeholder
> like "com.etc.apple*" and I would expect any view with an id matching
> that to go in that position... but this is ignored completely...

If you create a placeholder, and then use Window>Show View>Your View it
will open in the placeholder.

Did you remove your perspective extensions "you can use placeholders
(instead of perspective extensions)"?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:Update site unusable because of wrong password entered...
Next Topic:Toggling selection effect to the list component
Goto Forum:
  


Current Time: Sun Jul 27 11:24:11 EDT 2025

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

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

Back to the top