@@ -231,14 +231,14 @@ public void updateVisualization() {
231231
232232 for (CyNetwork net : this .rootNetwork .getSubNetworkList ()) {
233233 CyTable networkTable = net .getDefaultNetworkTable ();
234- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_INNERVIZCOL ) == null ) {
235- networkTable .createColumn (OVShared .CYNETWORKTABLE_INNERVIZCOL , String .class , false );
234+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_INNERVIZCOL ) == null ) {
235+ networkTable .createColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_INNERVIZCOL , String .class , false );
236236 }
237- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_OUTERVIZCOL ) == null ) {
238- networkTable .createColumn (OVShared .CYNETWORKTABLE_OUTERVIZCOL , String .class , false );
237+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OUTERVIZCOL ) == null ) {
238+ networkTable .createColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OUTERVIZCOL , String .class , false );
239239 }
240- networkTable .getRow (net .getSUID ()).set (OVShared .CYNETWORKTABLE_INNERVIZCOL , savedInnerViz );
241- networkTable .getRow (net .getSUID ()).set (OVShared .CYNETWORKTABLE_OUTERVIZCOL , savedOuterViz );
240+ networkTable .getRow (net .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_INNERVIZCOL , savedInnerViz );
241+ networkTable .getRow (net .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OUTERVIZCOL , savedOuterViz );
242242 }
243243 }
244244
@@ -262,8 +262,8 @@ public int updateLinks() {
262262 return 0 ; // TODO message?
263263 }
264264
265- if (nodeTable .getColumn (OVShared .CYNODETABLE_CONNECTEDCOUNT ) == null ) {
266- nodeTable .createColumn (OVShared .CYNODETABLE_CONNECTEDCOUNT , Integer .class , false );
265+ if (nodeTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNODETABLE_CONNECTEDCOUNT ) == null ) {
266+ nodeTable .createColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNODETABLE_CONNECTEDCOUNT , Integer .class , false );
267267 }
268268
269269 for (CyRow netRow : nodeTable .getAllRows ()) {
@@ -292,18 +292,18 @@ public int updateLinks() {
292292 }
293293
294294 // We store the number of connected rows to the node in the Node Table so that users can use it in a Cytoscape style
295- netRow .set (OVShared .CYNODETABLE_CONNECTEDCOUNT , nodeConnectedRows );
295+ netRow .set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNODETABLE_CONNECTEDCOUNT , nodeConnectedRows );
296296 }
297297
298298 // SECOND STEP:
299299 // Make the link in the network tables
300300 //
301301 for (CyNetwork net : this .rootNetwork .getSubNetworkList ()) {
302302 CyTable networkTable = net .getDefaultNetworkTable ();
303- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_OVCOL ) == null ) {
304- networkTable .createColumn (OVShared .CYNETWORKTABLE_OVCOL , String .class , false );
303+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL ) == null ) {
304+ networkTable .createColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL , String .class , false );
305305 }
306- networkTable .getRow (net .getSUID ()).set (OVShared .CYNETWORKTABLE_OVCOL , this .getSavedConnection ());
306+ networkTable .getRow (net .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL , this .getSavedConnection ());
307307 }
308308
309309 return totalConnectedRows ;
@@ -354,8 +354,8 @@ private List<CyNetwork> getConnectedNetworks() {
354354 for (CyNetwork net : this .rootNetwork .getSubNetworkList ()) {
355355 CyTable netTable = net .getDefaultNetworkTable ();
356356 if (netTable != null
357- && netTable .getColumn (OVShared .CYNETWORKTABLE_OVCOL ) != null
358- && !netTable .getRow (net .getSUID ()).get (OVShared .CYNETWORKTABLE_OVCOL , String .class ).isEmpty ()) {
357+ && netTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL ) != null
358+ && !netTable .getRow (net .getSUID ()).get (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL , String .class ).isEmpty ()) {
359359 connectedNetwork .add (net );
360360 }
361361 }
@@ -375,18 +375,18 @@ public void connectNetwork(CyNetwork network) {
375375 CyTable networkTable = network .getDefaultNetworkTable ();
376376
377377 // Link :
378- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_OVCOL ) == null ) {
379- networkTable .createColumn (OVShared .CYNETWORKTABLE_OVCOL , String .class , false );
378+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL ) == null ) {
379+ networkTable .createColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL , String .class , false );
380380 }
381- networkTable .getRow (network .getSUID ()).set (OVShared .CYNETWORKTABLE_OVCOL , this .getSavedConnection ());
381+ networkTable .getRow (network .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL , this .getSavedConnection ());
382382
383383
384384 // Visualization :
385- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_INNERVIZCOL ) == null ) {
386- networkTable .createColumn (OVShared .CYNETWORKTABLE_INNERVIZCOL , String .class , false );
385+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_INNERVIZCOL ) == null ) {
386+ networkTable .createColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_INNERVIZCOL , String .class , false );
387387 }
388- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_OUTERVIZCOL ) == null ) {
389- networkTable .createColumn (OVShared .CYNETWORKTABLE_OUTERVIZCOL , String .class , false );
388+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OUTERVIZCOL ) == null ) {
389+ networkTable .createColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OUTERVIZCOL , String .class , false );
390390 }
391391 String savedInnerViz = "" ;
392392 String savedOuterViz = "" ;
@@ -396,8 +396,8 @@ public void connectNetwork(CyNetwork network) {
396396 if (this .ovOuterViz != null ) {
397397 savedOuterViz = this .ovOuterViz .save ();
398398 }
399- networkTable .getRow (network .getSUID ()).set (OVShared .CYNETWORKTABLE_INNERVIZCOL , savedInnerViz );
400- networkTable .getRow (network .getSUID ()).set (OVShared .CYNETWORKTABLE_OUTERVIZCOL , savedOuterViz );
399+ networkTable .getRow (network .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_INNERVIZCOL , savedInnerViz );
400+ networkTable .getRow (network .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OUTERVIZCOL , savedOuterViz );
401401 }
402402
403403 /**
@@ -422,14 +422,14 @@ public void disconnectNetwork(CyNetwork network) {
422422
423423 // We erase the link in the Network table
424424 CyTable networkTable = network .getDefaultNetworkTable ();
425- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_OVCOL ) != null ) {
426- networkTable .getRow (network .getSUID ()).set (OVShared .CYNETWORKTABLE_OVCOL , "" );
425+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL ) != null ) {
426+ networkTable .getRow (network .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OVCOL , "" );
427427 }
428- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_INNERVIZCOL ) != null ) {
429- networkTable .getRow (network .getSUID ()).set (OVShared .CYNETWORKTABLE_INNERVIZCOL , "" );
428+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_INNERVIZCOL ) != null ) {
429+ networkTable .getRow (network .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_INNERVIZCOL , "" );
430430 }
431- if (networkTable .getColumn (OVShared .CYNETWORKTABLE_OUTERVIZCOL ) != null ) {
432- networkTable .getRow (network .getSUID ()).set (OVShared .CYNETWORKTABLE_OUTERVIZCOL , "" );
431+ if (networkTable .getColumn (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OUTERVIZCOL ) != null ) {
432+ networkTable .getRow (network .getSUID ()).set (OVShared .OV_COLUMN_NAMESPACE , OVShared . CYNETWORKTABLE_OUTERVIZCOL , "" );
433433 }
434434
435435 // We erase the Visualization
0 commit comments