Author: ruschein
Date: 2011-01-18 10:18:13 -0800 (Tue, 18 Jan 2011)
New Revision: 23491
Added:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsAboutToChangeEvent.java
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsAboutToChangeListener.java
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsFinishedChangingEvent.java
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsFinishedChangingListener.java
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowsAboutToChangeEventTest.java
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowsFinishedChangingEventTest.java
Removed:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedEvent.java
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedListener.java
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedEvent.java
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedListener.java
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetAboutToBeChangedEventTest.java
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetChangedEventTest.java
Modified:
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/select/InvertSelectedNodesTask.java
core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableRowChangeTracker.java
Log:
Renamed two events.
Modified:
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/select/InvertSelectedNodesTask.java
===================================================================
---
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/select/InvertSelectedNodesTask.java
2011-01-18 17:25:12 UTC (rev 23490)
+++
core3/core-task-impl/trunk/src/main/java/org/cytoscape/task/internal/select/InvertSelectedNodesTask.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -33,8 +33,8 @@
import org.cytoscape.event.CyEventHelper;
import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.CyNode;
-import org.cytoscape.model.events.RowSetAboutToBeChangedEvent;
-import org.cytoscape.model.events.RowSetChangedEvent;
+import org.cytoscape.model.events.RowsAboutToChangeEvent;
+import org.cytoscape.model.events.RowsFinishedChangingEvent;
import org.cytoscape.work.TaskMonitor;
import org.cytoscape.view.model.CyNetworkViewManager;
@@ -53,7 +53,7 @@
@Override
public void run(final TaskMonitor tm) {
try {
- eventHelper.fireSynchronousEvent(new
RowSetAboutToBeChangedEvent(this, net.getDefaultNodeTable()));
+ eventHelper.fireSynchronousEvent(new
RowsAboutToChangeEvent(this, net.getDefaultNodeTable()));
for (final CyNode n : net.getNodeList()) {
if (n.getCyRow().get("selected", Boolean.class))
@@ -62,7 +62,7 @@
n.getCyRow().set(CyNetwork.SELECTED,
true);
}
} finally {
- eventHelper.fireSynchronousEvent(new
RowSetChangedEvent(this, net.getDefaultNodeTable()));
+ eventHelper.fireSynchronousEvent(new
RowsFinishedChangingEvent(this, net.getDefaultNodeTable()));
}
updateView();
Modified:
core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableRowChangeTracker.java
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableRowChangeTracker.java
2011-01-18 17:25:12 UTC (rev 23490)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/CyTableRowChangeTracker.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -9,10 +9,10 @@
import java.util.Map;
import org.cytoscape.event.CyEventHelper;
-import org.cytoscape.model.events.RowSetAboutToBeChangedEvent;
-import org.cytoscape.model.events.RowSetAboutToBeChangedListener;
-import org.cytoscape.model.events.RowSetChangedEvent;
-import org.cytoscape.model.events.RowSetChangedListener;
+import org.cytoscape.model.events.RowsAboutToChangeEvent;
+import org.cytoscape.model.events.RowsAboutToChangeListener;
+import org.cytoscape.model.events.RowsFinishedChangingEvent;
+import org.cytoscape.model.events.RowsFinishedChangingListener;
import org.cytoscape.model.events.RowCreatedMicroListener;
import org.cytoscape.model.events.RowSetMicroListener;
import org.cytoscape.service.util.CyServiceRegistrar;
@@ -22,7 +22,7 @@
* order to utilise it, you must override the rowCreated() and rowsUpdated()
methods.
*/
public abstract class CyTableRowChangeTracker
- implements RowCreatedMicroListener, RowSetAboutToBeChangedListener,
RowSetChangedListener
+ implements RowCreatedMicroListener, RowsAboutToChangeListener,
RowsFinishedChangingListener
{
public static class RowUpdate {
private final CyRow row;
@@ -66,8 +66,8 @@
this.numConcurrentUpdaters = 0;
final Dictionary emptyProps = new Hashtable();
- serviceRegistrar.registerService(this,
RowSetAboutToBeChangedListener.class, emptyProps);
- serviceRegistrar.registerService(this,
RowSetChangedListener.class, emptyProps);
+ serviceRegistrar.registerService(this,
RowsAboutToChangeListener.class, emptyProps);
+ serviceRegistrar.registerService(this,
RowsFinishedChangingListener.class, emptyProps);
eventHelper.addMicroListener(this,
RowCreatedMicroListener.class, table);
@@ -95,15 +95,13 @@
}
@Override
- public final synchronized void handleEvent(final
RowSetAboutToBeChangedEvent e) {
-System.err.println("?????????????????????????? got a
RowSetAboutToBeChangedEvent event, table is matching="+(e.getTable() == table));
+ public final synchronized void handleEvent(final RowsAboutToChangeEvent
e) {
if (e.getTable() == table)
++numConcurrentUpdaters;
}
@Override
- public final synchronized void handleEvent(final RowSetChangedEvent e) {
-System.err.println("?????????????????????????? got a RowSetChangedEvent event,
table is matching="+(e.getTable() == table));
+ public final synchronized void handleEvent(final
RowsFinishedChangingEvent e) {
if (e.getTable() == table) {
--numConcurrentUpdaters;
if (numConcurrentUpdaters == 0) {
@@ -131,8 +129,8 @@
for (final RowSetMicroListenerProxy proxy :
rowToListenerProxyMap.values())
proxy.cleanup();
- serviceRegistrar.unregisterService(this,
RowSetChangedListener.class);
- serviceRegistrar.unregisterService(this,
RowSetAboutToBeChangedListener.class);
+ serviceRegistrar.unregisterService(this,
RowsFinishedChangingListener.class);
+ serviceRegistrar.unregisterService(this,
RowsAboutToChangeListener.class);
}
Deleted:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedEvent.java
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedEvent.java
2011-01-18 17:25:12 UTC (rev 23490)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedEvent.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -1,45 +0,0 @@
-/*
- Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications. In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage. See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-*/
-package org.cytoscape.model.events;
-
-
-import org.cytoscape.model.CyTable;
-
-
-/** This event should be fired before a series of row sets. After the row
updates have been
- * completed you must then fire a RowSetChangedEvent!
- */
-final public class RowSetAboutToBeChangedEvent extends AbstractTableEvent {
- /**
- * @param source who fired the event
- * @param table the table on which the row sets are about to take
place
- */
- public RowSetAboutToBeChangedEvent(final Object source, final CyTable
table) {
- super(source, RowSetAboutToBeChangedListener.class, table);
- }
-}
Deleted:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedListener.java
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedListener.java
2011-01-18 17:25:12 UTC (rev 23490)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedListener.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -1,41 +0,0 @@
-/*
- Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications. In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage. See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-*/
-package org.cytoscape.model.events;
-
-
-import org.cytoscape.event.CyListener;
-
-
-/** Listener for RowSetAboutToBeChangedEvents. */
-public interface RowSetAboutToBeChangedListener extends CyListener {
- /**
- * The method that should handle the specified event.
- * @param e The event to be handled.
- */
- void handleEvent(RowSetAboutToBeChangedEvent e);
-}
Deleted:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedEvent.java
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedEvent.java
2011-01-18 17:25:12 UTC (rev 23490)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedEvent.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -1,45 +0,0 @@
-/*
- Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications. In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage. See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-*/
-package org.cytoscape.model.events;
-
-
-import org.cytoscape.model.CyTable;
-
-
-/** This event should be fired after a series of row sets that have been
announced by firing a
- * RowSetAboutToBeChangedEvent.
- */
-final public class RowSetChangedEvent extends AbstractTableEvent {
- /**
- * @param source who fired the event
- * @param table the table on which the row sets have been completed
- */
- public RowSetChangedEvent(final Object source, final CyTable table) {
- super(source, RowSetChangedListener.class, table);
- }
-}
Deleted:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedListener.java
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedListener.java
2011-01-18 17:25:12 UTC (rev 23490)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedListener.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -1,41 +0,0 @@
-/*
- Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications. In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage. See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-*/
-package org.cytoscape.model.events;
-
-
-import org.cytoscape.event.CyListener;
-
-
-/** Listener for RowSetChangedEvents. */
-public interface RowSetChangedListener extends CyListener {
- /**
- * The method that should handle the specified event.
- * @param e The event to be handled.
- */
- void handleEvent(RowSetChangedEvent e);
-}
Copied:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsAboutToChangeEvent.java
(from rev 23490,
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedEvent.java)
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsAboutToChangeEvent.java
(rev 0)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsAboutToChangeEvent.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -0,0 +1,45 @@
+/*
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications. In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage. See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+package org.cytoscape.model.events;
+
+
+import org.cytoscape.model.CyTable;
+
+
+/** This event should be fired before a series of row sets. After the row
updates have been
+ * completed you must then fire a RowsFinishedChangingEvent!
+ */
+final public class RowsAboutToChangeEvent extends AbstractTableEvent {
+ /**
+ * @param source who fired the event
+ * @param table the table on which the row sets are about to take
place
+ */
+ public RowsAboutToChangeEvent(final Object source, final CyTable table)
{
+ super(source, RowsAboutToChangeListener.class, table);
+ }
+}
Copied:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsAboutToChangeListener.java
(from rev 23490,
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetAboutToBeChangedListener.java)
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsAboutToChangeListener.java
(rev 0)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsAboutToChangeListener.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -0,0 +1,41 @@
+/*
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications. In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage. See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+package org.cytoscape.model.events;
+
+
+import org.cytoscape.event.CyListener;
+
+
+/** Listener for RowsAboutToChangeEvents. */
+public interface RowsAboutToChangeListener extends CyListener {
+ /**
+ * The method that should handle the specified event.
+ * @param e The event to be handled.
+ */
+ void handleEvent(RowsAboutToChangeEvent e);
+}
Copied:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsFinishedChangingEvent.java
(from rev 23490,
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedEvent.java)
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsFinishedChangingEvent.java
(rev 0)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsFinishedChangingEvent.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -0,0 +1,45 @@
+/*
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications. In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage. See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+package org.cytoscape.model.events;
+
+
+import org.cytoscape.model.CyTable;
+
+
+/** This event should be fired after a series of row sets that have been
announced by firing a
+ * RowAboutToChangeEvent.
+ */
+final public class RowsFinishedChangingEvent extends AbstractTableEvent {
+ /**
+ * @param source who fired the event
+ * @param table the table on which the row sets have been completed
+ */
+ public RowsFinishedChangingEvent(final Object source, final CyTable
table) {
+ super(source, RowsFinishedChangingListener.class, table);
+ }
+}
Copied:
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsFinishedChangingListener.java
(from rev 23490,
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowSetChangedListener.java)
===================================================================
---
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsFinishedChangingListener.java
(rev 0)
+++
core3/model-api/trunk/src/main/java/org/cytoscape/model/events/RowsFinishedChangingListener.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -0,0 +1,41 @@
+/*
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications. In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage. See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+package org.cytoscape.model.events;
+
+
+import org.cytoscape.event.CyListener;
+
+
+/** Listener for RowsFinishedChangingEvents. */
+public interface RowsFinishedChangingListener extends CyListener {
+ /**
+ * The method that should handle the specified event.
+ * @param e The event to be handled.
+ */
+ void handleEvent(RowsFinishedChangingEvent e);
+}
Deleted:
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetAboutToBeChangedEventTest.java
===================================================================
---
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetAboutToBeChangedEventTest.java
2011-01-18 17:25:12 UTC (rev 23490)
+++
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetAboutToBeChangedEventTest.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -1,69 +0,0 @@
-/*
- Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications. In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage. See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-*/
-package org.cytoscape.model.events;
-
-
-import org.cytoscape.model.CyTable;
-
-import static org.junit.Assert.*;
-import org.junit.Before;
-import org.junit.Test;
-
-import static org.mockito.Mockito.*;
-
-
-public class RowSetAboutToBeChangedEventTest extends AbstractTableEventTest {
- private RowSetAboutToBeChangedEvent event;
-
- @Before
- public void setUp() {
- final CyTable table = mock(CyTable.class);
- event = new RowSetAboutToBeChangedEvent(this, table);
- }
-
- @Test
- public void testGetSource() {
- assertEquals("getSource() did *not* return the expected
source!",
- event.getSource(), this);
- }
-
- @Test
- public void testGetListenerClass() {
- assertEquals("getListenerClass() did *not* return the expected
class!",
- event.getListenerClass(),
RowSetAboutToBeChangedListener.class);
- }
-
- public void testNullTable() {
- try {
- RemovedEdgeEvent ev = new RemovedEdgeEvent(null);
- } catch (NullPointerException npe) {
- return;
- }
- fail("didn't catch expected npe for tablework");
- }
-}
Deleted:
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetChangedEventTest.java
===================================================================
---
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetChangedEventTest.java
2011-01-18 17:25:12 UTC (rev 23490)
+++
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetChangedEventTest.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -1,69 +0,0 @@
-/*
- Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications. In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage. See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-*/
-package org.cytoscape.model.events;
-
-
-import org.cytoscape.model.CyTable;
-
-import static org.junit.Assert.*;
-import org.junit.Before;
-import org.junit.Test;
-
-import static org.mockito.Mockito.*;
-
-
-public class RowSetChangedEventTest extends AbstractTableEventTest {
- private RowSetChangedEvent event;
-
- @Before
- public void setUp() {
- final CyTable table = mock(CyTable.class);
- event = new RowSetChangedEvent(this, table);
- }
-
- @Test
- public void testGetSource() {
- assertEquals("getSource() did *not* return the expected
source!",
- event.getSource(), this);
- }
-
- @Test
- public void testGetListenerClass() {
- assertEquals("getListenerClass() did *not* return the expected
class!",
- event.getListenerClass(),
RowSetChangedListener.class);
- }
-
- public void testNullTable() {
- try {
- RemovedEdgeEvent ev = new RemovedEdgeEvent(null);
- } catch (NullPointerException npe) {
- return;
- }
- fail("didn't catch expected npe for tablework");
- }
-}
Copied:
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowsAboutToChangeEventTest.java
(from rev 23490,
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetAboutToBeChangedEventTest.java)
===================================================================
---
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowsAboutToChangeEventTest.java
(rev 0)
+++
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowsAboutToChangeEventTest.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -0,0 +1,69 @@
+/*
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications. In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage. See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+package org.cytoscape.model.events;
+
+
+import org.cytoscape.model.CyTable;
+
+import static org.junit.Assert.*;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.mockito.Mockito.*;
+
+
+public class RowsAboutToChangeEventTest extends AbstractTableEventTest {
+ private RowsAboutToChangeEvent event;
+
+ @Before
+ public void setUp() {
+ final CyTable table = mock(CyTable.class);
+ event = new RowsAboutToChangeEvent(this, table);
+ }
+
+ @Test
+ public void testGetSource() {
+ assertEquals("getSource() did *not* return the expected
source!",
+ event.getSource(), this);
+ }
+
+ @Test
+ public void testGetListenerClass() {
+ assertEquals("getListenerClass() did *not* return the expected
class!",
+ event.getListenerClass(),
RowsAboutToChangeListener.class);
+ }
+
+ public void testNullTable() {
+ try {
+ RemovedEdgeEvent ev = new RemovedEdgeEvent(null);
+ } catch (NullPointerException npe) {
+ return;
+ }
+ fail("didn't catch expected npe for tablework");
+ }
+}
Copied:
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowsFinishedChangingEventTest.java
(from rev 23490,
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowSetChangedEventTest.java)
===================================================================
---
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowsFinishedChangingEventTest.java
(rev 0)
+++
core3/model-api/trunk/src/test/java/org/cytoscape/model/events/RowsFinishedChangingEventTest.java
2011-01-18 18:18:13 UTC (rev 23491)
@@ -0,0 +1,69 @@
+/*
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications. In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage. See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+package org.cytoscape.model.events;
+
+
+import org.cytoscape.model.CyTable;
+
+import static org.junit.Assert.*;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.mockito.Mockito.*;
+
+
+public class RowsFinishedChangingEventTest extends AbstractTableEventTest {
+ private RowsFinishedChangingEvent event;
+
+ @Before
+ public void setUp() {
+ final CyTable table = mock(CyTable.class);
+ event = new RowsFinishedChangingEvent(this, table);
+ }
+
+ @Test
+ public void testGetSource() {
+ assertEquals("getSource() did *not* return the expected
source!",
+ event.getSource(), this);
+ }
+
+ @Test
+ public void testGetListenerClass() {
+ assertEquals("getListenerClass() did *not* return the expected
class!",
+ event.getListenerClass(),
RowsFinishedChangingListener.class);
+ }
+
+ public void testNullTable() {
+ try {
+ RemovedEdgeEvent ev = new RemovedEdgeEvent(null);
+ } catch (NullPointerException npe) {
+ return;
+ }
+ fail("didn't catch expected npe for tablework");
+ }
+}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.