Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362211 - Listener to InventoryModel creation
Summary: Listener to InventoryModel creation
Status: NEW
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 11:19 EDT by Christian Wulf CLA
Modified: 2011-10-28 05:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Wulf CLA 2011-10-27 11:19:10 EDT
I create a C# to KDM transformation. I am going to support the code and action package. For this purpose, I use MoDisco's KDMSourceDiscoverer to produce the InventoryModel of the underlying filesystem. However, There is no possibility to, e.g., count a specific type of read files, say SourceFiles. Furthermore, I cannot display the progress while construction the InventoryModel, because I, again, have no access on the single read files/folders.
I propose two listener, one before the next file/folder is read and one after it is read. Since you already check whether the given file is a file or a folder, you could provide these two listeners for a read file as well as for a read directory.
Within these listeners, you can do whatever you want with it, e.g., display the current progress.

Please let me know whether you could implement and release this extension to the "inventory model parser" in the next month.

Regards,
Christian
Comment 1 Gregoire Dupe CLA 2011-10-28 05:22:19 EDT
Hello,

Rather than to provide specific listener handlers, we should modify the implementation of org.eclipse.modisco.kdm.source.discoverer.DiscoverSourceModelFromResource to use the ProgressMonitor parameter.

Thanks to that you will be able to call you’re the DiscoverSourceModelFromResource with your own Progeress Monitor, which will receive progress events.

About the delay of implement and release:
- The next release of MoDisco is planned at 27 of June (within Juno release).
- I cannot promise that this enhancement will be embedded in the version 0.10, because the goal of the next release is to finish the migration to EMF Facet (cf. http://www.eclipse.org/projects/project-plan.php?projectid=modeling.mdt.modisco)
- You can contribute a patch (including unit tests); this will help us to decrease to delivery delay.

Regards,
Gregoire Dupe