Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Extending the OSGI Console with your own commands?
Extending the OSGI Console with your own commands? [message #46874] Thu, 24 February 2005 16:40 Go to next message
Bob Balfe is currently offline Bob BalfeFriend
Messages: 17
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_009D_01C51A65.AA8B4480
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Looking at the internal code it looks like there is an open object model =
to do this but there doesn't appear to be an extension point or access =
to the underlying OSGI console object.=20

Is anyone aware if this is possible in 3.0.x or 3.1?

--=20
Bob
------=_NextPart_000_009D_01C51A65.AA8B4480
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1479" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Looking at the internal code it looks =
like there is=20
an open object model to do this but there doesn't appear to be an =
extension=20
point or access to the underlying OSGI console object. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is anyone aware if this is possible in =
3.0.x or=20
3.1?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>-- =
<BR>Bob</FONT></DIV></BODY></HTML>

------=_NextPart_000_009D_01C51A65.AA8B4480--
Re: Extending the OSGI Console with your own commands? [message #46911 is a reply to message #46874] Thu, 24 February 2005 18:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaves.inf.no.ufsc.spam.br

Extension points are a runtime thing, the OSGi framework does/cannot not
use the concept. You can provide your own command provider by
registering it as an OSGi service. See EclipseCommandProvider as an
example (adds a few commands).

Rafael

Bob Balfe wrote:
>
> Looking at the internal code it looks like there is an open object model
> to do this but there doesn't appear to be an extension point or access
> to the underlying OSGI console object.
>
> Is anyone aware if this is possible in 3.0.x or 3.1?
>
> --
> Bob
Re: Extending the OSGI Console with your own commands? [message #46941 is a reply to message #46911] Thu, 24 February 2005 18:08 Go to previous messageGo to next message
Bob Balfe is currently offline Bob BalfeFriend
Messages: 17
Registered: July 2009
Junior Member
Thanks for the response.

> Extension points are a runtime thing, the OSGi framework does/cannot not
> use the concept. You can provide your own command provider by
> registering it as an OSGi service. See EclipseCommandProvider as an
> example (adds a few commands).

I did find that but I can not seem to locate how that class is instantiated
or invoked. Would you happen to know that?

--
Bob
IBM Software Group
Workplace Client Technology Platform, Rich Edition
Re: Extending the OSGI Console with your own commands? [message #46970 is a reply to message #46941] Thu, 24 February 2005 19:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaves.inf.no.ufsc.spam.br

EclipseAdaptor instantiates and requests its registration (just look for
references to EclipseCommandProvider). Oh right, there is this
issue... services are registered programatically, so your command
provider can only be registered when/if your plug-in is activated.

To register a service programatically, see BundleContext#registerService.

Rafael

Bob Balfe wrote:
> Thanks for the response.
>
>
>>Extension points are a runtime thing, the OSGi framework does/cannot not
>> use the concept. You can provide your own command provider by
>>registering it as an OSGi service. See EclipseCommandProvider as an
>>example (adds a few commands).
>
>
> I did find that but I can not seem to locate how that class is instantiated
> or invoked. Would you happen to know that?
>
Re: Extending the OSGI Console with your own commands? [message #46996 is a reply to message #46970] Thu, 24 February 2005 19:40 Go to previous messageGo to next message
Bob Balfe is currently offline Bob BalfeFriend
Messages: 17
Registered: July 2009
Junior Member
Excellent, thanks Rafael.

--
Bob
IBM Software Group
Workplace Client Technology Platform, Rich Edition
"Rafael Chaves" <chaves@inf.no.ufsc.spam.br> wrote in message
news:cvl9sd$8kg$1@www.eclipse.org...
> EclipseAdaptor instantiates and requests its registration (just look for
> references to EclipseCommandProvider). Oh right, there is this
> issue... services are registered programatically, so your command
> provider can only be registered when/if your plug-in is activated.
>
> To register a service programatically, see BundleContext#registerService.
>
> Rafael
>
> Bob Balfe wrote:
> > Thanks for the response.
> >
> >
> >>Extension points are a runtime thing, the OSGi framework does/cannot not
> >> use the concept. You can provide your own command provider by
> >>registering it as an OSGi service. See EclipseCommandProvider as an
> >>example (adds a few commands).
> >
> >
> > I did find that but I can not seem to locate how that class is
instantiated
> > or invoked. Would you happen to know that?
> >
Re: Extending the OSGI Console with your own commands? [message #47027 is a reply to message #46970] Thu, 24 February 2005 20:57 Go to previous messageGo to next message
Bob Balfe is currently offline Bob BalfeFriend
Messages: 17
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0110_01C51A89.7AFD4EB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ok, in order to get that to work (which it does work doing this) you =
have to export the "org.eclipse.osgi.framework.console" package in the =
org.eclipse.osgi manifest file.

Is this a bug? I would think since these packages are public and the =
object model seems to be very open (which BTW is great) that this would =
be available to use.

--=20
Bob
IBM Software Group
Workplace Client Technology Platform, Rich Edition


"Rafael Chaves" <chaves@inf.no.ufsc.spam.br> wrote in message =
news:cvl9sd$8kg$1@www.eclipse.org...
> EclipseAdaptor instantiates and requests its registration (just look =
for=20
> references to EclipseCommandProvider). Oh right, there is this=20
> issue... services are registered programatically, so your command=20
> provider can only be registered when/if your plug-in is activated.
>=20
> To register a service programatically, see =
BundleContext#registerService.
>=20
> Rafael
>=20
> Bob Balfe wrote:
> > Thanks for the response.
> >=20
> >=20
> >>Extension points are a runtime thing, the OSGi framework does/cannot =
not
> >> use the concept. You can provide your own command provider by
> >>registering it as an OSGi service. See EclipseCommandProvider as an
> >>example (adds a few commands).
> >=20
> >=20
> > I did find that but I can not seem to locate how that class is =
instantiated
> > or invoked. Would you happen to know that?
> >
------=_NextPart_000_0110_01C51A89.7AFD4EB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1479" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Ok, in order to get that to work (which =
it does=20
work doing this) you have to export the =
"org.eclipse.osgi.framework.console"=20
package in the org.eclipse.osgi manifest file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is this a bug?&nbsp; I would think =
since these=20
packages are public and the object model seems to be very open (which =
BTW is=20
great) that this would be available to use.</FONT></DIV><FONT =
face=3DArial=20
size=3D2></FONT>
<DIV><BR><FONT face=3DArial size=3D2>-- <BR>Bob<BR>IBM Software =
Group<BR>Workplace=20
Client Technology Platform, Rich Edition</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Rafael Chaves" &lt;</FONT><A=20
href=3D"mailto:chaves@inf.no.ufsc.spam.br"><FONT face=3DArial=20
size=3D2>chaves@inf.no.ufsc.spam.br</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message </FONT><A href=3D"news:cvl9sd$8kg$1@www.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:cvl9sd$8kg$1@www.eclipse.org</FONT></A><FONT face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; EclipseAdaptor =
instantiates=20
and requests its registration (just look for <BR>&gt; &nbsp; references =
to=20
EclipseCommandProvider). Oh right, there is this <BR>&gt; issue... =
services are=20
registered programatically, so your command <BR>&gt; provider can only =
be=20
registered when/if your plug-in is activated.<BR>&gt; <BR>&gt; To =
register a=20
service programatically, see BundleContext#registerService.<BR>&gt; =
<BR>&gt;=20
Rafael<BR>&gt; <BR>&gt; Bob Balfe wrote:<BR>&gt; &gt; Thanks for the=20
response.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt;&gt;Extension points =
are a=20
runtime thing, the OSGi framework does/cannot not<BR>&gt; &gt;&gt;&nbsp; =
use the=20
concept. You can provide your own command provider by<BR>&gt;=20
&gt;&gt;registering it as an OSGi service. See EclipseCommandProvider as =

an<BR>&gt; &gt;&gt;example (adds a few commands).<BR>&gt; &gt; <BR>&gt; =
&gt;=20
<BR>&gt; &gt; I did find that but I can not seem to locate how that =
class is=20
instantiated<BR>&gt; &gt; or invoked.&nbsp; Would you happen to know=20
that?<BR>&gt; &gt;</FONT></BODY></HTML>

------=_NextPart_000_0110_01C51A89.7AFD4EB0--
Re: Extending the OSGI Console with your own commands? [message #47057 is a reply to message #47027] Thu, 24 February 2005 21:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaves.inf.no.ufsc.spam.br

Oops... missed that...

Bob, could you open an enhancement request against Platform/Runtime
asking to have org.eclipse.osgi.framework.console exported? Even though
its design seems to be well thought, it is intended for internal use,
and forcing it to follow Eclipse API rules is a strong commitment, so it
may not be as simple as just adding another exported package to the
bundle manifest.

Thanks.

Rafael

Bob Balfe wrote:
> Ok, in order to get that to work (which it does work doing this) you
> have to export the "org.eclipse.osgi.framework.console" package in the
> org.eclipse.osgi manifest file.
>
> Is this a bug? I would think since these packages are public and the
> object model seems to be very open (which BTW is great) that this would
> be available to use.
>
> --
> Bob
> IBM Software Group
> Workplace Client Technology Platform, Rich Edition
>
>
> "Rafael Chaves" <chaves@inf.no.ufsc.spam.br
> <mailto:chaves@inf.no.ufsc.spam.br>> wrote in message
> news:cvl9sd$8kg$1@www.eclipse.org...
> > EclipseAdaptor instantiates and requests its registration (just look for
> > references to EclipseCommandProvider). Oh right, there is this
> > issue... services are registered programatically, so your command
> > provider can only be registered when/if your plug-in is activated.
> >
> > To register a service programatically, see BundleContext#registerService.
> >
> > Rafael
> >
> > Bob Balfe wrote:
> > > Thanks for the response.
> > >
> > >
> > >>Extension points are a runtime thing, the OSGi framework
> does/cannot not
> > >> use the concept. You can provide your own command provider by
> > >>registering it as an OSGi service. See EclipseCommandProvider as an
> > >>example (adds a few commands).
> > >
> > >
> > > I did find that but I can not seem to locate how that class is
> instantiated
> > > or invoked. Would you happen to know that?
> > >
Re: Extending the OSGI Console with your own commands? [message #47086 is a reply to message #47057] Fri, 25 February 2005 21:17 Go to previous message
Eclipse UserFriend
Originally posted by: chaves.inf.no.ufsc.spam.br

Never mind, just did it:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=86701

Rafael Chaves wrote:
> Bob, could you open an enhancement request against Platform/Runtime
> asking to have org.eclipse.osgi.framework.console exported?
Previous Topic:OSGI Services
Next Topic:Problem with split packages
Goto Forum:
  


Current Time: Fri Dec 27 01:38:26 GMT 2024

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

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

Back to the top