Author: kono
Date: 2012-01-06 10:19:11 -0800 (Fri, 06 Jan 2012)
New Revision: 27939
Removed:
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/event/AttributeUpdateEventHandler.java
Modified:
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/VizMapPropertySheetBuilder.java
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/VizMapperMainPanel.java
Log:
Unnecessary handler code removed.
Modified:
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/VizMapPropertySheetBuilder.java
===================================================================
---
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/VizMapPropertySheetBuilder.java
2012-01-06 07:12:13 UTC (rev 27938)
+++
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/VizMapPropertySheetBuilder.java
2012-01-06 18:19:11 UTC (rev 27939)
@@ -396,69 +396,6 @@
props.remove(p);
}
- // TODO: this should be gone
- public void setAttrComboBox() {
- // Attribute Names
- final List<String> names = new ArrayList<String>();
- //
- // CyTable attr = /* TODO
*/getTargetNetwork().getNodeCyDataTables()
- // .get(CyNetwork.DEFAULT_ATTRS);
- //
- // // TODO remove the next line too!
- // if (attr == null)
- // return;
- //
- // Map<String, Class<?>> cols = attr.getColumnTypeMap();
- // names.addAll(cols.keySet());
- //
- // Collections.sort(names);
- //
- // // nodeAttrEditor.setAvailableValues(names.toArray());
- // spcs.firePropertyChange("UPDATE_AVAILABLE_VAL",
"nodeAttrEditor",
- // names
- // .toArray());
- //
- // names.clear();
- //
- // for (String name : cols.keySet()) {
- // Class<?> dataClass = cols.get(name);
- //
- // if ((dataClass == Integer.class) || (dataClass ==
Double.class))
- // names.add(name);
- // }
- //
- // Collections.sort(names);
- // //
nodeNumericalAttrEditor.setAvailableValues(names.toArray());
- // spcs.firePropertyChange("UPDATE_AVAILABLE_VAL",
- // "nodeNumericalAttrEditor", names.toArray());
- //
- // names.clear();
- //
- // attr = getTargetNetwork().getEdgeCyDataTables().get(
- // CyNetwork.DEFAULT_ATTRS);
- // cols = attr.getColumnTypeMap();
- // names.addAll(cols.keySet());
- // Collections.sort(names);
- //
- // // edgeAttrEditor.setAvailableValues(names.toArray());
- // spcs.firePropertyChange("UPDATE_AVAILABLE_VAL",
"edgeAttrEditor",
- // names
- // .toArray());
- // names.clear();
- //
- // for (String name : cols.keySet()) {
- // Class<?> dataClass = cols.get(name);
- //
- // if ((dataClass == Integer.class) || (dataClass ==
Double.class))
- // names.add(name);
- // }
- //
- // Collections.sort(names);
- // //
edgeNumericalAttrEditor.setAvailableValues(names.toArray());
- // spcs.firePropertyChange("UPDATE_AVAILABLE_VAL",
- // "edgeNumericalAttrEditor", names.toArray());
- // propertySheetPanel.repaint();
- }
public VizMapPropertyBuilder getPropertyBuilder() {
return this.vizMapPropertyBuilder;
Modified:
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/VizMapperMainPanel.java
===================================================================
---
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/VizMapperMainPanel.java
2012-01-06 07:12:13 UTC (rev 27938)
+++
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/VizMapperMainPanel.java
2012-01-06 18:19:11 UTC (rev 27939)
@@ -203,7 +203,6 @@
editorWindowManager.closeAllEditorWindows();
vizMapPropertySheetBuilder.setPropertyTable(style);
- updateAttributeList();
// Apply style to the current network view if necessary.
final CyNetworkView currentView =
applicationManager.getCurrentNetworkView();
@@ -293,9 +292,6 @@
defaultImageManager.put(vs, engine.createImage((int)
size.getWidth(), (int) size.getHeight()));
}
- public void updateAttributeList() {
- vizMapPropertySheetBuilder.setAttrComboBox();
- }
/**
*
Deleted:
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/event/AttributeUpdateEventHandler.java
===================================================================
---
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/event/AttributeUpdateEventHandler.java
2012-01-06 07:12:13 UTC (rev 27938)
+++
core3/impl/trunk/vizmap-gui-impl/src/main/java/org/cytoscape/view/vizmap/gui/internal/event/AttributeUpdateEventHandler.java
2012-01-06 18:19:11 UTC (rev 27939)
@@ -1,62 +0,0 @@
-
-/*
- Copyright (c) 2006, 2007, The Cytoscape Consortium (www.cytoscape.org)
-
- The Cytoscape Consortium is:
- - Institute for Systems Biology
- - University of California San Diego
- - Memorial Sloan-Kettering Cancer Center
- - Institut Pasteur
- - Agilent Technologies
-
- 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.view.vizmap.gui.internal.event;
-
-import java.beans.PropertyChangeEvent;
-
-import org.cytoscape.view.vizmap.gui.internal.VizMapPropertySheetBuilder;
-
-
-/**
- *
- */
-public class AttributeUpdateEventHandler extends AbstractVizMapEventHandler {
-
- public AttributeUpdateEventHandler(VizMapPropertySheetBuilder
vizMapPropertySheetBuilder) {
- this.vizMapPropertySheetBuilder = vizMapPropertySheetBuilder;
- }
-
- /**
- * DOCUMENT ME!
- *
- * @param e DOCUMENT ME!
- */
- @Override
- public void processEvent(PropertyChangeEvent e) {
- vizMapPropertySheetBuilder.setAttrComboBox();
- }
-}
--
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.