Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Extension Point question
Extension Point question [message #312209] Fri, 02 February 2007 15:58 Go to next message
Eclipse UserFriend
Originally posted by: vb.prismtech.com

Hi,
I have declared an extension point in my plugin. In the schema (.exsd) file,
I specify an Interface that the
user of the extension point must implement.

I use this extension point from another plugin - and instead of implementing
the interface specified in the (.exsd),
i used some other interface ( by mistake ). But no error was thrown at
runtime. The class specified in the extension
point loaded even though it implemented some other interface . Am i missing
something or is the schema file never checked
at runtime. How can such a check be enforced ?

Thanks
Re: Extension Point question [message #312213 is a reply to message #312209] Fri, 02 February 2007 17:38 Go to previous messageGo to next message
Eclipse UserFriend
You can do something similar the following:
Interface yourObject = (Interface)
configurationElement.createExecutableExtension("YOUR_CLASS_ATTRIBUTE ");

or

Object yourObject =
configurationElement.createExecutableExtension("YOUR_CLASS_ATTRIBUTE ");
if (object instanceof Interface)
....

Snjeza



Vikram wrote:
> Hi,
> I have declared an extension point in my plugin. In the schema (.exsd) file,
> I specify an Interface that the
> user of the extension point must implement.
>
> I use this extension point from another plugin - and instead of implementing
> the interface specified in the (.exsd),
> i used some other interface ( by mistake ). But no error was thrown at
> runtime. The class specified in the extension
> point loaded even though it implemented some other interface . Am i missing
> something or is the schema file never checked
> at runtime. How can such a check be enforced ?
>
> Thanks
>
>
Light bulb and error markers overlapping [message #312478 is a reply to message #312209] Mon, 12 February 2007 07:34 Go to previous messageGo to next message
Eclipse UserFriend
I remember changing a preference that made the light bulb and other
markers to the left of the line numbers in editors collapse into one. I
have to point at them for a second or two before they open so that I can
select one of them.

I can't remember how to change this back to the default. I looked
through the preferences with no luck. Any ideas?


Thanks,
Shahim
Re: Light bulb and error markers overlapping [message #312479 is a reply to message #312478] Mon, 12 February 2007 07:45 Go to previous message
Eclipse UserFriend
Posted at the wrong place, sorry.

Shahim wrote:
>
> I remember changing a preference that made the light bulb and other
> markers to the left of the line numbers in editors collapse into one. I
> have to point at them for a second or two before they open so that I can
> select one of them.
>
> I can't remember how to change this back to the default. I looked
> through the preferences with no luck. Any ideas?
>
>
> Thanks,
> Shahim
Previous Topic:How do I get breakpoints to show in the ruler
Next Topic:Obsolete editor type hanging around
Goto Forum:
  


Current Time: Thu Jul 17 19:53:56 EDT 2025

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

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

Back to the top