Tips: Creating Extension vs. Extension Points



Email    print   
June 4, 2008 —  (Page 1 of 2)
Do you know the difference between an Eclipse extension point and an Eclipse extension and what each is used for? From Eclipse Help, we get the following:
“Extension Points define new function points for the platform that other plugins can plug into… A plugin is a structured component that contributes code (or documentation or both) to the system and describes it in a structured way. Plugins can define extension points, well-defined function points that can be extended by other plugins. When a plugin contributes an implementation for an extension point, we say that it adds an extension to the platform. These extensions and extension points are declared in the plugin's manifest (plugin.xml) file.”
For example, there’s an extension point named org.eclipse.ui.views that was created to allow the addition of views into Eclipse. The idea is that you would create a new view class and, by using the extension point, you could inform Eclipse to use that class as one of its views. So those identifying how one can plug into Eclipse are creating Extension Points, and those making use of the Extension Points to define the required information or classes are making extensions.

Where can you plug into Eclipse? In my opinion, the first and best place to look is in Eclipse Help. Open up Eclipse Help and type “platform extension points” into the search area. The results of the search are shown in Figure 1. The list shown by selecting the third entry in the search result list contains the extension points the platform supports. The implication is that there are many extension points you can use to create your own extension to Eclipse, thus adding new functionality to Eclipse.

Selecting any of the extension points in Help, such as org.eclipse.ui.views, brings you to a page that shows a definition of the extension point, such as its id, description and configuration markup, along with examples of how to use it to create an extension. In the case of org.eclipse.ui.views, the example is as follows:




Pages 1 2 


Share this link: http://sdt.bz/32311
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
Tips: Extending an Extension Point
In my previous installment, I discussed how to create your very own extension point so that others can contribute to what you are building. The context for this discussion was a new set of plug-ins I was building to develop a Scheme development environment for Eclipse Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb