Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » question on ResourceModelListener
question on ResourceModelListener [message #613790] Fri, 30 January 2009 05:18
Brian Vosburgh is currently offline Brian VosburghFriend
Messages: 137
Registered: July 2009
Senior Member
Forwarded from dali-dev list:

-------- Original Message --------
Subject: [dali-dev] question on ResourceModelListener
Date: Fri, 30 Jan 2009 00:00:00 -0500
From: Ivy Ho <corporategirl@gmail.com>
Reply-To: General Dali EJB ORM developer discussion. <dali-dev@eclipse.org>
To: dali-dev@eclipse.org


Hi there:

I have implements in from our widget ,ResourceModelListener and
,PropertyChangeListener..

It is funny that if I click on the JPA view,on any fields The
PropertyChangeListener is never invoked but it always go to ResourceModelListener.
However in the method resourceModelChanged() , there is no indication as what
changes trigger the events,.
Is there any other listeners I can use or there is something we can do in the
resourceModelChanged to find out what the change is ?

Thanks so much!

public void resourceModelChanged() {
// TODO Auto-generated method stub

System.out.println("resourceModelChanged...");

}



=== some how the following was never invoked.== don''t know why.====

public void propertyChanged(
org.eclipse.jpt.utility.model.event.PropertyChangeEvent arg0) {
// TODO Auto-generated method stub

System.out.println("org.eclipse.jpt.utility.model.event.PropertyChangeEvent ");
if (arg0!=null)
{
System.out.println("property name="+arg0.getPropertyName());
System.out.println("source="+arg0.getSource());
System.out.println("new value="+arg0.getNewValue()+": old="+arg0.getOldValue());

}
System.out.println("end
org.eclipse.jpt.utility.model.event.PropertyChangeEvent");
}
l
Previous Topic:Dali 2.2 and JPA 2.0 tolerance
Next Topic:what would it meant to use "Generic" as the JPA platform
Goto Forum:
  


Current Time: Mon Nov 19 17:27:03 GMT 2018

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

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

Back to the top