Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Extension versus dynamic
Extension versus dynamic [message #204874] Sat, 14 April 2007 17:07 Go to next message
J. Michael Dean, M.D. is currently offline J. Michael Dean, M.D.Friend
Messages: 218
Registered: July 2009
Senior Member
Re-reading through Gamma and Beck's Contributing to Eclipse (a little out of
date but gold mine of information) and they introduce extension points to
substitute for add and remove listener approach to their initial plugin
sample. Usual reasons of "this is how you let others extend your plugin..."

My question is in an open source situation, where you allow many people to
inspect your code, does this approach not obfuscate how a program works? In
my current code, I have only three or four major property changes relating
to my own business objects, and a number of my viewers, etc. listen for
these changes. The code, written in Java, makes all the connections
explicit and obvious. I am now looking at following the advice of G&B and
the question in my mind is whether this will make the code incomprehensible
to other Java programmers who are trying to understand it.

Any advice or discussion will be appreciated. Not sure if this is newbie
topic or not.

- Mike
Re: Extension versus dynamic [message #204938 is a reply to message #204874] Sun, 15 April 2007 07:30 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"J Michael Dean" <mdean77@comcast.net> wrote in message
news:C246668F.1F21F%mdean77@comcast.net...
> Re-reading through Gamma and Beck's Contributing to Eclipse (a little out
> of
> date but gold mine of information) and they introduce extension points to
> substitute for add and remove listener approach to their initial plugin
> sample.

If you can get something working with a listener rather than an extension
point, that is probably a nice clear and simple way to do it.

You'll discover that in Eclipse, it is not always possible. The issue is
that something has to discover your code and cause it to be loaded. About
the only way to make that happen is to extend an extension point.
Previous Topic:Eclipse C++ make file
Next Topic:Where Is The Missing Source of SWT Examples?
Goto Forum:
  


Current Time: Fri Apr 19 05:27:43 GMT 2024

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

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

Back to the top