Use interceptors. Look into net.refractions.udig.project plugin.xml and find extension points. Take them as an example. Interface that you should implement is one from the package net.refractions.udig.project.interceptor. There are several configured default interceptors that you may use as examples.
Vitali. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:udig-devel- > [EMAIL PROTECTED] On Behalf Of Sergiy Doroshenko > Sent: Monday, July 02, 2007 3:22 PM > To: User-friendly Desktop Internet GIS > Subject: [udig-devel] How to check "layer added" event? > > Hi all! > > I want to catch "layer added" event, but IEditManagerListener doesn't > support such event, only SELECTED_LAYER event. > For now I store list of layers and when selected layer changes I check > whether it is in this list. If it isn't in list - this is the new one. > > But I think it's not a very good way. > Is there another listener that could catch such event? > > Thanks! > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
