[mdr-dev] Repository Shutdown

View: New views
1 Messages — Rating Filter:   Alert me  

[mdr-dev] Repository Shutdown

by Jörg Schütz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi there,

 

I am developing an plugin for Eclipse that is supposed to read in an UML file and then do something with the model defined there. To achieve this, I am using the Netbeans libraries and the Uml2Mof tool. Being a plugin, it is also desired that a user can run the tool several times within the same Eclipse instance (i.e. read in the first model with the tool, then read in another one).

When executing the tool several times, the model previously read in is still in the MDRepository and the new model is simply added, which is undesirable because only the model defined in the file read in is to be processed. This is the case because I did not shut the Repository down with the MDRManager.getDefault().shutdownAll() command.

However, if this command is executed at the end, upon the next invocation an Exception is thrown (see bellow). Any idea how this can be solved?

Thanks

 

Jörg

LightInTheBox - Buy quality products at wholesale price