Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r5178 - branches/perfsonarui/src/org/perfsonar/perfsonarui/plugins

Subject: perfsonar development work

List archive

perfsonar: r5178 - branches/perfsonarui/src/org/perfsonar/perfsonarui/plugins


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r5178 - branches/perfsonarui/src/org/perfsonar/perfsonarui/plugins
  • Date: Tue, 16 Jun 2009 11:07:17 -0400

Author: iva
Date: 2009-06-16 11:07:17 -0400 (Tue, 16 Jun 2009)
New Revision: 5178

Modified:

branches/perfsonarui/src/org/perfsonar/perfsonarui/plugins/MAEndpointList.java
Log:
Fix for bug 533. Method deleteEndpoints() added - this is the action
performed when "Remove" button on Select service addresses panel is pressed

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/plugins/MAEndpointList.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/plugins/MAEndpointList.java
2009-06-16 15:04:43 UTC (rev 5177)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/plugins/MAEndpointList.java
2009-06-16 15:07:17 UTC (rev 5178)
@@ -91,6 +91,7 @@
}
public boolean saveEndpoints(File file) throws Exception {
BufferedWriter w = new BufferedWriter(new FileWriter(file));
+ System.out.println("There are "+ size() + "endpoints.");
for (int i=0; i < size(); i++) {
w.write(get(i).toString());
w.newLine();
@@ -99,6 +100,17 @@
w.close();
return true;
}
+
+ public boolean deleteEndpoints() throws Exception {
+ for (int i=0; i < size(); i++) {
+ if(get(i).isEnabled()){
+ remove(i);
+ i--;
+ }
+ }
+ return true;
+ }
+
/**
* Reads endpoints from file.
* @param file



  • perfsonar: r5178 - branches/perfsonarui/src/org/perfsonar/perfsonarui/plugins, svnlog, 06/16/2009

Archive powered by MHonArc 2.6.16.

Top of Page