| How to set 2 identical plugins in one Eclipse Platform? [message #327582] | 
Fri, 25 April 2008 06:57   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: brandonchen.realtek.com.tw 
 
How to set 2 identical plugins in one Eclipse Platform? 
 
For example, there two plugins A, and B which are completely the same in 
codes and paths except the differnt extension names in plugin.xml. It means 
that two different plugins will be striggered by different extensions of 
filenames. 
 
Here is the problem. It seems that these two identical plugins confuses the 
eclipse playform. In some cases, ocassionally, plugin A calls its method 
FUN() but runs into FUN() in plugin B. I guess that there might be some 
confusion of objects between plugin A and B since they all have the same 
names and paths. 
 
My idea is to review all pages in plugin.xml and set all related ID items to 
different names, and reset the relationship of dependencies. Is there any 
other things I should do to achieve this goal? 
 
I guess the worst way to achieve this is to explicitly create different 
signatures of objects by changing all the file names . It should be able to 
avoid confusion of objects. But it is just to troublesome. My projects are 
based on GEF framework. Please give any advices, very apprecitaed! 
 
Cheers, 
 
Brandon
 |  
 |  
  | 
| Re: How to set 2 identical plugins in one Eclipse Platform? [message #327584 is a reply to message #327582] | 
Fri, 25 April 2008 08:04   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: merks.ca.ibm.com 
 
Brandon, 
 
As long as you ensure that you're using a unique plugin ID, you should  
be able to support this.  I assume there's no downstream plugin that  
ends up importing both... 
 
 
Brandon wrote: 
> How to set 2 identical plugins in one Eclipse Platform? 
> 
> For example, there two plugins A, and B which are completely the same in 
> codes and paths except the differnt extension names in plugin.xml. It means 
> that two different plugins will be striggered by different extensions of 
> filenames. 
> 
> Here is the problem. It seems that these two identical plugins confuses the 
> eclipse playform. In some cases, ocassionally, plugin A calls its method 
> FUN() but runs into FUN() in plugin B. I guess that there might be some 
> confusion of objects between plugin A and B since they all have the same 
> names and paths. 
> 
> My idea is to review all pages in plugin.xml and set all related ID items to 
> different names, and reset the relationship of dependencies. Is there any 
> other things I should do to achieve this goal? 
> 
> I guess the worst way to achieve this is to explicitly create different 
> signatures of objects by changing all the file names . It should be able to 
> avoid confusion of objects. But it is just to troublesome. My projects are 
> based on GEF framework. Please give any advices, very apprecitaed! 
> 
> Cheers, 
> 
> Brandon 
> 
> 
> 
> 
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.24075 seconds