[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Refreshing org.eclipse.jst.j2ee.model.ModelProviderManager?

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