예제 #1
0
 public DependenciesPanel(BaseTool tool, Project project) {
   super(new BorderLayout());
   myTool = tool;
   myIsMeta = false;
   myInitTree = new DependencyTree(this);
   myProject = project;
   myTargetsView = new TargetsView(myProject, this);
   myReferencesView = new ReferencesView(myProject, this);
   myReferencesView.setRunOptions(
       null, null, new UsagesView.ButtonConfiguration(false, false, false));
   JBScrollPane leftPane = new JBScrollPane(myInitTree);
   Splitter treeSplitter = new Splitter(false);
   treeSplitter.setFirstComponent(leftPane);
   treeSplitter.setSecondComponent(myTargetsView.getTreeComponent());
   Splitter splitter = new Splitter(true);
   splitter.setFirstComponent(treeSplitter);
   splitter.setSecondComponent(myReferencesView.getComponent());
   splitter.setDividerWidth(5);
   treeSplitter.setDividerWidth(5);
   add(splitter, BorderLayout.CENTER);
   add(createToolbar(), BorderLayout.NORTH);
 }