Skip to content

Commit

Permalink
Revert "Refs Murali-group#33: Create sub packages for different classes"
Browse files Browse the repository at this point in the history
This reverts commit aff4a13.
  • Loading branch information
LHuang2019 committed Oct 22, 2017
1 parent aff4a13 commit 8e20037
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
target/
.repo
.uuid
.gitignore/bin/
.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dpgil.pathlinker.path_linker.internal.util;
package com.dpgil.pathlinker.path_linker.internal;

import java.util.Comparator;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
import org.cytoscape.service.util.CyServiceRegistrar;
import org.osgi.framework.BundleContext;

import com.dpgil.pathlinker.path_linker.internal.event.PathLinkerColumnUpdateListener;
import com.dpgil.pathlinker.path_linker.internal.event.PathLinkerNetworkEventListener;
import com.dpgil.pathlinker.path_linker.internal.event.PathLinkerNodeSelectionListener;
import com.dpgil.pathlinker.path_linker.internal.view.PathLinkerControlPanel;

/**
* // -------------------------------------------------------------------------
* /** CyActivator class for the PathLinker Cytoscape Plugin. Runs when
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dpgil.pathlinker.path_linker.internal.util;
package com.dpgil.pathlinker.path_linker.internal;

/**
* Setting of the edge weight selected by the user
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dpgil.pathlinker.path_linker.internal.view;
package com.dpgil.pathlinker.path_linker.internal;

import java.awt.BorderLayout;
import java.awt.Desktop;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dpgil.pathlinker.path_linker.internal.event;
package com.dpgil.pathlinker.path_linker.internal;

import org.cytoscape.model.events.ColumnCreatedEvent;
import org.cytoscape.model.events.ColumnCreatedListener;
Expand All @@ -7,8 +7,6 @@
import org.cytoscape.model.events.ColumnNameChangedEvent;
import org.cytoscape.model.events.ColumnNameChangedListener;

import com.dpgil.pathlinker.path_linker.internal.view.PathLinkerControlPanel;

/**
* Listener class for _edgeWeightColumnBox in PathLinkerPanel class
* Updates the _suidToPathIndexMap and _pathIndexToSuidMap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.dpgil.pathlinker.path_linker.internal.view;
package com.dpgil.pathlinker.path_linker.internal;

import com.dpgil.pathlinker.path_linker.internal.event.PathLinkerNodeSelectionListener;
import com.dpgil.pathlinker.path_linker.internal.model.PathLinkerModel;
import com.dpgil.pathlinker.path_linker.internal.util.EdgeWeightSetting;
import com.dpgil.pathlinker.path_linker.internal.util.Algorithms.Path;
import com.dpgil.pathlinker.path_linker.internal.Algorithms.Path;

import java.awt.BorderLayout;
import java.awt.Color;
Expand Down Expand Up @@ -83,28 +80,28 @@ public class PathLinkerControlPanel extends JPanel implements CytoPanelComponent

private JButton _helpBtn;
private JButton _aboutBtn;
public static JButton _loadNodeToSourceButton;
public static JButton _loadNodeToTargetButton;
protected static JButton _loadNodeToSourceButton;
protected static JButton _loadNodeToTargetButton;
private JButton _clearSourceTargetPanelButton;
private JButton _submitButton;
private JButton _closeButton;

public static JComboBox<String> _networkCmb;
protected static JComboBox<String> _networkCmb;
protected static JComboBox<String> _edgeWeightColumnBox;
private static ButtonGroup _weightedOptionGroup;
private static JRadioButton _unweighted;
private static JRadioButton _weightedAdditive;
private static JRadioButton _weightedProbabilities;

private JCheckBox _allowSourcesTargetsInPathsOption;
public static JCheckBox _targetsSameAsSourcesOption;
protected static JCheckBox _targetsSameAsSourcesOption;
private JCheckBox _includePathScoreTiesOption;

private CyServiceRegistrar _serviceRegistrar;

/** Cytoscape class for network and view management */
private CySwingApplication _cySwingApp;
public static CyApplicationManager _applicationManager;
protected static CyApplicationManager _applicationManager;
private static CyNetworkManager _networkManager;
private CyAppAdapter _adapter;

Expand Down Expand Up @@ -142,11 +139,11 @@ public class PathLinkerControlPanel extends JPanel implements CytoPanelComponent
/** The map stores the index-SUID pair of each network inside the networkCmb */
protected static Map<Integer, Long> _indexToSUIDMap;
/** The map stores the SUID-index pair of each network inside the networkCmb */
public static Map<Long, Integer> _suidToIndexMap;
protected static Map<Long, Integer> _suidToIndexMap;
/** The map stores the SUID to path index column name pair of each network */
public static Map<Long, String> _suidToPathIndexMap;
protected static Map<Long, String> _suidToPathIndexMap;
/** The map stores path index column name to SUID pair of each network */
public static Map<String, Long> _pathIndexToSuidMap;
protected static Map<String, Long> _pathIndexToSuidMap;
/** Global sync index number to sync network, Path Index, and result names upon creation */
protected static int nameIndex;

Expand Down Expand Up @@ -435,7 +432,7 @@ public void actionPerformed(ActionEvent e) {
* construct/update the combo box items for selecting edge weight
* Called by PathLinkerNetworkEventListener and PathLinkerColumnUpdateListener class if event triggered
*/
public static void updateEdgeWeightColumn() {
protected static void updateEdgeWeightColumn() {

_edgeWeightColumnBox.removeAllItems(); //remove all items for update

Expand All @@ -461,7 +458,7 @@ public static void updateEdgeWeightColumn() {
* Use when the PathLinker starts
* when network name is changed
*/
public static void initializeNetworkCmb() {
protected static void initializeNetworkCmb() {

//make sure combo box and related maps is empty when initializing
_networkCmb.removeAllItems();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package com.dpgil.pathlinker.path_linker.internal;

import com.dpgil.pathlinker.path_linker.internal.PathLinkerControlPanel.PanelState;
import java.awt.event.ActionEvent;
import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.application.swing.AbstractCyAction;

import com.dpgil.pathlinker.path_linker.internal.view.PathLinkerControlPanel;
import com.dpgil.pathlinker.path_linker.internal.view.PathLinkerControlPanel.PanelState;

/**
* // -------------------------------------------------------------------------
* /** Menu option to open the PathLinker plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dpgil.pathlinker.path_linker.internal.model;
package com.dpgil.pathlinker.path_linker.internal;

import java.util.ArrayList;
import java.util.Arrays;
Expand All @@ -13,9 +13,7 @@
import org.cytoscape.model.subnetwork.CyRootNetwork;
import org.cytoscape.model.subnetwork.CySubNetwork;

import com.dpgil.pathlinker.path_linker.internal.util.Algorithms;
import com.dpgil.pathlinker.path_linker.internal.util.EdgeWeightSetting;
import com.dpgil.pathlinker.path_linker.internal.util.Algorithms.Path;
import com.dpgil.pathlinker.path_linker.internal.Algorithms.Path;

/** Back end model for the PathLinker plugin */
public class PathLinkerModel {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dpgil.pathlinker.path_linker.internal.event;
package com.dpgil.pathlinker.path_linker.internal;

import org.cytoscape.application.events.SetCurrentNetworkEvent;
import org.cytoscape.application.events.SetCurrentNetworkListener;
Expand All @@ -8,8 +8,6 @@
import org.cytoscape.model.events.NetworkDestroyedEvent;
import org.cytoscape.model.events.NetworkDestroyedListener;

import com.dpgil.pathlinker.path_linker.internal.view.PathLinkerControlPanel;

/**
* Listener class for _edgeWeightColumnBox
* _networkCmb
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package com.dpgil.pathlinker.path_linker.internal.event;
package com.dpgil.pathlinker.path_linker.internal;

import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.events.RowSetRecord;
import org.cytoscape.model.events.RowsSetEvent;
import org.cytoscape.model.events.RowsSetListener;

import com.dpgil.pathlinker.path_linker.internal.view.PathLinkerControlPanel;

/** Listener class for _loadNodeToSourceButton and _loadNodeToTargetButton in PathLinkerPanel class */
public class PathLinkerNodeSelectionListener implements RowsSetListener {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.dpgil.pathlinker.path_linker.internal.view;
package com.dpgil.pathlinker.path_linker.internal;

import com.dpgil.pathlinker.path_linker.internal.Algorithms.Path;

import java.awt.Component;
import java.awt.Container;
Expand Down Expand Up @@ -37,8 +39,6 @@
import org.cytoscape.model.CyNode;
import org.cytoscape.model.CyTableUtil;

import com.dpgil.pathlinker.path_linker.internal.util.Algorithms.Path;

/**
* // -------------------------------------------------------------------------
* /** Panel that displays the results for the PathLinker CytoScape plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
import org.junit.Before;
import org.junit.Test;

import com.dpgil.pathlinker.path_linker.internal.model.PathLinkerModel;
import com.dpgil.pathlinker.path_linker.internal.util.EdgeWeightSetting;
import com.dpgil.pathlinker.path_linker.internal.util.Algorithms.Path;
import com.dpgil.pathlinker.path_linker.internal.Algorithms.Path;

/** JUnit Test class for the PathLinker */
public class PathLinkerModelTest {
Expand Down

0 comments on commit 8e20037

Please sign in to comment.