From: <ez...@us...> - 2007-09-14 01:32:04
|
Revision: 10572 http://jedit.svn.sourceforge.net/jedit/?rev=10572&view=rev Author: ezust Date: 2007-09-13 18:31:56 -0700 (Thu, 13 Sep 2007) Log Message: ----------- 1. Got rid of 3 @overrides that made it not compile under JDK 1.5 2. Got rid of extra "tree" member of inner class. It's an inner class, might as well use its outer member directly. Modified Paths: -------------- plugins/GlobalPlugin/trunk/browser/CallTree.java plugins/GlobalPlugin/trunk/browser/GlobalTableModel.java Modified: plugins/GlobalPlugin/trunk/browser/CallTree.java =================================================================== --- plugins/GlobalPlugin/trunk/browser/CallTree.java 2007-09-13 21:01:58 UTC (rev 10571) +++ plugins/GlobalPlugin/trunk/browser/CallTree.java 2007-09-14 01:31:56 UTC (rev 10572) @@ -49,7 +49,7 @@ @SuppressWarnings("serial") public class CallTree extends JPanel implements DefaultFocusComponent, GlobalDockableInterface { private View view; - private JTree tree; + protected JTree tree; FunctionNode root = null; Pattern spaces = Pattern.compile("\\s+"); Hashtable<String, Vector<FunctionTag>> fileTags = new Hashtable<String, Vector<FunctionTag>>(); @@ -155,7 +155,7 @@ tree = new JTree(); //tree.setModel(emptyHierarchy); tree.setCellRenderer(renderer); - tree.addMouseListener(new HierarchyCellActionHandler(tree)); + tree.addMouseListener(new HierarchyCellActionHandler()); renderer.setLeafIcon(null); renderer.setOpenIcon(null); renderer.setClosedIcon(null); @@ -219,10 +219,8 @@ * HierarchyCellActionHandler **************************************************************************/ class HierarchyCellActionHandler extends MouseAdapter { - protected JTree tree; - public HierarchyCellActionHandler(JTree t) { - tree = t; + public HierarchyCellActionHandler() { } public void mouseClicked(MouseEvent e) { Modified: plugins/GlobalPlugin/trunk/browser/GlobalTableModel.java =================================================================== --- plugins/GlobalPlugin/trunk/browser/GlobalTableModel.java 2007-09-13 21:01:58 UTC (rev 10571) +++ plugins/GlobalPlugin/trunk/browser/GlobalTableModel.java 2007-09-14 01:31:56 UTC (rev 10572) @@ -16,17 +16,15 @@ return COLUMNS[col]; } - @Override public int getColumnCount() { return COLUMNS.length; } - @Override + public int getRowCount() { return refs.size(); } - @Override public Object getValueAt(int row, int col) { GlobalRecord rec = ((GlobalReference)refs.get(row)).getRec(); switch (col) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |