Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Extend existing extension point
Extend existing extension point [message #635241] Tue, 26 October 2010 07:27 Go to next message
Jason is currently offline JasonFriend
Messages: 2
Registered: October 2010
Junior Member
Hi,

is it possible to extend an existing extenstion point (org.eclipse.ui.perspectives)? Of course I could write a new one but how gonna tell I my RCP application to handle it as perspective extension point?

Jason
Re: Extend existing extension point [message #635262 is a reply to message #635241] Tue, 26 October 2010 07:53 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 26.10.2010 09:27, jasda@web.de wrote:
> is it possible to extend an existing extenstion point
> (org.eclipse.ui.perspectives)? Of course I could write a new one but
> how gonna tell I my RCP application to handle it as perspective
> extension point?

I'm not sure what you mean with this: There is no portable way to
replace the way an existing extension point will be evaluated unless
it is your own code.

It is perfectly possible to re-parse any existing extension point when
you know the ID and do something with the outcome of this processing,
but I would not consider this as an "extension" of an existing extension
point, though.

What do you want to realize? Why do you not provide your own extension
point?

HTH & Greetings from Bremen,

Daniel Krügler
Re: Extend existing extension point [message #635273 is a reply to message #635241] Tue, 26 October 2010 08:58 Go to previous message
Jason is currently offline JasonFriend
Messages: 2
Registered: October 2010
Junior Member
Unfortunately in Eclipse the editor area is not bound to perspectives, but in our application it is still necessary. When the perspective is changed a new or existing editor should be shown.

So far I've implements a perspective change listener:
			@Override
			public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) 
			{
					
					IEditorReference[] editors = page.getEditorReferences();
					if (editors != null)
					{
						for (int i=0; i<editors.length; i++)
						{
							if (!editors[i].getId().equals(perspective.getAttributes().get("editorId"))
								page.hideEditor(editors[i]);
						}
					}
		}); 


At this point it would be nice to be able to get the editor id that is was bound to the perspective in its extension point.
Previous Topic:License of an Eclipse RCP application?
Next Topic:sticky view
Goto Forum:
  


Current Time: Wed Dec 04 03:10:26 GMT 2024

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

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

Back to the top