Any possibility to filter certain Java files from discoverer? [message #501417] |
Wed, 02 December 2009 04:06  |
Eclipse User |
|
|
|
I'm using the MoDisco J2SE5 discover to extract a EMF model from my Java
project. AFAIK The discoverer is automatically analyzing all Java
sources available in the project. In my scenario there are some source
files that are out of scope of the evaluation and it would make sense to
exclude them from the discoverer from the beginning (rather than
excluding the extracted classes later during model analysis).
Is there any way to define a list of files to exclude or to contribute
some exclude filter to MoDisco? I'm using the latest release 0.7.1.
Thanks in advance
Jan
|
|
|
Re: Any possibility to filter certain Java files from discoverer? [message #501492 is a reply to message #501417] |
Wed, 02 December 2009 09:51   |
Eclipse User |
|
|
|
Hi Jan,
until now there is no way for filtering some java files neither for 'J2SE5 discoverer' nor 'Java discoverer'.
We recently have worked on parameterizing the 'Java' discoverer (not the 'J2SE5' one). But we did not implement .java files filters.
So such a contribution would be welcome !
Here are some informations about Java discoverers implementation :
If you get the sources for the org.eclipse.gmt.modisco.java.features (0.7.0), you will notice that :
- A DiscoverJavaModelFromJavaProject class waits for a DiscoveryParametersBean parameter which allows to indicate which artefacts should be analysed (selected project + some .jar from classpath of the selected project + some projects referenced from the selected project...etc)
- Using the discoverer from the popup menu will open a window, implemented in JavaWizard class, which allows the end user to select the artefacts.
So if you wish to contribute for filtering .java files, it seems to me that it will now better fit in the 'Java' discoverer than the 'J2SE5' one, with two levels of achievment :
- Completing 'DiscoveryParametersBean' for storing .java files filters (might be java packages filters i think), and modifying the 'DiscoverJavaModelFromJavaProject' for getting this new parameter and giving it to the basic 'JavaReader' class (in options Map) which would actually apply the filter.
- Additionally (and optionnally) completing the JavaWizard to allow the end user to indicate the Java classes/packages filter to apply from the popup menu.
If you are interested, it would be great to receive such a contribution in a patch submitted in bugzilla.
Best regards,
|
|
|
|
|
|
|
|
|
|
|
Re: Any possibility to filter certain Java files from discoverer? [message #573864 is a reply to message #501417] |
Wed, 02 December 2009 09:51   |
Eclipse User |
|
|
|
Hi Jan,
until now there is no way for filtering some java files neither for 'J2SE5 discoverer' nor 'Java discoverer'.
We recently have worked on parameterizing the 'Java' discoverer (not the 'J2SE5' one). But we did not implement .java files filters.
So such a contribution would be welcome !
Here are some informations about Java discoverers implementation :
If you get the sources for the org.eclipse.gmt.modisco.java.features (0.7.0), you will notice that :
- A DiscoverJavaModelFromJavaProject class waits for a DiscoveryParametersBean parameter which allows to indicate which artefacts should be analysed (selected project + some .jar from classpath of the selected project + some projects referenced from the selected project...etc)
- Using the discoverer from the popup menu will open a window, implemented in JavaWizard class, which allows the end user to select the artefacts.
So if you wish to contribute for filtering .java files, it seems to me that it will now better fit in the 'Java' discoverer than the 'J2SE5' one, with two levels of achievment :
- Completing 'DiscoveryParametersBean' for storing .java files filters (might be java packages filters i think), and modifying the 'DiscoverJavaModelFromJavaProject' for getting this new parameter and giving it to the basic 'JavaReader' class (in options Map) which would actually apply the filter.
- Additionally (and optionnally) completing the JavaWizard to allow the end user to indicate the Java classes/packages filter to apply from the popup menu.
If you are interested, it would be great to receive such a contribution in a patch submitted in bugzilla.
Best regards,
--
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
mailto:fgiquel@mia-software.com
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06705 seconds