Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Refreshing org.eclipse.jst.j2ee.model.ModelProviderManager?
Refreshing org.eclipse.jst.j2ee.model.ModelProviderManager? [message #202721] Fri, 19 October 2007 15:55
kiril mitov is currently offline kiril mitovFriend
Messages: 69
Registered: July 2009
Hi all,

I am trying to implement a validator for the web.xml file of a dynamic web
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
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,
Previous Topic:Protecting Projects - Read Only?
Next Topic:Problems invoking a custom validator
Goto Forum:

Current Time: Wed Jun 29 09:19:23 GMT 2022

Powered by FUDForum. Page generated in 0.01869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top