Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [imp-dev] LanguageActionsContributor stuff needs committing


This also seems in keeping with the idea that IMP should provide default implementations of services.

Stan



"Jurgen Vinju" <Jurgen.Vinju@xxxxxx>
Sent by: imp-dev-bounces@xxxxxxxxxxx

06/11/2008 10:13 AM

Please respond to
IMP Developers List <imp-dev@xxxxxxxxxxx>

To
"IMP Developers List" <imp-dev@xxxxxxxxxxx>
cc
Subject
Re: [imp-dev] LanguageActionsContributor stuff needs committing





The Default implementation is an empty one, because you can choose not
to add stuff
to the toolbar, but add stuff to the menubar. So, instead of having an
extension for every
kind of addition, the additions are grouped into one Contributor
interface. I copied this
design from Eclipse. It's like a listener interface with lot's of
methods you don't need to implement,
so there is a default empty one.

I.o.w. they can just implement the relevant interface, extending the
Default one is just more convenient.

Cheers,

Jurgen

On Wed, Jun 11, 2008 at 3:42 PM, Robert M. Fuhrer
<rfuhrer@xxxxxxxxxxxxxx> wrote:
> It certainly looks a tad suspicious that implementations can't just
> implement
> the relevant interface. Is there a good reason for this?
>
> On Jun 11, 2008, at 5:52 AM, Jurgen Vinju wrote:
>
>> Hi guys,
>>
>> I'm dying to commit my code to imp.runtime. Can I do that today?
>> People here really want to use the new features.
>>
>> Remember, after the commit all implementations of
>> ILanguageActionContributor will break in a small way, they can be
>> fixed by changing:
>>  "implements ILanguageActionContributor" to "extends
>> DefaultLanguageActionContributor".
>>
>> Cheers,
>>
>> Jurgen
>> _______________________________________________
>> imp-dev mailing list
>> imp-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/imp-dev
>
> Cheers,
>  - Bob
>
> _______________________________________________
> imp-dev mailing list
> imp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/imp-dev
>
_______________________________________________
imp-dev mailing list
imp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/imp-dev


Back to the top