예제 #1
0
		public void Install(IWorkspace workspace)
		{
			// Add parts

			arGraph = new ActiveRecordGraphView(_model);
			arGraph.ParentWorkspace = workspace;

			outView = new OutputView(_model);
			outView.ParentWorkspace = workspace;

			projExplorer = new ProjectExplorer(_model);
			projExplorer.ParentWorkspace = workspace;

			avaShapes = new AvailableShapes(_model);
			avaShapes.ParentWorkspace = workspace;

			// Register Actions
			
			FileActionGroup group1 = new FileActionGroup();
			group1.Init(_model);
			group1.Install(workspace);

			ViewActionSet group2 = new ViewActionSet(arGraph, outView, projExplorer, avaShapes);
			group2.Init(_model);
			group2.Install(workspace);

			HelpActionSet group3 = new HelpActionSet();
			group3.Init(_model);
			group3.Install(workspace);

		}
예제 #2
0
		public ViewActionSet(ActiveRecordGraphView graph, OutputView outputview, 
			ProjectExplorer explorer, AvailableShapes shapes)
		{
			_graph = graph;
			_outputview = outputview;
			_explorer = explorer;
			_shapes = shapes;
		}
예제 #3
0
		public ViewAvailableItemsAction(AvailableShapes availableShapes)
		{
			_availableShapes = availableShapes;
		}