|
From: <an...@us...> - 2007-08-01 13:11:01
|
Revision: 666
http://magicmap.svn.sourceforge.net/magicmap/?rev=666&view=rev
Author: anweiss
Date: 2007-08-01 06:10:38 -0700 (Wed, 01 Aug 2007)
Log Message:
-----------
added remove functions
Modified Paths:
--------------
trunk/magicmapclient/src/net/sf/magicmap/client/controller/Controller.java
trunk/magicmapclient/src/net/sf/magicmap/client/measurement/ScannerAllocator.java
Modified: trunk/magicmapclient/src/net/sf/magicmap/client/controller/Controller.java
===================================================================
--- trunk/magicmapclient/src/net/sf/magicmap/client/controller/Controller.java 2007-07-26 14:23:14 UTC (rev 665)
+++ trunk/magicmapclient/src/net/sf/magicmap/client/controller/Controller.java 2007-08-01 13:10:38 UTC (rev 666)
@@ -444,7 +444,11 @@
public void addScannerHandler(AbstractScannerHandler handler){
this.scannerAllocator.addScanResultHandler(handler);
}
-
+
+ public void removeScannerHandler(AbstractScannerHandler handler){
+ this.scannerAllocator.removeScanResultHandler(handler);
+ }
+
public void initializePlugins(){
try {
this.pluginManager = new PluginManager(new Settings(), this);
Modified: trunk/magicmapclient/src/net/sf/magicmap/client/measurement/ScannerAllocator.java
===================================================================
--- trunk/magicmapclient/src/net/sf/magicmap/client/measurement/ScannerAllocator.java 2007-07-26 14:23:14 UTC (rev 665)
+++ trunk/magicmapclient/src/net/sf/magicmap/client/measurement/ScannerAllocator.java 2007-08-01 13:10:38 UTC (rev 666)
@@ -24,6 +24,9 @@
public void addScanResultHandler(AbstractScannerHandler handler){
this.handlerMap.put(handler.canHandle(), handler);
}
+ public void removeScanResultHandler(AbstractScannerHandler handler){
+ this.handlerMap.remove(handler.canHandle());
+ }
public AbstractScannerHandler getHandler(AbstractScanner canHandleScanner){
if (this.stopped) return null;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|