use of org.cytoscape.internal.view.CytoscapeDesktop in project cytoscape-impl by cytoscape.
the class CyActivator method initComponents.
private void initComponents(final BundleContext bc, final CyServiceRegistrar serviceRegistrar) {
CyApplicationManager applicationManager = getService(bc, CyApplicationManager.class);
CyNetworkViewManager netViewManager = getService(bc, CyNetworkViewManager.class);
final CytoscapeMenuBar cytoscapeMenuBar = new CytoscapeMenuBar(serviceRegistrar);
final CytoscapeToolBar cytoscapeToolBar = new CytoscapeToolBar(serviceRegistrar);
cytoscapeMenus = new CytoscapeMenus(cytoscapeMenuBar, cytoscapeToolBar);
toolBarEnableUpdater = new ToolBarEnableUpdater(cytoscapeToolBar, serviceRegistrar);
netSearchBar = new NetworkSearchBar(serviceRegistrar);
netSearchMediator = new NetworkSearchMediator(netSearchBar, serviceRegistrar);
netMainPanel = new NetworkMainPanel(netSearchBar, serviceRegistrar);
netMediator = new NetworkMediator(netMainPanel, serviceRegistrar);
commandToolPanel = new CommandToolDialog(serviceRegistrar);
viewComparator = new ViewComparator(netMainPanel);
gridViewToggleModel = new GridViewToggleModel(GridViewToggleModel.Mode.VIEW);
netViewMainPanel = new NetworkViewMainPanel(gridViewToggleModel, cytoscapeMenus, viewComparator, serviceRegistrar);
netViewMediator = new NetworkViewMediator(netViewMainPanel, netMediator, gridViewToggleModel, serviceRegistrar);
cytoscapeDesktop = new CytoscapeDesktop(cytoscapeMenus, netViewMediator, serviceRegistrar);
final SessionIO sessionIO = new SessionIO();
sessionHandler = new SessionHandler(cytoscapeDesktop, netViewMediator, sessionIO, netMainPanel, serviceRegistrar);
layoutMenuPopulator = new LayoutMenuPopulator(cytoscapeMenuBar, serviceRegistrar);
cytoscapeMenuPopulator = new CytoscapeMenuPopulator(cytoscapeDesktop, serviceRegistrar);
layoutSettingsManager = new LayoutSettingsManager(serviceRegistrar);
helpUserManualTaskFactory = new HelpUserManualTaskFactory(serviceRegistrar);
helpContactHelpDeskTaskFactory = new HelpContactHelpDeskTaskFactory(serviceRegistrar);
helpReportABugTaskFactory = new HelpReportABugTaskFactory(serviceRegistrar);
helpAboutTaskFactory = new HelpAboutTaskFactory(serviceRegistrar);
cyDesktopManager = new CyDesktopManager(netViewMediator);
arrangeGridTaskFactory = new ArrangeTaskFactory(GRID, cyDesktopManager, netViewMediator);
arrangeCascadeTaskFactory = new ArrangeTaskFactory(CASCADE, cyDesktopManager, netViewMediator);
arrangeHorizontalTaskFactory = new ArrangeTaskFactory(HORIZONTAL, cyDesktopManager, netViewMediator);
arrangeVerticalTaskFactory = new ArrangeTaskFactory(VERTICAL, cyDesktopManager, netViewMediator);
preferencesDialogFactory = new PreferencesDialogFactory(serviceRegistrar);
// cy3preferencesDialogFactory = new Cy3PreferencesDialogFactory(serviceRegistrar);
bookmarkDialogFactory = new BookmarkDialogFactory(serviceRegistrar);
undoMonitor = new UndoMonitor(serviceRegistrar);
rowViewTracker = new RowViewTracker();
selecteEdgeViewUpdater = new SelectEdgeViewUpdater(rowViewTracker);
selecteNodeViewUpdater = new SelectNodeViewUpdater(rowViewTracker);
rowsSetViewUpdater = new RowsSetViewUpdater(rowViewTracker, netViewMediator, serviceRegistrar);
recentSessionManager = new RecentSessionManager(serviceRegistrar);
netSelectionMediator = new NetworkSelectionMediator(netMainPanel, netViewMainPanel, serviceRegistrar);
// /// CyActions ////
undoAction = new UndoAction(serviceRegistrar);
redoAction = new RedoAction(serviceRegistrar);
printAction = new PrintAction(applicationManager, netViewManager, serviceRegistrar);
exitAction = new ExitAction(serviceRegistrar);
// cy3preferenceAction = new Cy3PreferenceAction(cytoscapeDesktop, cy3preferencesDialogFactory);
preferenceAction = new PreferenceAction(cytoscapeDesktop, preferencesDialogFactory);
bookmarkAction = new BookmarkAction(cytoscapeDesktop, bookmarkDialogFactory);
settingsAction = new SettingsAction(layoutSettingsManager, serviceRegistrar);
cytoPanelWestAction = new CytoPanelAction(WEST, true, cytoscapeDesktop, 1.0f);
cytoPanelSouthAction = new CytoPanelAction(SOUTH, true, cytoscapeDesktop, 1.1f);
cytoPanelEastAction = new CytoPanelAction(EAST, false, cytoscapeDesktop, 1.2f);
cytoPanelSouthWestAction = new CytoPanelAction(SOUTH_WEST, false, cytoscapeDesktop, 1.3f);
cytoPanelCommandAction = new CytoPanelAction(BOTTOM, false, cytoscapeDesktop, 1.35f);
starterPanelAction = new StarterPanelAction(1.4f, cytoscapeDesktop);
detachedViewToolBarAction = new DetachedViewToolBarAction(1.5f, netViewMediator);
closeWindowAction = new CloseWindowAction(6.1f, netViewMediator);
createNetworkViewsAction = new CreateNetworkViewsAction(3.0f, serviceRegistrar);
destroyNetworkViewsAction = new DestroyNetworkViewsAction(3.1f, serviceRegistrar);
destroyNetworksAction = new DestroyNetworksAction(3.2f, netMainPanel, serviceRegistrar);
exportNetworkAction = new ExportNetworkAction(1000.1f, serviceRegistrar);
exportImageAction = new ExportImageAction(1000.2f, serviceRegistrar);
}
Aggregations