put else's on new line. ecf was set to do otherwise.
2005-07-07 Lillian Angel <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicTreeUI.java
Formatted code so else's are on new lines
Index: javax/swing/plaf/basic/BasicTreeUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTreeUI.java,v
retrieving revision 1.21
diff -u -r1.21 BasicTreeUI.java
--- javax/swing/plaf/basic/BasicTreeUI.java 7 Jul 2005 13:53:57 -0000 1.21
+++ javax/swing/plaf/basic/BasicTreeUI.java 7 Jul 2005 14:13:25 -0000
@@ -1786,7 +1786,8 @@
{
BasicTreeUI.this.tree.collapsePath(path);
BasicTreeUI.this.tree.fireTreeCollapsed(path);
- } else
+ }
+ else
{
BasicTreeUI.this.tree.expandPath(path);
BasicTreeUI.this.tree.fireTreeExpanded(path);
@@ -1799,11 +1800,13 @@
{
BasicTreeUI.this.tree.getSelectionModel().clearSelection();
BasicTreeUI.this.tree.addSelectionRow(row);
- } else if (BasicTreeUI.this.tree.getSelectionModel()
+ }
+ else if (BasicTreeUI.this.tree.getSelectionModel()
.getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION)
{
// TODO
- } else
+ }
+ else
{
BasicTreeUI.this.tree.getSelectionModel().setSelectionMode(
TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
@@ -2378,7 +2381,8 @@
0, false);
rendererPane.paintComponent(g, comp, tree,
getCellBounds(x, y, leaf));
- } else
+ }
+ else
{
Component c = tree.getCellRenderer().getTreeCellRendererComponent(
tree, leaf, false, false, true, 0, false);
@@ -2413,7 +2417,8 @@
false, 0, false);
rendererPane.paintComponent(g, comp, tree, getCellBounds(x, y,
nonLeaf));
- } else
+ }
+ else
{
Component c = tree.getCellRenderer().getTreeCellRendererComponent(
tree, nonLeaf, false, expanded, false, 0, false);
@@ -2454,7 +2459,8 @@
{
paintLeaf(g, indentation, descent, tree, curr);
descent += getRowHeight();
- } else
+ }
+ else
{
if (depth > 0 || tree.isRootVisible())
{
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches