Re: how to intercept CVS Events from other netbeans module ?

Milos Kleint <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
NetBeans wrote:

>Project :
>    Metric extraction through (NetBeans--> WebMetric) from local files and
>cvs projects
>
>Status :
>   local part solved
>   trying to implement the cvs part
>
>Problem :
>   catch the CVS-Events on various cvs commands
>
you want to intercept any command that the user executes? or want to run 
a command on your own and use the info?
the first possibility might be a problem..


>
>from what we read on the newsgroups and/or netbeans.org pages the only way
>to catch this events is to pass through the EventManger of the client. If
>this is true how do we find the active EventManager and how do we add a
>"CVS-Command listener" to the classes in the NB explorer ?
>
In netbeans code there's another layer above the cvs library.. so you 
don't need access to the event manager..subclasses of FileSystemCommand 
are wrappers around the library commands.. they have a way to add listener..

>
>Or even better how do we get the list of files that are being submitted ,
>intercept them before CVS-Command execution, pass them to out metrics method
>and pass them back to the JavaCVS flow ?
>
it seems like you would need a general listener that would be attached 
to every command, right? that's not possible right now. However you can 
add such functionality I suppose... the filesystem will have a pool of 
global listeners that it would attach to every command issued. that's 
already happening however behind the scenes..

Hope that helps..

Milos

>
>
>T.i.a.
>
>Karbon Georg
>
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.