Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-update-dev] Accessing non-plugin files stored in Feature directory




Don't we have something in FeatureContentConsumer that let us know where
the feature has been installed ?


                                                                            
                                                                            
 (Embedded image moved to file: pic04313.gif)  Christophe Elek              
 IBM Software Group - Toronto Lab                                           
 Technical team Lead - Cross product Support                                
 Phone: 905-413-3467 T/L: 969-3467 Toll Free: 1-800-426-7378                
 Email: celek@xxxxxxxxxx                                                    
                                                                            
                                                                            




                                                                           
             Dorian                                                        
             Birsan/Toronto/                                               
             IBM@IBMCA                                                  To 
             Sent by:                   platform-update-dev@xxxxxxxxxxx    
             platform-update                                            cc 
             -dev-admin@ecli                                               
             pse.org                                                   bcc 
                                                                           
                                                                   Subject 
             10/21/2003                 Re: [platform-update-dev]          
             06:55 PM                   Accessing non-plugin files stored  
                                        in Feature directory               
                                                                           
             Please respond                                                
                   to                                                      
             platform-update                                               
                  -dev                                                     
                                                                           
                                                                           





The install location is given by BootLoader.getInstallURL().

Take a look at DeltaInstallHandler in the M4 driver, you may be able to use
some of that code.

-Dorian


                                                                           
 "Foster, Susan B"                                                         
 <susan.b.foster@xxxxxxxxx>                                                
 Sent by:                                                               To 
 platform-update-dev-admin@ecl               <platform-update-dev@eclipse. 
 ipse.org                                    org>                          
                                                                        cc 
                                                                           
 10/21/2003 06:09 PM                                               Subject 
                                             [platform-update-dev]         
                                             Accessing non-plugin files    
       Please respond to                     stored in Feature directory   
      platform-update-dev                                                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





I have been using the DefaultInstallHandler to install non-plugin files.


The default location for the files is
eclipse/features/com.xyz.plugin_2.0.0/<non-plugin_folders_and_files_here
>

Is there some easy way to access this location from the plugin
associated with this feature?  I can't seem to find an API that will
give me the absolute path for the eclipse installation, otherwise I
think I could use that and append
/features/MyPlugin.getDefault().toString() (since my plugin id and
feature id are the same).

Any insight would be helpful.



Thanks

Susan
email:  susan.b.foster@xxxxxxxxx
phone: 480-552-0927

_______________________________________________
platform-update-dev mailing list
platform-update-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-update-dev

Attachment: pic04313.gif
Description: GIF image


Back to the top