[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-CVS ] plugins/ProjectViewer/projectviewer/event package.html,1.3,1.4
From:       Alan Ezust <ezust () users ! sourceforge ! net>
Date:       2005-09-29 21:45:11
Message-ID: E1EL6DM-0005iD-SI () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/jedit/plugins/ProjectViewer/projectviewer/event
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25596/event

Modified Files:
	package.html 
Log Message:
Added a NodeSelection possibility for ProjectViewer events.

Attempted to clarify some of the documentation in the package.html for
event.

I think there is a bug in removeProjectViewerListener though - it appears
that after reload Console plugin, I get duplicate events.



Index: package.html
===================================================================
RCS file: /cvsroot/jedit/plugins/ProjectViewer/projectviewer/event/package.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- package.html	9 Sep 2004 21:53:54 -0000	1.3
+++ package.html	29 Sep 2005 21:45:08 -0000	1.4
@@ -11,15 +11,14 @@
 {@link projectviewer.ProjectViewer ProjectViewer} provides a way for both types of
 plugin to register for PV events.</p>
 
-<p>To register listeners using the new API, create the following properties:</p>
+<p>To register listeners for an EditPlugin-derived class called <i>className</i> \
using the new API, create the following properties:</p>  
 <ul>
-	<li>plugin.projectviewer.<i>class name</i>.global-pv-listeners:<br>
+	<li>plugin.projectviewer.<i>className</i>.global-pv-listeners:<br>
 	the list of	classes that provide {@link projectviewer.event.ProjectViewerListener
-	ProjectViewerListener}s for ProjectViewer that will listen to all PV-related
-	events, regardless of the view where they happen.</li>
+	ProjectViewerListener}s for ProjectViewer that will listen to all PV-related \
events, regardless of the view where they happen.</li>  
-	<li>plugin.projectviewer.<i>class name</i>.pv-listeners:<br>
+	<li>plugin.projectviewer.<i>className</i>.pv-listeners:<br>
 	list of classes that provide {@link projectviewer.event.ProjectViewerListener
 	ProjectViewerListener}s for specific views where ProjectViewer is being
 	used. One object of each class will be instantiated for each view.</li>
@@ -47,19 +46,22 @@
 
 <h3>Project Events</h3>
 
-<p>Other plugins may register to receive notification about changes to a project
+<p>Plugins may register themselves to receive notification about changes to a \
project  instead of changes in the state of the ProjectViewer. To accomplish this,
-plugins should implement the {@link projectviewer.event.ProjectListener
-ProjectListener} interface, and register the listener in the project class
-by calling the {@link \
                projectviewer.vpt.VPTProject#addProjectListener(ProjectListener)
-addProjectListener()} method. It's up to the plugin to detect project changes
+the plugin class itself should implement the {@link \
projectviewer.event.ProjectListener +ProjectListener} interface, and register the \
listener in the project class. +</p>
+
+<p>
+The pre-4.2 way of doing this was by calling the {@link \
projectviewer.vpt.VPTProject#addProjectListener(ProjectListener) \
+addProjectListener()} method. Then, it was up to the plugin to detect project \
changes  and add/remove the listeners.</p>
 
 <p>To register project listeners using the new API, create the following
 property:</p>
 
 <ul>
-	<li>plugin.projectviewer.<i>class name</i>.prj-listeners:<br>
+	<li>plugin.projectviewer.<i>className</i>.prj-listeners:<br>
 	list of classes that provide {@link projectviewer.event.ProjectListener
 	ProjectListener}s to add to active projects. Only one instance of each
 	class will be created, and this instance may be added to many projects at



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic