| 1 2 25 26 package org.aspectj.ajde.ui.swing; 27 28 import java.awt.*; 29 import javax.swing.*; 30 import javax.swing.tree.*; 31 import org.aspectj.ajde.*; 32 33 36 class StructureTree extends JTree { 37 38 public static final Font DEFAULT_FONT = new java.awt.Font ("Dialog", 0, 11); 39 40 private String rootFilePath = null; 41 42 public StructureTree() { 43 try { 44 jbInit(); 45 } 46 catch(Exception e) { 47 Ajde.getDefault().getErrorHandler().handleError("Could not initialize GUI.", e); 48 } 49 } 50 51 public void setRootFilePath(String rootFilePath) { 52 this.rootFilePath = rootFilePath; 53 } 54 55 public String getRootFilePath() { 56 return rootFilePath; 57 } 58 59 private void jbInit() throws Exception { 60 this.setFont(DEFAULT_FONT); 61 } 62 63 public int getToggleClickCount() { 64 return 1; 65 } 66 } 67 | Popular Tags |