Mercurial > projects > dwt2
comparison org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/SelectionData.d @ 91:2755ef2c8ef8
Fix compile for base type changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 19 Apr 2009 12:22:47 +0200 |
parents | bc29606a740c |
children |
comparison
equal
deleted
inserted
replaced
90:6086085e153d | 91:2755ef2c8ef8 |
---|---|
91 } | 91 } |
92 public int getRightOffset(int rowHeight) { | 92 public int getRightOffset(int rowHeight) { |
93 return isInverted(rowHeight) ? start.x:stop.x; | 93 return isInverted(rowHeight) ? start.x:stop.x; |
94 } | 94 } |
95 private bool isInverted(Locator locator) { | 95 private bool isInverted(Locator locator) { |
96 int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].value; | 96 int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].intValue(); |
97 return isInverted(rowHeight); | 97 return isInverted(rowHeight); |
98 } | 98 } |
99 private bool isInverted(int rowHeight) { | 99 private bool isInverted(int rowHeight) { |
100 int deltaY = start.y - stop.y; | 100 int deltaY = start.y - stop.y; |
101 if (Math.abs(deltaY) > rowHeight) { | 101 if (Math.abs(deltaY) > rowHeight) { |
110 } | 110 } |
111 | 111 |
112 public bool isSelectedRow(Locator locator) { | 112 public bool isSelectedRow(Locator locator) { |
113 if (!isEnclosed()) | 113 if (!isEnclosed()) |
114 return false; | 114 return false; |
115 int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].value; | 115 int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].intValue(); |
116 return isSelectedRow(locator.y, rowHeight); | 116 return isSelectedRow(locator.y, rowHeight); |
117 } | 117 } |
118 public bool isSelectedRow(int y, int rowHeight) { | 118 public bool isSelectedRow(int y, int rowHeight) { |
119 if (!isEnclosed()) | 119 if (!isEnclosed()) |
120 return false; | 120 return false; |
122 y <= getBottomOffset()); | 122 y <= getBottomOffset()); |
123 } | 123 } |
124 public bool isFirstSelectionRow(Locator locator) { | 124 public bool isFirstSelectionRow(Locator locator) { |
125 if (!isEnclosed()) | 125 if (!isEnclosed()) |
126 return false; | 126 return false; |
127 int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].value; | 127 int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].intValue(); |
128 return (locator.y + rowHeight >= getTopOffset() && | 128 return (locator.y + rowHeight >= getTopOffset() && |
129 locator.y <= getTopOffset()); | 129 locator.y <= getTopOffset()); |
130 } | 130 } |
131 public bool isFirstSelectionRow(int y, int rowHeight) { | 131 public bool isFirstSelectionRow(int y, int rowHeight) { |
132 if (!isEnclosed()) | 132 if (!isEnclosed()) |
135 y <= getTopOffset()); | 135 y <= getTopOffset()); |
136 } | 136 } |
137 public bool isLastSelectionRow(Locator locator) { | 137 public bool isLastSelectionRow(Locator locator) { |
138 if (!isEnclosed()) | 138 if (!isEnclosed()) |
139 return false; | 139 return false; |
140 int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].value; | 140 int rowHeight = arrayFromObject!(Integer)(locator.heights.get(locator.rowCounter))[0].intValue(); |
141 return (locator.y + rowHeight >=getBottomOffset() && | 141 return (locator.y + rowHeight >=getBottomOffset() && |
142 locator.y <= getBottomOffset()); | 142 locator.y <= getBottomOffset()); |
143 } | 143 } |
144 public bool isLastSelectionRow(int y, int rowHeight) { | 144 public bool isLastSelectionRow(int y, int rowHeight) { |
145 if (!isEnclosed()) | 145 if (!isEnclosed()) |