Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Plans for the org.eclipse.jst.j2ee.model.ModelProviderEvent
Plans for the org.eclipse.jst.j2ee.model.ModelProviderEvent [message #206475] Tue, 08 January 2008 08:35 Go to next message
kiril mitov is currently offline kiril mitovFriend
Messages: 69
Registered: July 2009
Looking at the class org.eclipse.jst.j2ee.model.ModelProviderEvent it
provides a default implementation of IModelProviderEvent. But most of its
methods are taged with // TODO Auto-generated method stub" and have an empty
body like
public void addResource(Object resource) {

// TODO Auto-generated method stub


Are there any plans for the full implementation of this class? Would it be
reasonable to open a feature request and provide an implementation from my
side or there are other plans for this class?

I am asking because I am creating a model provider and I do not want to
provide my own implementation of IModelProviderEvent, but instead use
org.eclipse.jst.j2ee.model.ModelProviderEvent that is located in a non
internal package.

Best Regards,
Re: Plans for the org.eclipse.jst.j2ee.model.ModelProviderEvent [message #206483 is a reply to message #206475] Tue, 08 January 2008 08:41 Go to previous message
kiril mitov is currently offline kiril mitovFriend
Messages: 69
Registered: July 2009
Looking at the ModelProviderManager the addedResource method actualy uses

private static void addedResource(Resource addedResource) {

if ((addedResource != null) && (addedResource instanceof

addedResource).setFormat(CompatibilityXMIResource.FORMAT_MOF 5);

IProject proj = WorkbenchResourceHelper.getProject(addedResource);

IModelProviderEvent event = new
ModelProviderEvent(IModelProviderEvent.ADDED_RESOURCE, null,proj);




But since addResource has an empty body the call event.addResource has not

Best Regards,
Previous Topic:StructredTextEditor XML content look and feel question
Next Topic:Custom editor embedded in an html file
Goto Forum:

Current Time: Wed Sep 26 05:44:37 GMT 2018

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

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

Back to the top