Refreshing org.eclipse.jst.j2ee.model.ModelProviderManager? [message #202721] |
Fri, 19 October 2007 15:55 |
kiril mitov Messages: 69 Registered: July 2009 |
Member |
|
|
Hi all,
I am trying to implement a validator for the web.xml file of a dynamic web
project.
The validator work with the model of the web.xml
This model I load using ModelProviderManager.getModelProvider();
After having the instance of IModelProvider I can get my modelObject - in
this case org.eclipse.jst.javaee.web.WebApp and do the appropriate checks.
The problem is that the validator must work every time the "Validate" button
is pressed so I need a new modelObject every time the a validation is
needed.
Since the modelProviders are cached I can not get a new instance of the
model object and my model object is out of sync with the file system.
Does someone know how can I force the creation of a new modelObject or even
new modelProvider?
Or maybe there is another way to load the model of web.xml
Best Regards,
Kiril
|
|
|
Powered by
FUDForum. Page generated in 0.02671 seconds