Tutorial on Eclipse plugin extension-points and extensions - Simple step by step aproach

Tutorial on Eclipse plugin extension-points and extensions.

This is a basic tutorial on how to create a simple base eclipse plugin which will have extension-point defined and also creating another eclipse plugin which will have extension to hook to existing extension-point in base plugin.
this whole tutorial has two primary tasks and they are
1.Creating a base plugin having an extension point definition.
2.Creating an extension plugin which implements the base extension point.

Creating a base plugin having an extension point definition.
Now let's see how this base plugin will be created which will have definition to a extension-point.
Once after opening your eclipse in plug-in-development perspective, create a new project by name Base Plugin.
1. Create a new eclipse plugin project from File > New


2. Give it a name ex : Base Plugin


3.Provide the vendor name , un-check Generate activator stuff.


4.Select one of the Template , in this tutorial im using Command ... 


5.Modify the below fields Message box Text etc.. 


6. Now modify the plugin.xml file in the project created to that custom menu names and sub menus will be displayed.
Modified plugin XML code looks like below ..



   
      
      
      
      
   
   
      
      
   
   
      
      
   
   
      
         
            
            
         
      
      
         
            
            
         
      
   


7. Now right click on the Base plugin project and run it as eclipse plugin project. 


8. Now you should see new eclipse plugin instance opened up showing a new menu item along with the default menu items with name Base plugin command.


9.Just select the command and see the output for the base plugin we have created.


Same post will be updated soon with steps to modify the base plugin to facilitate with definition of extension point and creating another plugin which will extend the extension defined in base with their own implementations.

Read more


wget command to copy directory containing multiple sub directories and files

wget command to copy directory containing multiple sub directories and files

Below is a simple WGET command which will download a folder recursively with its sub directories and files. 

wget -r  --no-parent https://ABC.com/projects/build/prebuild/offerings/20130910-0610%25krishna.g_p00027/ --http-user XYZ--http-passwd XYZ--no-check-certificate

Simple explanation : 

-r : Recursively copies 

--no-parent : Do'nt copy the parent siblings. only downloads from the specified subdirectory and downwards hierarchy.

--http-user : Username 

--http-passwd : Password 

--http-passwd : Accept https certificates if any .

Read more

Translate

Enter your email address:

Buffs ...

Visitors


hits counter
View My StatsCheck Google Page Rank

Add to Google Reader or Homepage

Bookmark and Share

Tags


Powered by WidgetsForFree