13
13
import org .baderlab .csplugins .enrichmentmap .actions .LoadPostAnalysisPanelAction ;
14
14
import org .baderlab .csplugins .enrichmentmap .actions .ShowAboutPanelAction ;
15
15
import org .baderlab .csplugins .enrichmentmap .actions .ShowEdgeWidthDialogAction ;
16
- import org .baderlab .csplugins .enrichmentmap .autoannotate .AutoAnnotationManager ;
17
- import org .baderlab .csplugins .enrichmentmap .autoannotate .action .AutoAnnotationPanelAction ;
18
- import org .baderlab .csplugins .enrichmentmap .autoannotate .action .DisplayOptionsPanelAction ;
19
16
import org .baderlab .csplugins .enrichmentmap .commands .EnrichmentMapGSEACommandHandlerTaskFactory ;
20
17
import org .baderlab .csplugins .enrichmentmap .task .BuildEnrichmentMapTuneableTaskFactory ;
21
18
import org .baderlab .csplugins .enrichmentmap .task .CreatePublicationVisualStyleTaskFactory ;
28
25
import org .cytoscape .application .CyApplicationManager ;
29
26
import org .cytoscape .application .events .SetCurrentNetworkListener ;
30
27
import org .cytoscape .application .events .SetCurrentNetworkViewListener ;
31
- import org .cytoscape .application .events .SetSelectedNetworkViewsListener ;
32
28
import org .cytoscape .application .swing .CyAction ;
33
29
import org .cytoscape .application .swing .CySwingApplication ;
34
30
import org .cytoscape .command .CommandExecutorTaskFactory ;
40
36
import org .cytoscape .model .CyNetworkManager ;
41
37
import org .cytoscape .model .CyTableFactory ;
42
38
import org .cytoscape .model .CyTableManager ;
43
- import org .cytoscape .model .events .ColumnCreatedListener ;
44
- import org .cytoscape .model .events .ColumnDeletedListener ;
45
- import org .cytoscape .model .events .ColumnNameChangedListener ;
46
39
import org .cytoscape .model .events .NetworkAboutToBeDestroyedListener ;
47
40
import org .cytoscape .model .events .RowsSetListener ;
48
41
import org .cytoscape .service .util .AbstractCyActivator ;
57
50
import org .cytoscape .view .layout .CyLayoutAlgorithmManager ;
58
51
import org .cytoscape .view .model .CyNetworkViewFactory ;
59
52
import org .cytoscape .view .model .CyNetworkViewManager ;
60
- import org .cytoscape .view .model .events .NetworkViewAboutToBeDestroyedListener ;
61
53
import org .cytoscape .view .presentation .annotations .AnnotationFactory ;
62
54
import org .cytoscape .view .presentation .annotations .AnnotationManager ;
63
55
import org .cytoscape .view .presentation .annotations .ShapeAnnotation ;
@@ -137,37 +129,15 @@ public void start(BundleContext bc) {
137
129
EnrichmentMapActionListener EMActionListener = new EnrichmentMapActionListener (heatMapPanel_node ,heatMapPanel_edge , cyApplicationManagerRef , cySwingApplicationRef ,fileUtil ,streamUtil ,syncTaskManager );
138
130
registerService (bc ,EMActionListener , RowsSetListener .class , new Properties ());
139
131
140
- // Set up autoAnnotationManager, hand it all of the services it needs
141
- AutoAnnotationManager autoAnnotationManager = AutoAnnotationManager .getInstance ();
142
- autoAnnotationManager .initialize (cySwingApplicationRef , tableManager , commandExecutor , dialogTaskManager , syncTaskManager , annotationManager , layoutManager , shapeFactory , textFactory , groupFactory , groupManager , heatMapPanel_node , EMActionListener , eventHelper ,cyApplicationManagerRef );
143
- //register network/table events to autoAnnotationManager
144
- registerService (bc , autoAnnotationManager , SetSelectedNetworkViewsListener .class , new Properties ());
145
- registerService (bc , autoAnnotationManager , NetworkViewAboutToBeDestroyedListener .class , new Properties ());
146
- registerService (bc , autoAnnotationManager , ColumnCreatedListener .class , new Properties ());
147
- registerService (bc , autoAnnotationManager , ColumnDeletedListener .class , new Properties ());
148
- registerService (bc , autoAnnotationManager , ColumnNameChangedListener .class , new Properties ());
149
- registerService (bc , autoAnnotationManager , RowsSetListener .class , new Properties ());
150
132
151
133
//Create each Action within Enrichment map as a service
152
134
Map <String ,String > serviceProperties ;
153
-
154
135
//About Action
155
136
serviceProperties = new HashMap <>();
156
137
serviceProperties .put ("inMenuBar" , "true" );
157
138
serviceProperties .put ("preferredMenu" , "Apps.EnrichmentMap" );
158
139
ShowAboutPanelAction aboutAction = new ShowAboutPanelAction (serviceProperties ,cyApplicationManagerRef ,cyNetworkViewManagerRef , cySwingApplicationRef , openBrowserRef );
159
140
160
- //Auto-annotate Panel Action - opens Annotation panel
161
- serviceProperties = new HashMap <>();
162
- serviceProperties .put ("inMenuBar" , "true" );
163
- serviceProperties .put ("preferredMenu" , "Apps.EnrichmentMap" );
164
- AutoAnnotationPanelAction autoAnnotationPanelAction = new AutoAnnotationPanelAction (serviceProperties ,cyApplicationManagerRef , cyNetworkViewManagerRef , cySwingApplicationRef , annotationManager , registrar );
165
-
166
- //Auto-annotate Display Options Panel Action - opens display options panel
167
- serviceProperties = new HashMap <>();
168
- DisplayOptionsPanelAction displayOptionsPanelAction = new DisplayOptionsPanelAction (serviceProperties ,cyApplicationManagerRef , cyNetworkViewManagerRef , cySwingApplicationRef , annotationManager , registrar );
169
- autoAnnotationManager .setDisplayOptionsPanelAction (displayOptionsPanelAction );
170
-
171
141
//Build Enrichment Map Action - opens EM panel
172
142
serviceProperties = new HashMap <>();
173
143
serviceProperties .put ("inMenuBar" , "true" );
@@ -193,14 +163,13 @@ public void start(BundleContext bc) {
193
163
194
164
//register the services
195
165
registerService (bc , LoadEnrichmentMapInputPanelAction , CyAction .class , new Properties ());
196
- registerService (bc , autoAnnotationPanelAction , CyAction .class , new Properties ());
197
166
registerService (bc , BulkEMInputPanelAction , CyAction .class , new Properties ());
198
167
registerService (bc , loadPostAnalysisAction , CyAction .class , new Properties ());
199
168
registerService (bc , edgeWidthPanelAction , CyAction .class , new Properties ());
200
169
registerService (bc , aboutAction , CyAction .class ,new Properties ());
201
170
202
171
//register the session save and restore
203
- EnrichmentMapSessionAction sessionAction = new EnrichmentMapSessionAction (cyNetworkManagerRef , sessionManager , cyApplicationManagerRef , streamUtil , autoAnnotationPanelAction );
172
+ EnrichmentMapSessionAction sessionAction = new EnrichmentMapSessionAction (cyNetworkManagerRef , sessionManager , cyApplicationManagerRef , streamUtil );
204
173
registerService (bc ,sessionAction ,SessionAboutToBeSavedListener .class , new Properties ());
205
174
registerService (bc ,sessionAction ,SessionLoadedListener .class , new Properties ());
206
175
0 commit comments