Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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 mitov
Messages: 69
Registered: July 2009
Member
Hi,
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,
Kiril
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 mitov
Messages: 69
Registered: July 2009
Member
Looking at the ModelProviderManager the addedResource method actualy uses
ModelProviderEvent.addResource()


private static void addedResource(Resource addedResource) {

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

((CompatibilityXMIResource)
addedResource).setFormat(CompatibilityXMIResource.FORMAT_MOF 5);

IProject proj = WorkbenchResourceHelper.getProject(addedResource);

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

event.addResource(addedResource);

notifyModelProviders(event);


}


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

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


Current Time: Thu Oct 23 19:25:27 GMT 2014

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

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