Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Removing from an extension point
Removing from an extension point [message #34251] Wed, 21 January 2004 14:11 Go to next message
Peter Kriens is currently offline Peter KriensFriend
Messages: 5
Registered: July 2009
Junior Member
I have implemented an OSGi view with a plugin. To be a good guy, I need to
withdraw my view from the org.eclipse.ui.perspectiveExtensions extenstion
point and close an active view.

I can't find a way how to do this and it is not (as could be) done
automatically when my bundle stops?

Kind regards,

Peter Kriens
Re: Removing from an extension point [message #34390 is a reply to message #34251] Thu, 22 January 2004 02:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_mcaffer_REMOVE.ca.ibm.com

First thing to note here is that the support for updating the view registry
etc was added last week. If you are using M6, it does not have that
support. Best bet is to get I0121 (today's integration build) and use that.
There are still missing bits of updating but most stuff works.

The second thing to note is that extensions and extension points exist
independent of bundle ACTIVE/STOPPED states. The are picked up/discarded
when a bundle becomes RESOLVED/UNINSTALLED. So, stopping your bundle does
not make your extension go away. However, it is an interesting point,
stopping a bundle that supplies a view likely should make the view get
disposed.

Entered bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=50367
to track this. It may already work as desired.

Jeff


"Peter Kriens" <Peter.Kriens@aQute.biz> wrote in message
news:bum1aj$pku$1@eclipse.org...
> I have implemented an OSGi view with a plugin. To be a good guy, I need to
> withdraw my view from the org.eclipse.ui.perspectiveExtensions extenstion
> point and close an active view.
>
> I can't find a way how to do this and it is not (as could be) done
> automatically when my bundle stops?
>
> Kind regards,
>
> Peter Kriens
>
Re: Removing from an extension point [message #34456 is a reply to message #34390] Thu, 22 January 2004 17:13 Go to previous message
Kevin Duffey is currently offline Kevin DuffeyFriend
Messages: 304
Registered: July 2009
Senior Member
Is there any notification to extension plugins when an extension point is
added? Meaning, if my plugin provides an extension point, and it is loaded,
say at some point later, after several plugins with extensions to my plugin
are already loaded, how is that handled? Is there an internal que that once
my extension point loads it gets flooded with "added extension"
notifications? Or does my extension point send out "extension point is
available" type of notifications to all extensions waiting for my extension
point?

"Jeff McAffer" <jeff_mcaffer_REMOVE@ca.ibm.com> wrote in message
news:bundfo$htr$1@eclipse.org...
> First thing to note here is that the support for updating the view
registry
> etc was added last week. If you are using M6, it does not have that
> support. Best bet is to get I0121 (today's integration build) and use
that.
> There are still missing bits of updating but most stuff works.
>
> The second thing to note is that extensions and extension points exist
> independent of bundle ACTIVE/STOPPED states. The are picked up/discarded
> when a bundle becomes RESOLVED/UNINSTALLED. So, stopping your bundle does
> not make your extension go away. However, it is an interesting point,
> stopping a bundle that supplies a view likely should make the view get
> disposed.
>
> Entered bug
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=50367
> to track this. It may already work as desired.
>
> Jeff
>
>
> "Peter Kriens" <Peter.Kriens@aQute.biz> wrote in message
> news:bum1aj$pku$1@eclipse.org...
> > I have implemented an OSGi view with a plugin. To be a good guy, I need
to
> > withdraw my view from the org.eclipse.ui.perspectiveExtensions
extenstion
> > point and close an active view.
> >
> > I can't find a way how to do this and it is not (as could be) done
> > automatically when my bundle stops?
> >
> > Kind regards,
> >
> > Peter Kriens
> >
>
>
Previous Topic:How To Deploy
Next Topic:OSGi and Eclipse Bundle Manifests Revisited
Goto Forum:
  


Current Time: Tue May 07 12:21:07 GMT 2024

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

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

Back to the top