Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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 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
Previous Topic:Protecting Projects - Read Only?
Next Topic:Problems invoking a custom validator
Goto Forum:
  


Current Time: Fri Sep 19 12:00:55 GMT 2014

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

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