Skip to content

Commit

Permalink
Code cleanup and built-in template update
Browse files Browse the repository at this point in the history
  • Loading branch information
smm8ec committed Jul 1, 2016
1 parent b0c6c4f commit 230995c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static CyNetwork getDefaultModel(String weightFeatureName, SavePolicy pol
"Variance : Degree (4)",
"Median : Degree (4)",
"Max : Degree (4)",
"Count : Node (5)",
String.format("Mean : weight{%s} (4)",weightFeatureName),
String.format("Variance : weight{%s} (4)",weightFeatureName),
String.format("Density at cutoff %s (6)",weightCutoffs[0]),
Expand Down
30 changes: 1 addition & 29 deletions src/main/java/edu/virginia/uvacluster/internal/CyActivator.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,9 @@ public void start(BundleContext context) throws Exception {
networkViewManager = getService(context, CyNetworkViewManager.class);
serviceRegistrar = getService(context, CyServiceRegistrar.class);


/* ******SupervisedComplexTaskFactory clusterFactory= new SupervisedComplexTaskFactory();
//TODO re-enable
//GenModelTaskFactory modelFactory = new GenModelTaskFactory();
//Set service properties
Properties clusterFactoryProperties = new Properties();
clusterFactoryProperties.setProperty("preferredMenu", "Apps.SCODE");
clusterFactoryProperties.setProperty("title","Analyze Network"); ************/

/* TODO This option is disabled because a network only appears once the session file is reloaded.
Properties genNetworkProperties = new Properties();
genNetworkProperties.setProperty("preferredMenu", "Apps.Supervised Complex");
genNetworkProperties.setProperty("title", "Generate Default Model");
*/

//Set up tabbed panel in Control Panel
CySwingApplication cytoscapeDesktopService = getService(context,CySwingApplication.class);

/*
MyControlPanel myControlPanel = new MyControlPanel();
ControlPanelAction controlPanelAction = new ControlPanelAction(cytoscapeDesktopService,myControlPanel);
registerService(context,myControlPanel,CytoPanelComponent.class, new Properties());
registerService(context,controlPanelAction,CyAction.class, new Properties());
*/
//register services
//registerService(context, clusterFactory, NetworkTaskFactory.class, clusterFactoryProperties);

CyApplicationManager appManager = getService(context, CyApplicationManager.class);

Expand All @@ -82,8 +56,6 @@ public void start(BundleContext context) throws Exception {
closeTaskFactoryProps.setProperty("menuGravity","2.0");

registerService(context, closeTaskFactory, TaskFactory.class, closeTaskFactoryProps);

//TODO re-enable when cytoscape bug is fixed
//registerService(context, modelFactory, NetworkTaskFactory.class,genNetworkProperties);

}
}

0 comments on commit 230995c

Please sign in to comment.