Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » perspectiveExtension - how order provided views
perspectiveExtension - how order provided views [message #531051] Mon, 03 May 2010 14:19 Go to next message
Mircea Banu is currently offline Mircea BanuFriend
Messages: 2
Registered: May 2010
Junior Member
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 14:59 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 05:52 Go to previous messageGo to next message
Mircea Banu is currently offline Mircea BanuFriend
Messages: 2
Registered: May 2010
Junior Member
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 12:25 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Thu Dec 18 23:08:56 GMT 2014

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

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