コード例 #1
0
 private boolean isBeforeSelectedLine(SimpleAdapter firstSelectedVariable, SimpleAdapter adapter) {
   return adapter.getNodeFirstLine() < firstSelectedVariable.getNodeFirstLine();
 }
コード例 #2
0
 private boolean isAfterSelectedLine(SimpleAdapter lastSelectedVariable, SimpleAdapter adapter) {
   return adapter.getNodeFirstLine() > lastSelectedVariable.getNodeFirstLine();
 }
コード例 #3
0
 private boolean isBeforeOnSameLine(SimpleAdapter firstSelectedVariable, SimpleAdapter adapter) {
   return adapter.getNodeFirstLine() == firstSelectedVariable.getNodeFirstLine()
       && (adapter.getNodeIndent() < firstSelectedVariable.getNodeIndent());
 }
コード例 #4
0
 private boolean isAfterOnSameLine(SimpleAdapter lastSelectedVariable, SimpleAdapter adapter) {
   return adapter.getNodeFirstLine() == lastSelectedVariable.getNodeFirstLine()
       && (adapter.getNodeIndent() > lastSelectedVariable.getNodeIndent());
 }